chombo-discharge
Public Member Functions | Protected Attributes | List of all members
MushroomIF Class Reference

"Mushroom" implicit function. Consists of a cylinder with a circular plate on top. More...

#include <CD_MushroomIF.H>

Inheritance diagram for MushroomIF:
Inheritance graph
[legend]
Collaboration diagram for MushroomIF:
Collaboration graph
[legend]

Public Member Functions

 MushroomIF (const RealVect a_center, const Real a_R, const Real a_r, const Real a_L, const Real a_d, const Real a_curv, const bool a_fluidInside)
 Full constructor. More...
 
 MushroomIF (const MushroomIF &a_inputIF)
 Copy constructor. More...
 
virtual ~MushroomIF ()
 Destructor (does nothing)
 
virtual Real value (const RealVect &a_pos) const override
 Value function. More...
 
virtual BaseIF * newImplicitFunction () const override
 Factory function. More...
 

Protected Attributes

RefCountedPtr< BaseIF > m_baseIF
 Implicit function – this is a smooth union between the foot and the circular plate.
 
bool m_fluidInside
 Fluid on the inside or not.
 

Detailed Description

"Mushroom" implicit function. Consists of a cylinder with a circular plate on top.

Oriented along +z in 3D and +y in 2D.

Constructor & Destructor Documentation

◆ MushroomIF() [1/2]

MushroomIF::MushroomIF ( const RealVect  a_center,
const Real  a_R,
const Real  a_r,
const Real  a_L,
const Real  a_d,
const Real  a_curv,
const bool  a_fluidInside 
)

Full constructor.

Parameters
[in]a_centerCenter point of the circular platew
[in]a_RRadius of the flat plate.
[in]a_rRadius of the cylinder foot
[in]a_LLength of the cylinder foot
[in]a_dPlate thickness
[in]a_curvCorner curvature
[in]a_fluidInsideFluid on inside or not

◆ MushroomIF() [2/2]

MushroomIF::MushroomIF ( const MushroomIF a_inputIF)

Copy constructor.

Parameters
[in]a_inputIFOther input

Member Function Documentation

◆ newImplicitFunction()

BaseIF * MushroomIF::newImplicitFunction ( ) const
overridevirtual

Factory function.

Returns
Returns new MushroomIF object, casted to BaseIF*

◆ value()

Real MushroomIF::value ( const RealVect &  a_pos) const
overridevirtual

Value function.

Parameters
[in]a_posPosition

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