LifeV
|
ZeroDimensionalElement - The base element class. More...
#include <ZeroDimensionalCircuitData.hpp>
Protected Attributes | |
Int | M_id |
ZeroDimensionalElementType | M_type |
Real | M_current |
Real | M_deltaCurrent |
Constructors and Destructor | |
ZeroDimensionalElement () | |
Constructor. More... | |
virtual | ~ZeroDimensionalElement () |
Destructor. More... | |
Methods | |
virtual void | showMe (const Int &flag=0) |
Display some information. More... | |
const std::string | enum2string (const ZeroDimensionalElementType &type) |
virtual void | connectElement (zeroDimensionalNodeSPtr_Type &nodes)=0 |
Connect elements to the nodes. More... | |
virtual void | buildABC (matrix_Type &, matrix_Type &, vector_Type &, const zeroDimensionalNodeSPtr_Type &) |
Contribution of the element of matrix {A} and {B} and vector {C}. More... | |
virtual void | extractSolution (const ZeroDimensionalNodeS &) |
Compute outputs (currents and voltages) from the solution vector after each succesful iteration. More... | |
virtual Real | direction (const Int &nodeId) const =0 |
This method specifies the convention of current direction in an element. More... | |
Set Methods | |
void | setId (const Int &id) |
void | setCurrent (const Real ¤t) |
void | setDeltaCurrent (const Real &deltaCurrent) |
Set derivative of current respect to time. More... | |
Get Methods | |
const Int & | id () const |
const ZeroDimensionalElementType & | type () const |
const Real & | current () const |
const Real & | deltaCurrent () const |
Get derivative of current respect to time. More... | |
ZeroDimensionalElement - The base element class.
Definition at line 79 of file ZeroDimensionalCircuitData.hpp.
|
inlineexplicit |
Constructor.
Definition at line 87 of file ZeroDimensionalCircuitData.hpp.
|
inlinevirtual |
Destructor.
Definition at line 90 of file ZeroDimensionalCircuitData.hpp.
|
virtual |
Display some information.
Reimplemented in ZeroDimensionalElementSource, ZeroDimensionalElementPassiveInductor, ZeroDimensionalElementPassiveCapacitor, ZeroDimensionalElementPassiveDiode, ZeroDimensionalElementPassiveResistor, and ZeroDimensionalElementPassive.
Definition at line 47 of file ZeroDimensionalCircuitData.cpp.
const std::string enum2string | ( | const ZeroDimensionalElementType & | type | ) |
Definition at line 54 of file ZeroDimensionalCircuitData.cpp.
|
pure virtual |
Connect elements to the nodes.
After all emenets and nodes are created, each element will call this method to connect itself to the nodes.
Implemented in ZeroDimensionalElementCurrentSource, ZeroDimensionalElementVoltageSource, and ZeroDimensionalElementPassive.
|
inlinevirtual |
Contribution of the element of matrix {A} and {B} and vector {C}.
After updating the BCs ( or Terminal nodes ) this each element will invoke this method to compute it's contribution on matrices.
Reimplemented in ZeroDimensionalElementCurrentSource, ZeroDimensionalElementPassiveInductor, ZeroDimensionalElementPassiveCapacitor, ZeroDimensionalElementPassiveDiode, and ZeroDimensionalElementPassiveResistor.
Definition at line 115 of file ZeroDimensionalCircuitData.hpp.
|
inlinevirtual |
Compute outputs (currents and voltages) from the solution vector after each succesful iteration.
After each time step, when Rythmos solver is succesfully finishes, this method will compute finial outputs ( for exmple currents) from the finial solution vector.
Reimplemented in ZeroDimensionalElementPassiveCapacitor, ZeroDimensionalElementPassiveDiode, and ZeroDimensionalElementPassiveResistor.
Definition at line 122 of file ZeroDimensionalCircuitData.hpp.
This method specifies the convention of current direction in an element.
A | node index connected to the element. |
Implemented in ZeroDimensionalElementSource, and ZeroDimensionalElementPassive.
|
inline |
Definition at line 137 of file ZeroDimensionalCircuitData.hpp.
|
inline |
Definition at line 142 of file ZeroDimensionalCircuitData.hpp.
|
inline |
Set derivative of current respect to time.
Definition at line 148 of file ZeroDimensionalCircuitData.hpp.
|
inline |
Definition at line 159 of file ZeroDimensionalCircuitData.hpp.
|
inline |
Definition at line 164 of file ZeroDimensionalCircuitData.hpp.
|
inline |
Definition at line 169 of file ZeroDimensionalCircuitData.hpp.
|
inline |
Get derivative of current respect to time.
Definition at line 175 of file ZeroDimensionalCircuitData.hpp.
|
protected |
Definition at line 184 of file ZeroDimensionalCircuitData.hpp.
|
protected |
Definition at line 185 of file ZeroDimensionalCircuitData.hpp.
|
protected |
Definition at line 186 of file ZeroDimensionalCircuitData.hpp.
|
protected |
Definition at line 187 of file ZeroDimensionalCircuitData.hpp.