56 this->
pNode =
nullptr;
57 this->
nNode =
nullptr;
67 if (resistanceIn <= 1e-6) {
141 }
else if (node ==
nNode) {
#define WRITE_ERRORF(...)
void setNegNode(Node *node)
void setVoltage(double voltage)
void setCurrent(double current)
void setType(ElementType ET)
void setPosNode(Node *node)
Element(std::string name, ElementType type, double value)
void setResistance(double resistance)
void setPowerWanted(double powerWanted)
Node * getTheOtherNode(Node *node)
void setEnabled(bool isenabled)
@ CURRENT_SOURCE_traction_wire
@ VOLTAGE_SOURCE_traction_wire