12 #ifndef CD_Dielectric_H
13 #define CD_Dielectric_H
20 #include <RefCountedPtr.H>
23 #include <CD_NamespaceHeader.H>
42 Dielectric(
const RefCountedPtr<BaseIF>& a_baseIF,
const Real a_permittivity);
50 Dielectric(
const RefCountedPtr<BaseIF>& a_baseIF,
const std::function<Real(
const RealVect a_pos)>& a_permittivity);
63 define(
const RefCountedPtr<BaseIF>& a_baseIF,
const Real a_permittivity);
71 define(
const RefCountedPtr<BaseIF>& a_baseIF,
const std::function<Real(
const RealVect a_pos)>& a_permittivity);
77 virtual const RefCountedPtr<BaseIF>&
115 #include <CD_NamespaceFooter.H>
dielectric class. Simple tuple.
Definition: CD_Dielectric.H:29
virtual const RefCountedPtr< BaseIF > & getImplicitFunction() const
Get level-set function.
Definition: CD_Dielectric.cpp:75
RefCountedPtr< BaseIF > m_baseIF
Implicit function.
Definition: CD_Dielectric.H:92
bool m_useConstant
Use constant permittivity or not.
Definition: CD_Dielectric.H:107
virtual void define(const RefCountedPtr< BaseIF > &a_baseIF, const Real a_permittivity)
Define function.
Definition: CD_Dielectric.cpp:48
virtual ~Dielectric()
Destructor (does nothing).
Definition: CD_Dielectric.cpp:44
Dielectric()
Weak constructor, must subsequently call one of the define methods.
Definition: CD_Dielectric.cpp:17
Real m_constantPermittivity
Constant permittivity.
Definition: CD_Dielectric.H:97
bool m_isDefined
Is defined or not.
Definition: CD_Dielectric.H:112
virtual Real getPermittivity(const RealVect a_pos) const
Get permittivity.
Definition: CD_Dielectric.cpp:85
std::function< Real(const RealVect a_pos)> m_variablePermittivity
Variable permittivity.
Definition: CD_Dielectric.H:102