composedFunctionImplicitFunction Class Reference

Handles multiple implicit functions and offers multiple ways to combine them. More...

Inheritance diagram for composedFunctionImplicitFunction:
[legend]
Collaboration diagram for composedFunctionImplicitFunction:
[legend]

Public Member Functions

 TypeName ("composedFunction")
 Runtime type information. More...
 
 composedFunctionImplicitFunction (const dictionary &dict)
 Construct from dictionary. More...
 
virtual ~composedFunctionImplicitFunction ()=default
 Destructor. More...
 
virtual scalar value (const vector &p) const
 
virtual vector grad (const vector &p) const
 
virtual scalar distanceToSurfaces (const vector &p) const
 
- Public Member Functions inherited from implicitFunction
 TypeName ("implicitFunction")
 Runtime type information. More...
 
 declareRunTimeSelectionTable (autoPtr, implicitFunction, dict,(const dictionary &dict),(dict))
 Declare run-time constructor selection table. More...
 
 implicitFunction ()=default
 Default construct. More...
 
virtual ~implicitFunction ()=default
 Destructor. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from implicitFunction
static autoPtr< implicitFunctionNew (const word &implicitFunctionType, const dictionary &dict)
 Return a reference to the selected implicitFunction. More...
 

Detailed Description

Handles multiple implicit functions and offers multiple ways to combine them.

Usage
Example of function object partial specification:
function composedFunctionImplicitFunction;
mode minDist;
// following mode are available:
// "add" "subtract" "minDist" "intersect"
composedFunctionImplicitFunctions
{
    plane
    {
        function plane;
        origin (0 1. 0);
        normal (0 1 0);
    }

    sphere
    {
        function sphere;
        radius 0.4;
        origin (0.5 1.5 0.5);
        scale 1;
    }

    sphere2
    {
        function sphere;
        radius 0.4;
        origin (0.5 0.5 0.5);
        scale -1;
    }
}

Original code supplied by Henning Scheufler, DLR (2019)

Source files

Definition at line 91 of file composedFunctionImplicitFunction.H.

Constructor & Destructor Documentation

◆ composedFunctionImplicitFunction()

composedFunctionImplicitFunction ( const dictionary dict)
explicit

Construct from dictionary.

◆ ~composedFunctionImplicitFunction()

virtual ~composedFunctionImplicitFunction ( )
virtualdefault

Destructor.

Member Function Documentation

◆ TypeName()

TypeName ( "composedFunction"  )

Runtime type information.

◆ value()

virtual scalar value ( const vector p) const
virtual

Reimplemented from implicitFunction.

◆ grad()

virtual vector grad ( const vector p) const
virtual

Reimplemented from implicitFunction.

◆ distanceToSurfaces()

virtual scalar distanceToSurfaces ( const vector p) const
virtual

Reimplemented from implicitFunction.


The documentation for this class was generated from the following file: