LifeV
|
ZeroDimensionalElementPassive - A class for passive elements. More...
#include <ZeroDimensionalCircuitData.hpp>
Protected Attributes | |
Real | M_parameter |
vecInt_Type | M_nodeIndex |
Protected Attributes inherited from ZeroDimensionalElement | |
Int | M_id |
ZeroDimensionalElementType | M_type |
Real | M_current |
Real | M_deltaCurrent |
Constructors and Destructor | |
ZeroDimensionalElementPassive () | |
Constructor. More... | |
virtual | ~ZeroDimensionalElementPassive () |
Destructor. More... | |
Methods | |
void | showMe (const Int &flag=0) |
Show some information. More... | |
void | connectElement (zeroDimensionalNodeSPtr_Type &nodes) |
Impleaments the abstarct class for passive elements. More... | |
Set Methods | |
void | setParameter (const Real ¶meter) |
set parameter (1/R, 1/L, C, 1/R_{eff}) More... | |
void | setNodeIndex (const Int &index) |
add the node to the list. More... | |
Get Methods | |
const Real & | parameter () const |
get the parameter (1/R, 1/L, C, 1/R_{eff}) More... | |
const Int & | nodeIndex (const Int &position) const |
get the node index connected to the node. More... | |
Real | direction (const Int &nodeId) const |
This method specifies the convention of current direction in an element. More... | |
Additional Inherited Members | |
Public Member Functions inherited from ZeroDimensionalElement | |
ZeroDimensionalElement () | |
Constructor. More... | |
virtual | ~ZeroDimensionalElement () |
Destructor. More... | |
const std::string | enum2string (const ZeroDimensionalElementType &type) |
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... | |
void | setId (const Int &id) |
void | setCurrent (const Real ¤t) |
void | setDeltaCurrent (const Real &deltaCurrent) |
Set derivative of current respect to time. More... | |
const Int & | id () const |
const ZeroDimensionalElementType & | type () const |
const Real & | current () const |
const Real & | deltaCurrent () const |
Get derivative of current respect to time. More... | |
ZeroDimensionalElementPassive - A class for passive elements.
Definition at line 201 of file ZeroDimensionalCircuitData.hpp.
|
explicit |
Constructor.
Definition at line 96 of file ZeroDimensionalCircuitData.cpp.
|
inlinevirtual |
Destructor.
Definition at line 212 of file ZeroDimensionalCircuitData.hpp.
|
virtual |
Show some information.
Reimplemented from ZeroDimensionalElement.
Reimplemented in ZeroDimensionalElementPassiveInductor, ZeroDimensionalElementPassiveCapacitor, ZeroDimensionalElementPassiveDiode, and ZeroDimensionalElementPassiveResistor.
Definition at line 102 of file ZeroDimensionalCircuitData.cpp.
|
virtual |
Impleaments the abstarct class for passive elements.
Implements ZeroDimensionalElement.
Definition at line 108 of file ZeroDimensionalCircuitData.cpp.
|
inline |
set parameter (1/R, 1/L, C, 1/R_{eff})
Definition at line 233 of file ZeroDimensionalCircuitData.hpp.
|
inline |
add the node to the list.
node | index. |
Definition at line 242 of file ZeroDimensionalCircuitData.hpp.
|
inline |
get the parameter (1/R, 1/L, C, 1/R_{eff})
Definition at line 254 of file ZeroDimensionalCircuitData.hpp.
get the node index connected to the node.
Definition at line 264 of file ZeroDimensionalCircuitData.hpp.
This method specifies the convention of current direction in an element.
A | node index connected to the element. |
Implements ZeroDimensionalElement.
Definition at line 125 of file ZeroDimensionalCircuitData.cpp.
|
protected |
Definition at line 278 of file ZeroDimensionalCircuitData.hpp.
|
protected |
Definition at line 279 of file ZeroDimensionalCircuitData.hpp.