Transmission line definition¶
These entities define transmission line parameters, directly via impedance matrix specification (LineCode) or via an arrangement of conductors defined in the Circuit (see section “Conductor definition”)
LineCode_S¶
-
class
krangpower.
LineCode_S
(name, **kwargs)¶ Contains a linecode defined with symmetrical components R0,R1,C0,C1,X0,X1.
Property name type Default value nphases int 3 r1 float 0.05800 x1 float 0.12060 r0 float 0.17840 x0 float 0.40470 C1 float 3.40000 C0 float 1.60000 units string none baseFreq float 50.0 normamps float 400.0 emergamps float 600.0 faultrate float 0.1 %perm float 20.0 repair float 3.0 Kron string N Rg float 0.01805 Xg float 0.15508 rho float 100.0 neutral int 3 -
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, using='/home/docs/checkouts/readthedocs.org/user_builds/krangpower/checkouts/enhancer_old/krangpower/defaults/default_dssentities.json')¶ 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.
-
LineCode_A¶
-
class
krangpower.
LineCode_A
(name, **kwargs)¶ Contains a linecode defined with generally asymmetrical components, rmatrix, cmatrix, xmatrix.
Property name type Default value nphases int 3 units string none rmatrix floatmatrix 0.09813333,0.04013333,…. xmatrix floatmatrix 0.21530000,0.09470000,… cmatrix floatmatrix 2.80000000,-0.60000000,… baseFreq float 50.0 normamps float 400.0 emergamps float 600.0 faultrate float 0.1 %perm float 20.0 repair float 3.0 Kron string N Rg float 0.01805 Xg float 0.15508 rho float 100.0 neutral int 3 -
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, using='/home/docs/checkouts/readthedocs.org/user_builds/krangpower/checkouts/enhancer_old/krangpower/defaults/default_dssentities.json')¶ 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.
-
LineGeometry_O¶
-
class
krangpower.
LineGeometry_O
(name, **kwargs)¶ Line Geometry OVERHEAD
Property name type Default value nconds int 1 nphases int 1 wire stringarray x floatarray 0 h floatarray 0 units stringarray mt reduce string spacing string -
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, using='/home/docs/checkouts/readthedocs.org/user_builds/krangpower/checkouts/enhancer_old/krangpower/defaults/default_dssentities.json')¶ 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.
-
LineGeometry_T¶
-
class
krangpower.
LineGeometry_T
(name, **kwargs)¶ Line Geometry WITH TAPE SHIELDED CABLE
Property name type Default value nconds int 1 nphases int 1 tscable stringarray x floatarray 0 h floatarray 0 units stringarray mt reduce string spacing string -
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, using='/home/docs/checkouts/readthedocs.org/user_builds/krangpower/checkouts/enhancer_old/krangpower/defaults/default_dssentities.json')¶ 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.
-
LineGeometry_C¶
-
class
krangpower.
LineGeometry_C
(name, **kwargs)¶ Line Geometry WITH CONCENTRIC NEUTRAL CABLE
Property name type Default value nconds int 1 nphases int 1 cncable stringarray x floatarray 0 h floatarray 0 units stringarray mt reduce string spacing string -
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, using='/home/docs/checkouts/readthedocs.org/user_builds/krangpower/checkouts/enhancer_old/krangpower/defaults/default_dssentities.json')¶ 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.
-