Loading...
Searching...
No Matches
sphereImplicitFunction Class Reference

Creates a sphere. More...

#include <sphereImplicitFunction.H>

Inheritance diagram for sphereImplicitFunction:
Collaboration diagram for sphereImplicitFunction:

Public Member Functions

 TypeName ("sphere")
 Runtime type information.
 sphereImplicitFunction (const point &, const scalar radius, const scalar scale)
 Construct from components.
 sphereImplicitFunction (const dictionary &dict)
 Construct from dictionary.
virtual ~sphereImplicitFunction ()=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

Creates a sphere.

Original code supplied by Henning Scheufler, DLR (2019)

Source files

Definition at line 52 of file sphereImplicitFunction.H.

Constructor & Destructor Documentation

◆ sphereImplicitFunction() [1/2]

sphereImplicitFunction ( const point & ,
const scalar radius,
const scalar scale )

Construct from components.

◆ sphereImplicitFunction() [2/2]

sphereImplicitFunction ( const dictionary & dict)
explicit

Construct from dictionary.

References dict.

◆ ~sphereImplicitFunction()

virtual ~sphereImplicitFunction ( )
virtualdefault

Destructor.

Member Function Documentation

◆ TypeName()

TypeName ( "sphere" )

Runtime type information.

◆ value()

virtual scalar value ( const vector & p) const
inlinevirtual

Reimplemented from implicitFunction.

Definition at line 105 of file sphereImplicitFunction.H.

References Foam::mag(), and p.

Here is the call graph for this function:

◆ grad()

virtual vector grad ( const vector & p) const
inlinevirtual

Reimplemented from implicitFunction.

Definition at line 110 of file sphereImplicitFunction.H.

References p.

◆ distanceToSurfaces()

virtual scalar distanceToSurfaces ( const vector & p) const
inlinevirtual

Reimplemented from implicitFunction.

Definition at line 115 of file sphereImplicitFunction.H.

References Foam::mag(), and p.

Here is the call graph for this function:

The documentation for this class was generated from the following file:
  • applications/utilities/preProcessing/setAlphaField/alphaFieldFunctions/implicitFunctions/sphere/sphereImplicitFunction.H