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

Electrode class for encapsulating the concept of an electrical conductor. More...

#include <CD_Electrode.H>

Public Member Functions

 Electrode ()
 Default constructor. Must subsequently call define()
 
 Electrode (const RefCountedPtr< BaseIF > &a_baseIF, const bool a_live, const Real a_voltageFraction=1.0)
 Constructor. More...
 
virtual ~Electrode ()
 Destructor (does nothing)
 
virtual void define (const RefCountedPtr< BaseIF > &a_baseIF, const bool a_live, const Real a_voltageFraction=1.0)
 Define function. More...
 
virtual const RefCountedPtr< BaseIF > & getImplicitFunction () const
 Get implicit function. More...
 
virtual const bool & isLive () const
 Get live or not. More...
 
virtual const Real & getFraction () const
 Get fraction of live voltage. More...
 

Protected Attributes

RefCountedPtr< BaseIF > m_baseIF
 Implicit function.
 
bool m_isLive
 Live or not.
 
bool m_isDefined
 Is defined or not.
 
Real m_voltageFraction
 Fraction of the live potential.
 

Detailed Description

Electrode class for encapsulating the concept of an electrical conductor.

Constructor & Destructor Documentation

◆ Electrode()

Electrode::Electrode ( const RefCountedPtr< BaseIF > &  a_baseIF,
const bool  a_live,
const Real  a_voltageFraction = 1.0 
)

Constructor.

Parameters
[in]a_baseIFImplicit function for the electrode
[in]a_liveLive electrode or not
[in]a_voltageFractionFraction of live voltage (if live)
Note
Calls the define function

Member Function Documentation

◆ define()

void Electrode::define ( const RefCountedPtr< BaseIF > &  a_baseIF,
const bool  a_live,
const Real  a_voltageFraction = 1.0 
)
virtual

Define function.

Parameters
[in]a_baseIFImplicit function for the electrode
[in]a_liveLive electrode or not
[in]a_voltageFractionFraction of live voltage (if live)

◆ getFraction()

const Real & Electrode::getFraction ( ) const
virtual

Get fraction of live voltage.

Returns
m_voltageFraction

◆ getImplicitFunction()

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

Get implicit function.

Returns
Returns m_baseIF

◆ isLive()

const bool & Electrode::isLive ( ) const
virtual

Get live or not.

Returns
Returns m_isLive

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