Conductor definition (for LineGeometry)

These entities are capable of memorizing the physical and geometrical data of conductors intended to be arranged in a LineGeometry. The backend then derives the impedance matrix of the line for the simulation.

WireData

class krangpower._components.WireData(name='', **parameters)

Contains overhead line conductor electro-physical constants and geometric parameters.

Property name type Default value
rdc float -1
rac float -1
runits string none
gmrac float -1
gmrunits string none
radunits string none
diam float -2
aka(name)

Aliases the object.

eltype
fcs(**hookup)

Generates the opendss “new…” command for the object. Needs to be passed an appropriate set of keyword arguments to fill whatever topologic parameters are needed. It’s meant primarily for internal use by krangpower itself.

fullname

Name, in the form eltype.elname

classmethod isabove()

Returns True if the class is an above-graph component, like a monitor or regulator, False otherwise.

classmethod isai()

Returns true if the class is ai-enabled, False otherwise.

classmethod isnamed()

Returns True if the class is a named entity, like a LineCode, False otherwise.

jsonize(all_params=False, flatten_mtx=True)

Returns a dict that describes the element’s parameters. It’s compatible with the json I/O functions.

paramhelp()

Prints a cheatsheet for the object’s parameters.

sf_deepcopy()

Returns a deep copy of the object. This method is to be used in place of the standard copy.deepcopy, that will raise an exception.

toe

TSData

class krangpower._components.TSData(name='', **parameters)

Contains tape shielded underground conductor electro-physical constant and geometric parameters

Property name type Default value
DiaShield float -1
TapeLayer float -1
TapeLap float  
EpsR float -1
InsLayer float 0
DiaIns float -1
DiaCable float  
Rdc float -1
Rac float -1
Runits string -2
GMRac float  
GMRunits string  
radunits string  
normamps float  
emergamps float  
diam float  
aka(name)

Aliases the object.

eltype
fcs(**hookup)

Generates the opendss “new…” command for the object. Needs to be passed an appropriate set of keyword arguments to fill whatever topologic parameters are needed. It’s meant primarily for internal use by krangpower itself.

fullname

Name, in the form eltype.elname

classmethod isabove()

Returns True if the class is an above-graph component, like a monitor or regulator, False otherwise.

classmethod isai()

Returns true if the class is ai-enabled, False otherwise.

classmethod isnamed()

Returns True if the class is a named entity, like a LineCode, False otherwise.

jsonize(all_params=False, flatten_mtx=True)

Returns a dict that describes the element’s parameters. It’s compatible with the json I/O functions.

paramhelp()

Prints a cheatsheet for the object’s parameters.

sf_deepcopy()

Returns a deep copy of the object. This method is to be used in place of the standard copy.deepcopy, that will raise an exception.

toe

CNData

class krangpower._components.CNData(name='', **parameters)

Contains concentric neutral underground conductor electro-physical constant and geometric parameters

Property name type Default value
k int -1
DiaStrand float -1
GmrStrand float  
Rstrand float -1
EpsR float  
InsLayer float -1
DiaIns float  
DiaCable float -1
Rdc float -1
Rac float -2
Runits string  
GMRac float  
GMRunits string  
radunits string  
diam float  
k float 2.3
aka(name)

Aliases the object.

eltype
fcs(**hookup)

Generates the opendss “new…” command for the object. Needs to be passed an appropriate set of keyword arguments to fill whatever topologic parameters are needed. It’s meant primarily for internal use by krangpower itself.

fullname

Name, in the form eltype.elname

classmethod isabove()

Returns True if the class is an above-graph component, like a monitor or regulator, False otherwise.

classmethod isai()

Returns true if the class is ai-enabled, False otherwise.

classmethod isnamed()

Returns True if the class is a named entity, like a LineCode, False otherwise.

jsonize(all_params=False, flatten_mtx=True)

Returns a dict that describes the element’s parameters. It’s compatible with the json I/O functions.

paramhelp()

Prints a cheatsheet for the object’s parameters.

sf_deepcopy()

Returns a deep copy of the object. This method is to be used in place of the standard copy.deepcopy, that will raise an exception.

toe