CEPS  24.01
Cardiac ElectroPhysiology Simulator
ParallelRCElectrode Class Reference

Detailed Description

Definition at line 34 of file ParallelRCElectrode.hpp.

#include <ParallelRCElectrode.hpp>

Inheritance diagram for ParallelRCElectrode:
[legend]

Public Member Functions

 ParallelRCElectrode (CepsString name, const CepsSet< CepsAttribute > &attrs, Geometry *geom=nullptr)
 Constructor with attributes. Geometry can be passed to set size directly. More...
 
 ParallelRCElectrode (CepsString name, InputParameters *params, Geometry *geom=nullptr)
 Constructor with parameters from input file. Gets attributes from key "<m_identifier> attributes". More...
 
 ~ParallelRCElectrode ()=default
 Default destructor. More...
 
CepsReal getResistance (CepsBool surfacicUnit=false) const
 Get the electrode resistance in kOhm (at point x and time t) More...
 
void setResistance (CepsReal resistance)
 Set the electrode resistance in kOhm. More...
 
CepsReal getConductance (CepsBool surfacicUnit=false) const
 Get the electrode conductance in kOhm^-1 = mS (at point x and time t) More...
 
void setConductance (CepsReal conductance)
 Set the electrode conductance in kOhm^-1 = mS. More...
 
CepsReal getCapacitance (CepsBool surfacicUnit=false) const
 Get the electrode capacitance in uF (at point x and time t) More...
 
void setCapacitance (CepsReal capacitance)
 Set the electrode capacitance in uF. More...
 
void setupWithParameters (InputParameters *params)
 Sets options from the parameters. More...
 
- Public Member Functions inherited from ElectrodeBase
 ElectrodeBase (CepsString name, const CepsSet< CepsAttribute > &attrs, Geometry *geom=nullptr)
 Constructor with attributes. Geometry can be passed to set size directly. More...
 
 ElectrodeBase (CepsString name, InputParameters *params, Geometry *geom=nullptr)
 Constructor with parameters from input file. Gets attributes from key "<m_identifier> attributes". More...
 
 ~ElectrodeBase ()=default
 Destructor. More...
 
CepsString getName () const
 Get electrode label. More...
 
CepsReal getMeasure () const
 Get the electrode measure in cm or cm^2. More...
 
void computeMeasure (Geometry *geom)
 Set the electrode measure in cm or cm^2. More...
 
void setupWithParameters (InputParameters *params)
 Sets options from the parameters. More...
 
- Public Member Functions inherited from ceps::HoldsAttributes
 HoldsAttributes (const CepsSet< CepsAttribute > &attributes)
 Constructor with any number of attributes. More...
 
 HoldsAttributes (const CepsVector< CepsAttribute > &attributes)
 Constructor with any number of attributes. More...
 
 HoldsAttributes (CepsAttribute *attributes, const CepsUInt &n)
 Constructor with any number of attributes. More...
 
 HoldsAttributes ()=default
 Default constructor. More...
 
 HoldsAttributes (const HoldsAttributes &)=default
 Assignement operator. More...
 
 HoldsAttributes (HoldsAttributes &&) noexcept=default
 Copy constructor. More...
 
virtual ~HoldsAttributes ()=default
 Destructor. More...
 
HoldsAttributesoperator= (const HoldsAttributes &)=default
 Assignment operator. More...
 
HoldsAttributesoperator= (HoldsAttributes &&) noexcept=default
 Assignment operator. More...
 
CepsUInt getNumberOfAttributes () const
 Returns number of attributes of the entity. More...
 
CepsSet< CepsAttribute > & getAttributes ()
 Returns the attributes of the entity. More...
 
const CepsSet< CepsAttribute > & getAttributes () const
 Returns the attributes of the entity, const version. More...
 
void setAttributes (const CepsVector< CepsAttribute > &attributes)
 Sets the attributes of the entity. More...
 
void setAttributes (const CepsSet< CepsAttribute > &attributes)
 Sets the attributes of the entity. More...
 
void setAttributes (const CepsAttribute *attributes, const CepsUInt &n)
 Sets the attributes of the entity. More...
 
template<class _It >
void setAttributes (_It first, _It last)
 Sets the attributes of the entity. More...
 
void addAttribute (const CepsAttribute &name)
 Adds an attribute to the entity. More...
 
void addAttributes (const CepsVector< CepsAttribute > &attributes)
 Adds several attributes to the entity. More...
 
void addAttributes (const CepsSet< CepsAttribute > &attributes)
 Adds several attributes to the entity. More...
 
void addAttributes (const CepsAttribute *attributes, const CepsUInt &n)
 Adds several attributes to the entity. More...
 
template<class _It >
void addAttributes (_It first, _It last)
 Adds several attributes to the entity. More...
 
void removeAttribute (const CepsAttribute &name)
 Removes an attribute from the entity. More...
 
void removeAttributes (const CepsSet< CepsAttribute > &attributes)
 Removes several attributes from the entity. More...
 
void removeAttributes (const CepsVector< CepsAttribute > &attributes)
 Removes several attributes from the entity. More...
 
void removeAttributes (const CepsAttribute *attributes, const CepsUInt &n)
 Removes several attributes from the entity. More...
 
