Loading...
Searching...
No Matches
composedFunctionImplicitFunction Class Reference

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

#include <composedFunctionImplicitFunction.H>

Inheritance diagram for composedFunctionImplicitFunction:
Collaboration diagram for composedFunctionImplicitFunction:

Public Member Functions

 TypeName ("composedFunction")
 Runtime type information.
 composedFunctionImplicitFunction (const dictionary &dict)
 Construct from dictionary.
virtual ~composedFunctionImplicitFunction ()=default
 Destructor.
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.
 declareRunTimeSelectionTable (autoPtr, implicitFunction, dict,(const dictionary &dict),(dict))
 Declare run-time constructor selection table.
 implicitFunction ()=default
 Default construct.
virtual ~implicitFunction ()=default
 Destructor.

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.

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 87 of file composedFunctionImplicitFunction.H.

Constructor & Destructor Documentation

◆ composedFunctionImplicitFunction()

composedFunctionImplicitFunction ( const dictionary & dict)
explicit

Construct from dictionary.

References dict.

◆ ~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.

References p.

◆ grad()

virtual vector grad ( const vector & p) const
virtual

Reimplemented from implicitFunction.

References p.

◆ distanceToSurfaces()

virtual scalar distanceToSurfaces ( const vector & p) const
virtual

Reimplemented from implicitFunction.

References p.


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