Class: PowerflowObject¶
Copyright (C) 2008 Battelle Memorial Institute
@file powerflow_object.cpp
@addtogroup powerflow_object Powerflow objects (abstract)
@ingroup powerflow
The powerflow_object class is an abstract class that implements
basic elements of powerflow solutions. There are two critical
pieces of information:
-# @p phases indicates the phases which are connected by this object.
This may be any feasible combination of the phase flags
- @p PHASE_A for phase A connections
- @p PHASE_B for phase B connections
- @p PHASE_C for phase C connections
- @p PHASE_N for neutral connections
- @p PHASE_D for delta connections (implies A, B, C);
- @p PHASE_A for split connections (requires one of A, B, or C);
- @p PHASE_ABC for three phase connections
- @p PHASE_ABCN for three phase connections with separate
neutral
-# @p reference_bus indicates the bus for the reference frequency and
voltage at which the solution is to be computed. The current solution method
does not change the frequency nor does it consider the frequency in the
powerflow calculated. The parameter is only to be used to adjust
frequency-sensitive loads, such as Grid-FriendlyTM devices.
In addition, each powerflow_object defined must specify what it's parent
object is for the purposes of establishing the evaluation order through the
ranks. The reference bus is also propagated using the rank order.
The powerflow_object provides optional support for outage conditions
when compiled with the SUPPORT_OUTAGES flag is defined in powerflow_object.h.
When enabled the following parameters are also defined
-# @p condition indicates the device's operating condition with respect
to abnormal phase configuration that would require special
consideration during the powerflow solution. This can be any combination of
two of the following
- @p OC_NORMAL for no abnormal configuration (excludes all
others)
- @p OC_PHASE_A_CONTACT phase A in contact
- @p OC_PHASE_B_CONTACT phase B in contact
- @p OC_PHASE_C_CONTACT phase C in contact
- @p OC_NEUTRAL_CONTACT neutral in contact
- @p OC_SPLIT_1_CONTACT split line 1 in contact
- @p OC_SPLIT_2_CONTACT split line 2 in contact
- @p OC_SPLIT_N_CONTACT split line N in contact
- @p OC_GROUND_CONTACT ground in contact
- @p OC_PHASE_A_OPEN phase A is open
- @p OC_PHASE_B_OPEN phase B is open
- @p OC_PHASE_C_OPEN phase C is open
- @p OC_NEUTRAL_OPEN neutral is open
- @p OC_SPLIT_1_OPEN split line 1 is open
- @p OC_SPLIT_2_OPEN split line 2 is open
- @p OC_SPLIT_N_OPEN split neutral is open
- @p OC_GROUND_OPEN ground connection is open
-# @p solution indicates whether special solution methods are required.
The base powerflow_object only recognized the normal solution method
(#PS_NORMAL), but each object may add its own identifiers, so long as it does
not conflict any identifiers in the object inheritance hierarchy. When
#SUPPORT_OUTAGES is defined, the flag #PS_OUTAGE is also defined and can be
used to engage an alternate solution method.
@par Outage support
When SUPPORT_OUTAGES is defined, the @p postsync pass will
examine whether
@p condition and @p solution are matched. If there is an inconsistency
(i.e., @p condition != OC_NORMAL && @p solution ==
PS_NORMAL or
@p condition == OC_NORMAL && @p solution !=
PS_NORMAL), then they will be reconciled and the solver will iterate
again. Object derived from powerflow_object can inspect the value of @p
condition to determine whether they can use the normal powerflow solution
method, or an alternative method that is appropriate for abnormal conditions.
Be aware that this may result in a change of state in some other object
that may cause the solver to reiterate. It is highly recommended that
state changes to OC_NORMAL have a non-zero delay built in (i.e., allow the
clock to advanced). Failure to do so may result in non-convergence
of the solver.
@{
__
Inherits from: gld_object
__
Type: Instance (network topology element)
__
Note: Inherits from gld_object (not in powerflow module)
URI: glm:PowerflowObject
classDiagram
class PowerflowObject
click PowerflowObject href "../PowerflowObject/"
GlmObject <|-- PowerflowObject
click GlmObject href "../GlmObject/"
PowerflowObject <|-- Emissions
click Emissions href "../Emissions/"
PowerflowObject <|-- FaultCheck
click FaultCheck href "../FaultCheck/"
PowerflowObject <|-- Link
click Link href "../Link/"
PowerflowObject <|-- Node
click Node href "../Node/"
PowerflowObject <|-- SyncCheck
click SyncCheck href "../SyncCheck/"
PowerflowObject <|-- TriplexNode
click TriplexNode href "../TriplexNode/"
PowerflowObject <|-- VoltVarControl
click VoltVarControl href "../VoltVarControl/"
PowerflowObject : condition
PowerflowObject : flags
PowerflowObject : groupid
PowerflowObject : in_svc
PowerflowObject : inrush_integration_method
PowerflowObject : latitude
PowerflowObject : longitude
PowerflowObject : name
PowerflowObject : nominal_voltage
PowerflowObject : out_svc
PowerflowObject : parent
PowerflowObject : phases
PowerflowObject : rank
PowerflowObject : solution
Inheritance¶
- GlmObject
- PowerflowObject
Slots¶
| Name | Cardinality and Range | Description | Inheritance |
|---|---|---|---|
| phases | 0..1 String |
direct | |
| nominal_voltage | 0..1 Float |
direct | |
| inrush_integration_method | 0..1 String |
Integration method for in-rush | direct |
| condition | 0..1 String |
direct | |
| solution | 0..1 String |
direct | |
| name | 1 String |
The object's name; unique across the model | GlmObject |
| parent | 0..1 String |
The parent object's name | GlmObject |
| groupid | 0..1 String |
Free-text group label | GlmObject |
| latitude | 0..1 String |
Latitude, as written (decimal degrees or GridLAB-D's 37N26:12 form) | GlmObject |
| longitude | 0..1 String |
Longitude, as written | GlmObject |
| in_svc | 0..1 String |
Timestamp the object enters service | GlmObject |
| out_svc | 0..1 String |
Timestamp the object leaves service | GlmObject |
| rank | 0..1 String |
Solver rank | GlmObject |
| flags | 0..1 String |
Core object flags | GlmObject |
Identifier and Mapping Information¶
Schema Source¶
- from schema: https://gridlabd.org/schema/glm
Mappings¶
| Mapping Type | Mapped Value |
|---|---|
| self | glm:PowerflowObject |
| native | glm:PowerflowObject |
LinkML Source¶
Direct¶
name: powerflow_object
description: "Copyright (C) 2008 Battelle Memorial Institute\n@file powerflow_object.cpp\n\
@addtogroup powerflow_object Powerflow objects (abstract)\n@ingroup powerflow\n\
The powerflow_object class is an abstract class that implements\nbasic elements\
\ of powerflow solutions. There are two critical\npieces of information:\n-# @p\
\ phases indicates the phases which are connected by this object.\nThis may be any\
\ feasible combination of the phase flags\n- @p PHASE_A for phase A connections\n\
- @p PHASE_B for phase B connections\n- @p PHASE_C for phase C connections\n- @p\
\ PHASE_N for neutral connections\n- @p PHASE_D for delta connections (implies A,\
\ B, C);\n- @p PHASE_A for split connections (requires one of A, B, or C);\n- @p\
\ PHASE_ABC for three phase connections\n- @p PHASE_ABCN for three phase connections\
\ with separate\nneutral\n-# @p reference_bus indicates the bus for the reference\
\ frequency and\nvoltage at which the solution is to be computed. The current solution\
\ method\ndoes not change the frequency nor does it consider the frequency in the\n\
powerflow calculated. The parameter is only to be used to adjust\nfrequency-sensitive\
\ loads, such as Grid-Friendly<sup>TM</sup> devices.\nIn addition, each powerflow_object\
\ defined must specify what it's parent\nobject is for the purposes of establishing\
\ the evaluation order through the\nranks. The reference bus is also propagated\
\ using the rank order.\nThe powerflow_object provides optional support for outage\
\ conditions\nwhen compiled with the SUPPORT_OUTAGES flag is defined in powerflow_object.h.\n\
When enabled the following parameters are also defined\n-# @p condition indicates\
\ the device's operating condition with respect\nto abnormal phase configuration\
\ that would require special\nconsideration during the powerflow solution. This\
\ can be any combination of\ntwo of the following\n- @p OC_NORMAL for no abnormal\
\ configuration (excludes all\nothers)\n- @p OC_PHASE_A_CONTACT phase A in contact\n\
- @p OC_PHASE_B_CONTACT phase B in contact\n- @p OC_PHASE_C_CONTACT phase C in contact\n\
- @p OC_NEUTRAL_CONTACT neutral in contact\n- @p OC_SPLIT_1_CONTACT split line 1\
\ in contact\n- @p OC_SPLIT_2_CONTACT split line 2 in contact\n- @p OC_SPLIT_N_CONTACT\
\ split line N in contact\n- @p OC_GROUND_CONTACT ground in contact\n- @p OC_PHASE_A_OPEN\
\ phase A is open\n- @p OC_PHASE_B_OPEN phase B is open\n- @p OC_PHASE_C_OPEN phase\
\ C is open\n- @p OC_NEUTRAL_OPEN neutral is open\n- @p OC_SPLIT_1_OPEN split line\
\ 1 is open\n- @p OC_SPLIT_2_OPEN split line 2 is open\n- @p OC_SPLIT_N_OPEN split\
\ neutral is open\n- @p OC_GROUND_OPEN ground connection is open\n-# @p solution\
\ indicates whether special solution methods are required.\nThe base powerflow_object\
\ only recognized the normal solution method\n(#PS_NORMAL), but each object may\
\ add its own identifiers, so long as it does\nnot conflict any identifiers in the\
\ object inheritance hierarchy. When\n#SUPPORT_OUTAGES is defined, the flag #PS_OUTAGE\
\ is also defined and can be\nused to engage an alternate solution method.\n@par\
\ Outage support\nWhen <code>SUPPORT_OUTAGES</code> is defined, the @p postsync\
\ pass will\nexamine whether\n@p condition and @p solution are matched. If there\
\ is an inconsistency\n(i.e., @p <code>condition != OC_NORMAL &&</code> @p <code>solution\
\ ==\nPS_NORMAL</code> or\n@p <code>condition == OC_NORMAL &&</code> @p <code>solution\
\ !=\nPS_NORMAL</code>), then they will be reconciled and the solver will iterate\n\
again. Object derived from powerflow_object can inspect the value of @p\ncondition\
\ to determine whether they can use the normal powerflow solution\nmethod, or an\
\ alternative method that is appropriate for abnormal conditions.\nBe aware that\
\ this may result in a change of state in some other object\nthat may cause the\
\ solver to reiterate. It is highly recommended that\nstate changes to OC_NORMAL\
\ have a non-zero delay built in (i.e., allow the\nclock to advanced).\tFailure\
\ to do so may result in non-convergence\nof the solver.\n@{\n\nInherits from: gld_object\n\
\nType: Instance (network topology element)\n\nNote: Inherits from gld_object (not\
\ in powerflow module)"
from_schema: https://gridlabd.org/schema/glm
is_a: glm_object
attributes:
phases:
name: phases
annotations:
order:
tag: order
value: 1
value_type:
tag: value_type
value: string
native_name:
tag: native_name
value: phases
comments:
- 'Import: structural. Bus: a child''s conductors must be a subset of its root''s.
Switch: Terminal phases, A B C with N dropped, blank when ABC. Series_reactor:
Terminal.phases when fewer than three. Swing bus: EnergySource.phases, blank
when ABC. Export: the A, B, C of the terminals on the bus, then N (S on a split-phase
bus); a switch or reactor side 1''s A, B, C.'
from_schema: https://gridlabd.org/schema/glm/powerflow/powerflow_object
related_mappings:
- cim:Terminal.phases
rank: 1000
domain_of:
- powerflow_object
- inverter
- rectifier
- windturb_dg
range: string
required: false
nominal_voltage:
name: nominal_voltage
annotations:
order:
tag: order
value: 2
value_type:
tag: value_type
value: float
precision:
tag: precision
value: 6
native_name:
tag: native_name
value: nominal_voltage[V]
comments:
- 'Import: not copied; the topology walk gives the BaseVoltage, and a bus value
over 10 percent off it is listed in bus.cimtbl. On a swing bus: EnergySource.nominalVoltage
(V as written), line to line. Export: BaseVoltage LL / sqrt 3 (three phase),
LL (single phase), LL / 2 (split phase leg); a substation: EnergySource.nominalVoltage
/ sqrt 3.'
from_schema: https://gridlabd.org/schema/glm/powerflow/powerflow_object
close_mappings:
- cim:BaseVoltage.nominalVoltage
- cim:EnergySource.nominalVoltage
rank: 1000
domain_of:
- powerflow_object
- battery
- waterheater
range: float
required: false
unit:
ucum_code: V
inrush_integration_method:
name: inrush_integration_method
annotations:
order:
tag: order
value: 3
value_type:
tag: value_type
value: string
native_name:
tag: native_name
value: inrush_integration_method
description: Integration method for in-rush
from_schema: https://gridlabd.org/schema/glm/powerflow/powerflow_object
rank: 1000
domain_of:
- powerflow_object
range: string
required: false
condition:
name: condition
annotations:
order:
tag: order
value: 4
value_type:
tag: value_type
value: string
native_name:
tag: native_name
value: condition
from_schema: https://gridlabd.org/schema/glm/powerflow/powerflow_object
rank: 1000
domain_of:
- powerflow_object
range: string
required: false
solution:
name: solution
annotations:
order:
tag: order
value: 5
value_type:
tag: value_type
value: string
native_name:
tag: native_name
value: solution
from_schema: https://gridlabd.org/schema/glm/powerflow/powerflow_object
rank: 1000
domain_of:
- powerflow_object
range: string
required: false
Induced¶
name: powerflow_object
description: "Copyright (C) 2008 Battelle Memorial Institute\n@file powerflow_object.cpp\n\
@addtogroup powerflow_object Powerflow objects (abstract)\n@ingroup powerflow\n\
The powerflow_object class is an abstract class that implements\nbasic elements\
\ of powerflow solutions. There are two critical\npieces of information:\n-# @p\
\ phases indicates the phases which are connected by this object.\nThis may be any\
\ feasible combination of the phase flags\n- @p PHASE_A for phase A connections\n\
- @p PHASE_B for phase B connections\n- @p PHASE_C for phase C connections\n- @p\
\ PHASE_N for neutral connections\n- @p PHASE_D for delta connections (implies A,\
\ B, C);\n- @p PHASE_A for split connections (requires one of A, B, or C);\n- @p\
\ PHASE_ABC for three phase connections\n- @p PHASE_ABCN for three phase connections\
\ with separate\nneutral\n-# @p reference_bus indicates the bus for the reference\
\ frequency and\nvoltage at which the solution is to be computed. The current solution\
\ method\ndoes not change the frequency nor does it consider the frequency in the\n\
powerflow calculated. The parameter is only to be used to adjust\nfrequency-sensitive\
\ loads, such as Grid-Friendly<sup>TM</sup> devices.\nIn addition, each powerflow_object\
\ defined must specify what it's parent\nobject is for the purposes of establishing\
\ the evaluation order through the\nranks. The reference bus is also propagated\
\ using the rank order.\nThe powerflow_object provides optional support for outage\
\ conditions\nwhen compiled with the SUPPORT_OUTAGES flag is defined in powerflow_object.h.\n\
When enabled the following parameters are also defined\n-# @p condition indicates\
\ the device's operating condition with respect\nto abnormal phase configuration\
\ that would require special\nconsideration during the powerflow solution. This\
\ can be any combination of\ntwo of the following\n- @p OC_NORMAL for no abnormal\
\ configuration (excludes all\nothers)\n- @p OC_PHASE_A_CONTACT phase A in contact\n\
- @p OC_PHASE_B_CONTACT phase B in contact\n- @p OC_PHASE_C_CONTACT phase C in contact\n\
- @p OC_NEUTRAL_CONTACT neutral in contact\n- @p OC_SPLIT_1_CONTACT split line 1\
\ in contact\n- @p OC_SPLIT_2_CONTACT split line 2 in contact\n- @p OC_SPLIT_N_CONTACT\
\ split line N in contact\n- @p OC_GROUND_CONTACT ground in contact\n- @p OC_PHASE_A_OPEN\
\ phase A is open\n- @p OC_PHASE_B_OPEN phase B is open\n- @p OC_PHASE_C_OPEN phase\
\ C is open\n- @p OC_NEUTRAL_OPEN neutral is open\n- @p OC_SPLIT_1_OPEN split line\
\ 1 is open\n- @p OC_SPLIT_2_OPEN split line 2 is open\n- @p OC_SPLIT_N_OPEN split\
\ neutral is open\n- @p OC_GROUND_OPEN ground connection is open\n-# @p solution\
\ indicates whether special solution methods are required.\nThe base powerflow_object\
\ only recognized the normal solution method\n(#PS_NORMAL), but each object may\
\ add its own identifiers, so long as it does\nnot conflict any identifiers in the\
\ object inheritance hierarchy. When\n#SUPPORT_OUTAGES is defined, the flag #PS_OUTAGE\
\ is also defined and can be\nused to engage an alternate solution method.\n@par\
\ Outage support\nWhen <code>SUPPORT_OUTAGES</code> is defined, the @p postsync\
\ pass will\nexamine whether\n@p condition and @p solution are matched. If there\
\ is an inconsistency\n(i.e., @p <code>condition != OC_NORMAL &&</code> @p <code>solution\
\ ==\nPS_NORMAL</code> or\n@p <code>condition == OC_NORMAL &&</code> @p <code>solution\
\ !=\nPS_NORMAL</code>), then they will be reconciled and the solver will iterate\n\
again. Object derived from powerflow_object can inspect the value of @p\ncondition\
\ to determine whether they can use the normal powerflow solution\nmethod, or an\
\ alternative method that is appropriate for abnormal conditions.\nBe aware that\
\ this may result in a change of state in some other object\nthat may cause the\
\ solver to reiterate. It is highly recommended that\nstate changes to OC_NORMAL\
\ have a non-zero delay built in (i.e., allow the\nclock to advanced).\tFailure\
\ to do so may result in non-convergence\nof the solver.\n@{\n\nInherits from: gld_object\n\
\nType: Instance (network topology element)\n\nNote: Inherits from gld_object (not\
\ in powerflow module)"
from_schema: https://gridlabd.org/schema/glm
is_a: glm_object
attributes:
phases:
name: phases
annotations:
order:
tag: order
value: 1
value_type:
tag: value_type
value: string
native_name:
tag: native_name
value: phases
comments:
- 'Import: structural. Bus: a child''s conductors must be a subset of its root''s.
Switch: Terminal phases, A B C with N dropped, blank when ABC. Series_reactor:
Terminal.phases when fewer than three. Swing bus: EnergySource.phases, blank
when ABC. Export: the A, B, C of the terminals on the bus, then N (S on a split-phase
bus); a switch or reactor side 1''s A, B, C.'
from_schema: https://gridlabd.org/schema/glm/powerflow/powerflow_object
related_mappings:
- cim:Terminal.phases
rank: 1000
owner: powerflow_object
domain_of:
- powerflow_object
- inverter
- rectifier
- windturb_dg
range: string
required: false
nominal_voltage:
name: nominal_voltage
annotations:
order:
tag: order
value: 2
value_type:
tag: value_type
value: float
precision:
tag: precision
value: 6
native_name:
tag: native_name
value: nominal_voltage[V]
comments:
- 'Import: not copied; the topology walk gives the BaseVoltage, and a bus value
over 10 percent off it is listed in bus.cimtbl. On a swing bus: EnergySource.nominalVoltage
(V as written), line to line. Export: BaseVoltage LL / sqrt 3 (three phase),
LL (single phase), LL / 2 (split phase leg); a substation: EnergySource.nominalVoltage
/ sqrt 3.'
from_schema: https://gridlabd.org/schema/glm/powerflow/powerflow_object
close_mappings:
- cim:BaseVoltage.nominalVoltage
- cim:EnergySource.nominalVoltage
rank: 1000
owner: powerflow_object
domain_of:
- powerflow_object
- battery
- waterheater
range: float
required: false
unit:
ucum_code: V
inrush_integration_method:
name: inrush_integration_method
annotations:
order:
tag: order
value: 3
value_type:
tag: value_type
value: string
native_name:
tag: native_name
value: inrush_integration_method
description: Integration method for in-rush
from_schema: https://gridlabd.org/schema/glm/powerflow/powerflow_object
rank: 1000
owner: powerflow_object
domain_of:
- powerflow_object
range: string
required: false
condition:
name: condition
annotations:
order:
tag: order
value: 4
value_type:
tag: value_type
value: string
native_name:
tag: native_name
value: condition
from_schema: https://gridlabd.org/schema/glm/powerflow/powerflow_object
rank: 1000
owner: powerflow_object
domain_of:
- powerflow_object
range: string
required: false
solution:
name: solution
annotations:
order:
tag: order
value: 5
value_type:
tag: value_type
value: string
native_name:
tag: native_name
value: solution
from_schema: https://gridlabd.org/schema/glm/powerflow/powerflow_object
rank: 1000
owner: powerflow_object
domain_of:
- powerflow_object
range: string
required: false
name:
name: name
annotations:
order:
tag: order
value: 0
value_type:
tag: value_type
value: string
native_name:
tag: native_name
value: name
description: The object's name; unique across the model.
comments:
- 'Import: <CIM class>.name, copied as written; mRID = the class''s prefix + name
(none on a bus). Export: Names, sanitized for GridLAB-D; a name two objects
share raises.'
from_schema: https://gridlabd.org/schema/glm/types/common
exact_mappings:
- cim:IdentifiedObject.name
rank: 1000
identifier: true
owner: powerflow_object
domain_of:
- glm_object
range: string
required: true
parent:
name: parent
annotations:
order:
tag: order
value: 0
value_type:
tag: value_type
value: string
native_name:
tag: native_name
value: parent
description: The parent object's name. A child node is solved as its parent's
bus; a nested object block sets it to the enclosing object.
comments:
- 'Import: a bus whose parent is a bus is its root bus''s ConnectivityNode, named
on the root''s row; no object of its own. On a link it is not mapped.'
from_schema: https://gridlabd.org/schema/glm/types/common
rank: 1000
owner: powerflow_object
domain_of:
- glm_object
range: string
groupid:
name: groupid
annotations:
order:
tag: order
value: 0
value_type:
tag: value_type
value: string
native_name:
tag: native_name
value: groupid
description: Free-text group label.
from_schema: https://gridlabd.org/schema/glm/types/common
rank: 1000
owner: powerflow_object
domain_of:
- glm_object
range: string
latitude:
name: latitude
annotations:
order:
tag: order
value: 0
value_type:
tag: value_type
value: string
native_name:
tag: native_name
value: latitude
description: Latitude, as written (decimal degrees or GridLAB-D's 37N26:12 form).
comments:
- Not converted. Home is the EquipmentLocation shape.
from_schema: https://gridlabd.org/schema/glm/types/common
rank: 1000
owner: powerflow_object
domain_of:
- glm_object
range: string
longitude:
name: longitude
annotations:
order:
tag: order
value: 0
value_type:
tag: value_type
value: string
native_name:
tag: native_name
value: longitude
description: Longitude, as written.
comments:
- Not converted. Home is the EquipmentLocation shape.
from_schema: https://gridlabd.org/schema/glm/types/common
rank: 1000
owner: powerflow_object
domain_of:
- glm_object
range: string
in_svc:
name: in_svc
annotations:
order:
tag: order
value: 0
value_type:
tag: value_type
value: string
native_name:
tag: native_name
value: in_svc
description: Timestamp the object enters service.
from_schema: https://gridlabd.org/schema/glm/types/common
rank: 1000
owner: powerflow_object
domain_of:
- glm_object
range: string
out_svc:
name: out_svc
annotations:
order:
tag: order
value: 0
value_type:
tag: value_type
value: string
native_name:
tag: native_name
value: out_svc
description: Timestamp the object leaves service.
from_schema: https://gridlabd.org/schema/glm/types/common
rank: 1000
owner: powerflow_object
domain_of:
- glm_object
range: string
rank:
name: rank
annotations:
order:
tag: order
value: 0
value_type:
tag: value_type
value: string
native_name:
tag: native_name
value: rank
description: Solver rank.
from_schema: https://gridlabd.org/schema/glm/types/common
rank: 1000
owner: powerflow_object
domain_of:
- glm_object
range: string
flags:
name: flags
annotations:
order:
tag: order
value: 0
value_type:
tag: value_type
value: string
native_name:
tag: native_name
value: flags
description: Core object flags.
from_schema: https://gridlabd.org/schema/glm/types/common
rank: 1000
owner: powerflow_object
domain_of:
- glm_object
range: string