Fuse
[Distribution flow solver (network)Transmission flow solver (network)]


Functions

int fuse::create (void)
EXPORT int create_fuse (OBJECT **obj, OBJECT *parent)
 REQUIRED: allocate and initialize an object.
 fuse::fuse (MODULE *mod)
int fuse::init (void)
 Object initialization is called once after all object have been created.
EXPORT int init_fuse (OBJECT *obj)
int fuse::isa (char *classname)
EXPORT int isa_fuse (OBJECT *obj, char *classname)
 Allows the core to discover whether obj is a subtype of this class.
TIMESTAMP fuse::postsync (TIMESTAMP t0)
TIMESTAMP fuse::sync (TIMESTAMP t0)
EXPORT TIMESTAMP sync_fuse (OBJECT *obj, TIMESTAMP t0)
EXPORT TIMESTAMP sync_fuse (OBJECT *obj, TIMESTAMP t0, PASSCONFIG pass)

Variables

static fusefuse::defaults = NULL
static CLASSfuse::oclass = NULL
static CLASSfuse::pclass = NULL


Function Documentation

EXPORT int create_fuse ( 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 136 of file fuse.cpp.

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

int fuse::init ( void   )  [inherited]

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

Reimplemented from link.

Definition at line 79 of file fuse.cpp.

References link::A_mat, link::a_mat, link::b_mat, link::B_mat, link::c_mat, link::d_mat, link::i_abc_in, link::i_abc_out, link::i_n_in, link::i_n_out, and relay::init().

Referenced by init_fuse().

EXPORT int isa_fuse ( OBJECT obj,
char *  classname 
)

Allows the core to discover whether obj is a subtype of this class.

Parameters:
obj a pointer to this object
classname the name of the object the core is testing
Returns:
true (1) if obj is a subtype of this class

Definition at line 199 of file fuse.cpp.

References OBJECTDATA.

TIMESTAMP fuse::sync ( TIMESTAMP  t0  )  [inherited]

Todo:
it would be better to model how much damage the fuse incurred (network, low priority) (ticket #128)

Reimplemented from link.

Definition at line 95 of file fuse.cpp.

References link::b_mat, link::B_mat, blow_time, link::I, link::i_abc_in, minimum_current_A, powerflow_object::phase_index(), powerflow_object::phases, relay::RS_OPEN, relay::status, relay::sync(), TS_NEVER, and UNKNOWN.

Referenced by sync_fuse().


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