template<class _It >
void removeAttributes (_It first, _It last)
 Removes several attributes from the entity. More...
 
void clearAttributes ()
 Removes all attributes from the entity. More...
 
CepsBool hasAttribute (const CepsAttribute &name) const
 Tells if the entity has the attribute in argument. More...
 
CepsBool hasAllAttributes (const CepsVector< CepsAttribute > &attributes) const
 Tells if the entity has all the attributes in argument. More...
 
CepsBool hasAllAttributes (const CepsAttribute *attributes, const CepsUInt &n) const
 Tells if the entity has all the attributes in argument. More...
 
template<class _It >
CepsBool hasAllAttributes (_It first, _It last) const
 Tells if the entity has all the attributes in argument. More...
 
CepsBool hasOneOfAttributes (const CepsSet< CepsAttribute > &attributes) const
 Tells if the entity has one of the attributes in argument. More...
 
CepsBool hasOneOfAttributes (const CepsVector< CepsAttribute > &attributes) const
 Tells if the entity has one of the attributes in argument. More...
 
CepsBool hasOneOfAttributes (const CepsAttribute *attributes, const CepsUInt &n) const
 Tells if the entity has one of the attributes in argument. More...
 
template<class _It >
CepsBool hasOneOfAttributes (_It first, _It last) const
 Tells if the entity has one of the attributes in argument. More...
 
CepsBool hasUniversalAttribute () const
 Detect if the current entity has the attribute universal. More...
 
void reset ()
 Equivalent to HoldsAttributes::clear() More...
 

Protected Attributes

CepsReal m_resistance
 Electrode equivalent resistance [kOhm]. More...
 
CepsReal m_capacitance
 Electrode equivalent capacitance [uF]. More...
 
- Protected Attributes inherited from ElectrodeBase
CepsString m_name
 Electrode identifier. More...
 
CepsReal m_measure
 Size of the electrode. More...
 
- Protected Attributes inherited from ceps::HoldsAttributes
CepsSet< CepsAttributem_attributes
 The attributes held by the entity. More...
 

Additional Inherited Members

- Protected Member Functions inherited from ElectrodeBase
void checkNoAttribute ()
 Stops program if electrode has no attribute. More...
 

Constructor & Destructor Documentation

◆ ParallelRCElectrode() [1/2]

ParallelRCElectrode::ParallelRCElectrode ( CepsString  name,
const CepsSet< CepsAttribute > &  attrs,
Geometry geom = nullptr 
)
explicit

Constructor with attributes. Geometry can be passed to set size directly.

Parameters
nameIdentifier
attrsCell attributes defining the electrode domain
geomGeometry with cells

Definition at line 34 of file ParallelRCElectrode.cpp.

◆ ParallelRCElectrode() [2/2]

ParallelRCElectrode::ParallelRCElectrode ( CepsString  name,
InputParameters params,
Geometry geom = nullptr 
)
explicit

Constructor with parameters from input file. Gets attributes from key "<m_identifier> attributes".

Parameters
nameIdentifier
paramsParameters from input file
geomGeometry with cells

Definition at line 45 of file ParallelRCElectrode.cpp.

◆ ~ParallelRCElectrode()

ParallelRCElectrode::~ParallelRCElectrode ( )
default

Default destructor.

Member Function Documentation

◆ getCapacitance()

CepsReal ParallelRCElectrode::getCapacitance ( CepsBool  surfacicUnit = false) const

Get the electrode capacitance in uF (at point x and time t)

Definition at line 97 of file ParallelRCElectrode.cpp.

◆ getConductance()

CepsReal ParallelRCElectrode::getConductance ( CepsBool  surfacicUnit = false) const

Get the electrode conductance in kOhm^-1 = mS (at point x and time t)

Definition at line 85 of file ParallelRCElectrode.cpp.

◆ getResistance()

CepsReal ParallelRCElectrode::getResistance ( CepsBool  surfacicUnit = false) const

Get the electrode resistance in kOhm (at point x and time t)

Definition at line 73 of file ParallelRCElectrode.cpp.

◆ setCapacitance()

void ParallelRCElectrode::setCapacitance ( CepsReal  capacitance)

Set the electrode capacitance in uF.

Definition at line 103 of file ParallelRCElectrode.cpp.

◆ setConductance()

void ParallelRCElectrode::setConductance ( CepsReal  conductance)

Set the electrode conductance in kOhm^-1 = mS.

Definition at line 91 of file ParallelRCElectrode.cpp.

◆ setResistance()

void ParallelRCElectrode::setResistance ( CepsReal  resistance)

Set the electrode resistance in kOhm.

Definition at line 79 of file ParallelRCElectrode.cpp.

◆ setupWithParameters()

void ParallelRCElectrode::setupWithParameters ( InputParameters params)

Sets options from the parameters.

Definition at line 109 of file ParallelRCElectrode.cpp.

Field Documentation

◆ m_capacitance

CepsReal ParallelRCElectrode::m_capacitance
protected

Electrode equivalent capacitance [uF].

Definition at line 90 of file ParallelRCElectrode.hpp.

◆ m_resistance

CepsReal ParallelRCElectrode::m_resistance
protected

Electrode equivalent resistance [kOhm].

Definition at line 89 of file ParallelRCElectrode.hpp.


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