sphereImplicitFunction Class Reference

Creates a sphere. More...

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

Public Member Functions

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

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

Creates a sphere.

Original code supplied by Henning Scheufler, DLR (2019)

Source files

Definition at line 56 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.

◆ ~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 97 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 102 of file sphereImplicitFunction.H.

References p.

◆ distanceToSurfaces()

virtual scalar distanceToSurfaces ( const vector p) const
inlinevirtual

Reimplemented from implicitFunction.

Definition at line 107 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: