chombo-discharge
|
Shallow binding of EBGeometry signed distance functions to Chombo. More...
#include <CD_EBGeometryIF.H>
Public Member Functions | |
EBGeometryIF () | |
Constructor. Sets shape to nullptr. | |
EBGeometryIF (const std::shared_ptr< EBGeometry::ImplicitFunction< T >> &a_sdf, const bool a_flipInside, const Real a_zCoord=0.0) | |
Full constructor. More... | |
EBGeometryIF (const EBGeometryIF &a_inputIF) | |
Copy constructor. More... | |
virtual | ~EBGeometryIF () |
Destructor. Does nothing. | |
virtual Real | value (const RealVect &a_point) const override |
Value function. Returns distance to object. More... | |
virtual BaseIF * | newImplicitFunction () const override |
IF factory method. | |
Protected Attributes | |
std::shared_ptr< const EBGeometry::ImplicitFunction< T > > | m_sdf |
Signed distance function. | |
bool | m_flipInside |
Hook for making outside -> inside. | |
Real | m_zCoord |
z-coordinate through which the object is sliced. | |
Shallow binding of EBGeometry signed distance functions to Chombo.
Since EBGeometry is inherently 3D and chombo-discharge is both 2D and 3D, the object will be sliced through a specified z-coordinate doing 2D simulations.
EBGeometryIF< T >::EBGeometryIF | ( | const std::shared_ptr< EBGeometry::ImplicitFunction< T >> & | a_sdf, |
const bool | a_flipInside, | ||
const Real | a_zCoord = 0.0 |
||
) |
Full constructor.
[in] | a_impFunc | EBGeometry implicit function |
[in] | a_flipInside | Hook for making inside -> outside. |
[in] | a_zCoord | z-coordinate through which the object is sliced. |
EBGeometryIF< T >::EBGeometryIF | ( | const EBGeometryIF< T > & | a_inputIF | ) |
Copy constructor.
[in] | a_inputIF | Other implicit function. |
|
overridevirtual |
Value function. Returns distance to object.
[in] | a_point | Physical position. |