Transformer
[Distribution flow solver (network)]


Detailed Description

The transformer is one of the more complex objects in the powerflow network.

Implemented as a link, the transformer configuration exports a type property that allows the transformer to operate as and single phase transformer, a wye-wye connected transformer, a delta-grounded wye tranformer, a delta-delta transformer, and as a center-tapped transformer.

The transformer exports a phase property that is a set of phases and may be set using the bitwise or operator (A|B|C for a 3 phase line).


Modules

 Transformer Configuration

Functions

int transformer::create (void)
EXPORT int create_transformer (OBJECT **obj, OBJECT *parent)
 REQUIRED: allocate and initialize an object.
int transformer::init (void)
EXPORT int init_transformer (OBJECT *obj)
 Object initialization is called once after all object have been created.
int transformer::isa (char *classname)
EXPORT int isa_transformer (OBJECT *obj, char *classname)
EXPORT TIMESTAMP sync_transformer (OBJECT *obj, TIMESTAMP t0, PASSCONFIG pass)
 Sync is called when the clock needs to advance on the bottom-up pass (PC_BOTTOMUP).
 transformer::transformer (MODULE *mod)

Variables

static transformertransformer::defaults = NULL
static CLASStransformer::oclass = NULL
static CLASStransformer::pclass = NULL


Function Documentation

EXPORT int create_transformer ( OBJECT **  obj,
OBJECT parent 
)

REQUIRED: allocate and initialize an object.

Parameters:
obj a pointer to a pointer of the last object in the list
parent a pointer to the parent of this object
Returns:
1 for a successfully created object, 0 for error

Definition at line 295 of file transformer.cpp.

References transformer::create(), gl_create_object, gl_error, gl_set_parent, OBJECTDATA, and transformer::oclass.

EXPORT int init_transformer ( OBJECT obj  ) 

Object initialization is called once after all object have been created.

Parameters:
parent a pointer to this object's parent
Returns:
1 on success, 0 on error

Definition at line 322 of file transformer.cpp.

References powerflow_object::get_id(), powerflow_object::get_name(), GL_THROW, transformer::init(), and OBJECTDATA.

EXPORT TIMESTAMP sync_transformer ( OBJECT obj,
TIMESTAMP  t0,
PASSCONFIG  pass 
)

Sync is called when the clock needs to advance on the bottom-up pass (PC_BOTTOMUP).

Parameters:
t0 this objects current timestamp
t1 the timestamp which the object should move forward to
Returns:
t2, where t2>t1 on success, t2=t1 for retry, t2<t1 on failure

Definition at line 342 of file transformer.cpp.

References s_object_list::clock, powerflow_object::get_id(), powerflow_object::get_name(), GL_THROW, OBJECTDATA, PC_BOTTOMUP, link::postsync(), and transformer::sync().


GridLAB-DTM Version 1.0
An open-source project initiated by the US Department of Energy