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

dielectric class. Simple tuple. More...

#include <CD_Dielectric.H>

Public Member Functions

 Dielectric ()
 Weak constructor, must subsequently call one of the define methods.
 
 Dielectric (const RefCountedPtr< BaseIF > &a_baseIF, const Real a_permittivity)
 Full constructor which uses constant permittivity. More...
 
 Dielectric (const RefCountedPtr< BaseIF > &a_baseIF, const std::function< Real(const RealVect a_pos)> &a_permittivity)
 Full constructor which uses variable permittivity. More...
 
virtual ~Dielectric ()
 Destructor (does nothing).
 
virtual void define (const RefCountedPtr< BaseIF > &a_baseIF, const Real a_permittivity)
 Define function. More...
 
virtual void define (const RefCountedPtr< BaseIF > &a_baseIF, const std::function< Real(const RealVect a_pos)> &a_permittivity)
 Define function for variable permittivity. More...
 
virtual const RefCountedPtr< BaseIF > & getImplicitFunction () const
 Get level-set function. More...
 
virtual Real getPermittivity (const RealVect a_pos) const
 Get permittivity. More...
 

Protected Attributes

RefCountedPtr< BaseIF > m_baseIF
 Implicit function.
 
Real m_constantPermittivity
 Constant permittivity.
 
std::function< Real(const RealVect a_pos)> m_variablePermittivity
 Variable permittivity.
 
bool m_useConstant
 Use constant permittivity or not.
 
bool m_isDefined
 Is defined or not.
 

Detailed Description

dielectric class. Simple tuple.

Constructor & Destructor Documentation

◆ Dielectric() [1/2]

Dielectric::Dielectric ( const RefCountedPtr< BaseIF > &  a_baseIF,
const Real  a_permittivity 
)

Full constructor which uses constant permittivity.

Parameters
[in]a_baseIFImplicit function
[in]a_permittivityConstant permittivity
Note
Calls the define function for constant permittivity.

◆ Dielectric() [2/2]

Dielectric::Dielectric ( const RefCountedPtr< BaseIF > &  a_baseIF,
const std::function< Real(const RealVect a_pos)> &  a_permittivity 
)

Full constructor which uses variable permittivity.

Parameters
[in]a_baseIFImplicit function
[in]a_permittivityVariable permittivity
Note
Calls the define function for variable permittivity.

Member Function Documentation

◆ define() [1/2]

void Dielectric::define ( const RefCountedPtr< BaseIF > &  a_baseIF,
const Real  a_permittivity 
)
virtual

Define function.

Parameters
[in]a_baseIFImplicit function
[in]a_permittivityConstant permittivity

◆ define() [2/2]

void Dielectric::define ( const RefCountedPtr< BaseIF > &  a_baseIF,
const std::function< Real(const RealVect a_pos)> &  a_permittivity 
)
virtual

Define function for variable permittivity.

Parameters
[in]a_baseIFImplicit function
[in]a_permittivityVariable permittivity

◆ getImplicitFunction()

const RefCountedPtr< BaseIF > & Dielectric::getImplicitFunction ( ) const
virtual

Get level-set function.

Returns
Returns m_baseIF

◆ getPermittivity()

Real Dielectric::getPermittivity ( const RealVect  a_pos) const
virtual

Get permittivity.

Parameters
[in]a_posPosition
Returns
Returns permittivity for physical coordinates a_pos.

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