12 #ifndef CD_Electrode_H
13 #define CD_Electrode_H
17 #include <RefCountedPtr.H>
20 #include <CD_NamespaceHeader.H>
40 Electrode(
const RefCountedPtr<BaseIF>& a_baseIF,
const bool a_live,
const Real a_voltageFraction = 1.0);
54 define(
const RefCountedPtr<BaseIF>& a_baseIF,
const bool a_live,
const Real a_voltageFraction = 1.0);
60 virtual const RefCountedPtr<BaseIF>&
99 #include <CD_NamespaceFooter.H>
Electrode class for encapsulating the concept of an electrical conductor.
Definition: CD_Electrode.H:26
virtual const Real & getFraction() const
Get fraction of live voltage.
Definition: CD_Electrode.cpp:70
virtual void define(const RefCountedPtr< BaseIF > &a_baseIF, const bool a_live, const Real a_voltageFraction=1.0)
Define function.
Definition: CD_Electrode.cpp:37
RefCountedPtr< BaseIF > m_baseIF
Implicit function.
Definition: CD_Electrode.H:81
bool m_isLive
Live or not.
Definition: CD_Electrode.H:86
bool m_isDefined
Is defined or not.
Definition: CD_Electrode.H:91
virtual ~Electrode()
Destructor (does nothing)
Definition: CD_Electrode.cpp:33
virtual const bool & isLive() const
Get live or not.
Definition: CD_Electrode.cpp:60
virtual const RefCountedPtr< BaseIF > & getImplicitFunction() const
Get implicit function.
Definition: CD_Electrode.cpp:50
Electrode()
Default constructor. Must subsequently call define()
Definition: CD_Electrode.cpp:16
Real m_voltageFraction
Fraction of the live potential.
Definition: CD_Electrode.H:96