In essense the distribution network can be seen as a series of nodes and links. Nodes primary responsibility is to act as an aggregation point for the links that are attached to it, and to hold the current and voltage values that will be used in the matrix calculations done in the link.
Three types of nodes are defined in this file. Nodes are simply a basic object that exports the voltages for each phase. Triplex nodes export voltages for 3 lines; line1_voltage, line2_voltage, lineN_voltage.
TRUE, the bus type is used to determine how voltage control is implemented. Voltage control is only performed when the bus has no link that considers it a to node. When the flag #NF_HASSOURCE is cleared, then the following is in effect:

;
;
Modules | |
| Triplex_node | |
Functions | |
| LINKCONNECTED * | node::attachlink (OBJECT *obj) |
| Attachlink is called by link objects during their creation. | |
| EXPORT int | create_node (OBJECT **obj, OBJECT *parent) |
| REQUIRED: allocate and initialize an object. | |
| EXPORT int | init_node (OBJECT *obj) |
| Object initialization is called once after all object have been created. | |
| int | node::kmldump (FILE *fp) |
| int * | node::NR_populate (void) |
| NR_populate is called by link objects during their first presync if a node is not "initialized". | |
| EXPORT TIMESTAMP | sync_node (OBJECT *obj, TIMESTAMP t0, PASSCONFIG pass) |
| Sync is called when the clock needs to advance on the bottom-up pass (PC_BOTTOMUP). | |
Variables | |
| static unsigned int | node::n = 0 |
| node count */ | |
| LINKCONNECTED * node::attachlink | ( | OBJECT * | obj | ) | [inherited] |
Attachlink is called by link objects during their creation.
It creates a linked list of links that are attached to the current node.
| obj | the link that has an attachment to this node |
| obj | object to attach |
Definition at line 2412 of file node.cpp.
References link::from, gl_error, gl_malloc, OBJECTDATA, and link::to.
REQUIRED: allocate and initialize an object.
| obj | a pointer to a pointer of the last object in the list | |
| parent | a pointer to the parent of this object |
Definition at line 2127 of file node.cpp.
References gl_create_object, gl_error, gl_set_parent, and OBJECTDATA.
| EXPORT int init_node | ( | OBJECT * | obj | ) |
Object initialization is called once after all object have been created.
| obj | a pointer to this object |
Definition at line 2189 of file node.cpp.
References GL_THROW, and OBJECTDATA.
| int node::kmldump | ( | FILE * | fp | ) | [inherited] |
Definition at line 2038 of file node.cpp.
References gl_object_isa, OBJECTDATA, OBJECTHDR, PHASE_A, PHASE_B, and PHASE_C.
| int * node::NR_populate | ( | void | ) | [inherited] |
| EXPORT TIMESTAMP sync_node | ( | OBJECT * | obj, | |
| TIMESTAMP | t0, | |||
| PASSCONFIG | pass | |||
| ) |
Sync is called when the clock needs to advance on the bottom-up pass (PC_BOTTOMUP).
| obj | the object we are sync'ing | |
| t0 | this objects current timestamp | |
| pass | the current pass for this sync call |
Definition at line 2210 of file node.cpp.
References gl_error, OBJECTDATA, PC_BOTTOMUP, PC_POSTTOPDOWN, and PC_PRETOPDOWN.