Fuse
[Distribution flow solver (radial)]


Detailed Description

Todo:
fuse do not reclose ever once blown, implement fuse restoration scheme (e.g., scale of hours with circuit outage)


Functions

EXPORT int create_fuse (OBJECT **obj, OBJECT *parent)
 REQUIRED: allocate and initialize an object.
int fuse::fuse_state (OBJECT *parent)
 Routine to see if a fuse has been blown.
int fuse::init (OBJECT *parent)
 Object initialization is called once after all object have been created.
EXPORT int isa_fuse (OBJECT *obj, char *classname)
 Allows the core to discover whether obj is a subtype of this class.


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 461 of file fuse.cpp.

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

int fuse::fuse_state ( OBJECT parent  )  [inherited]

Routine to see if a fuse has been blown.

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

Definition at line 301 of file fuse.cpp.

References link::current_in.

int fuse::init ( OBJECT parent  )  [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 86 of file fuse.cpp.

References link::a_mat, GL_THROW, gl_warning, OBJECTHDR, PHASE_A, PHASE_B, PHASE_C, and PHASE_S.

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 551 of file fuse.cpp.

References OBJECTDATA.


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