Distribution Capacitor#
- pydantic model gdm.distribution.components.DistributionCapacitor#
Data model for capacitor present in distribution system models.
Show JSON schema
{ "title": "DistributionCapacitor", "description": "Data model for capacitor present in distribution system models.", "type": "object", "properties": { "uuid": { "format": "uuid", "title": "Uuid", "type": "string" }, "name": { "title": "Name", "type": "string" }, "substation": { "anyOf": [ { "$ref": "#/$defs/DistributionSubstation" }, { "type": "null" } ], "default": null, "description": "Name of the substation." }, "feeder": { "anyOf": [ { "$ref": "#/$defs/DistributionFeeder" }, { "type": "null" } ], "default": null, "description": "Name of the feeder." }, "in_service": { "default": true, "description": "Is the component in service?", "title": "In Service", "type": "boolean" }, "bus": { "$ref": "#/$defs/DistributionBus", "description": "Distribution bus to which this capacitor is connected to." }, "phases": { "description": "List of phases that have capacitor controllers. Phase order should be in the same order as the controllers.", "items": { "$ref": "#/$defs/Phase" }, "title": "Phases", "type": "array" }, "controllers": { "default": [], "description": "List of the controllers which are used for each phase in order.", "items": { "$ref": "#/$defs/CapacitorControllerBase" }, "title": "Controllers", "type": "array" }, "equipment": { "$ref": "#/$defs/CapacitorEquipment", "description": "Capacitor model." } }, "$defs": { "CapacitorControllerBase": { "additionalProperties": false, "description": "Data model for capacitor controllers. Phase connection specified in the capacitor.", "properties": { "uuid": { "format": "uuid", "title": "Uuid", "type": "string" }, "name": { "default": "", "description": "Name of the capacitor controller.", "title": "Name", "type": "string" }, "delay_on": { "default": null, "description": "The time that the capacitor needs to connect or disconnect when switching on", "title": "Delay On", "type": "string" }, "delay_off": { "default": null, "description": "The time that the capacitor needs to connect or disconnect when switching off", "title": "Delay Off", "type": "string" }, "dead_time": { "default": null, "description": "The time that the capacitor must remain off before turning back on again", "title": "Dead Time", "type": "string" } }, "title": "CapacitorControllerBase", "type": "object" }, "CapacitorEquipment": { "additionalProperties": false, "description": "Data model for capacitor model.", "properties": { "uuid": { "format": "uuid", "title": "Uuid", "type": "string" }, "name": { "title": "Name", "type": "string" }, "phase_capacitors": { "description": "List of phase capacitors for this distribution capacitor.", "items": { "$ref": "#/$defs/PhaseCapacitorEquipment" }, "title": "Phase Capacitors", "type": "array" }, "connection_type": { "$ref": "#/$defs/ConnectionType", "default": "STAR", "description": "Connection type for this capacitor." }, "rated_voltage": { "description": "Rated voltage for this capacitor.", "gt": 0, "title": "Rated Voltage" }, "voltage_type": { "$ref": "#/$defs/VoltageTypes", "description": "Rated voltage is line to line or line to neutral." } }, "required": [ "name", "phase_capacitors", "rated_voltage", "voltage_type" ], "title": "CapacitorEquipment", "type": "object" }, "ConnectionType": { "description": "Winding connection types.", "enum": [ "STAR", "DELTA", "OPEN_DELTA", "OPEN_STAR", "ZIG_ZAG" ], "title": "ConnectionType", "type": "string" }, "DistributionBus": { "additionalProperties": false, "description": "Data model for distribution bus.\n\nExamples:\n >>> from gdm import DistributionBus\n >>> DistributionBus.example()", "properties": { "uuid": { "format": "uuid", "title": "Uuid", "type": "string" }, "name": { "title": "Name", "type": "string" }, "substation": { "anyOf": [ { "$ref": "#/$defs/DistributionSubstation" }, { "type": "null" } ], "default": null, "description": "Name of the substation." }, "feeder": { "anyOf": [ { "$ref": "#/$defs/DistributionFeeder" }, { "type": "null" } ], "default": null, "description": "Name of the feeder." }, "in_service": { "default": true, "description": "Is the component in service?", "title": "In Service", "type": "boolean" }, "voltage_type": { "$ref": "#/$defs/VoltageTypes", "description": "Voltage types for buses." }, "phases": { "description": "List of phases for this bus.", "items": { "$ref": "#/$defs/Phase" }, "title": "Phases", "type": "array" }, "voltagelimits": { "default": [], "description": "List of voltage limit sets for this bus.", "items": { "$ref": "#/$defs/VoltageLimitSet" }, "title": "Voltagelimits", "type": "array" }, "rated_voltage": { "default": "0 ohm", "description": "rated voltage for this bus.", "title": "Rated Voltage", "type": "string" }, "coordinate": { "anyOf": [ { "$ref": "#/$defs/Location" }, { "type": "null" } ], "default": null, "description": "Coordinate for the power system bus." } }, "required": [ "name", "voltage_type", "phases", "rated_voltage" ], "title": "DistributionBus", "type": "object" }, "DistributionFeeder": { "additionalProperties": false, "description": "Class interface for distribution feeder.", "properties": { "uuid": { "format": "uuid", "title": "Uuid", "type": "string" }, "name": { "title": "Name", "type": "string" } }, "required": [ "name" ], "title": "DistributionFeeder", "type": "object" }, "DistributionSubstation": { "additionalProperties": false, "description": "Class interface for distribution feeder.", "properties": { "uuid": { "format": "uuid", "title": "Uuid", "type": "string" }, "name": { "title": "Name", "type": "string" }, "feeders": { "description": "List of feeders for this substation.", "items": { "$ref": "#/$defs/DistributionFeeder" }, "title": "Feeders", "type": "array" } }, "required": [ "name", "feeders" ], "title": "DistributionSubstation", "type": "object" }, "LimitType": { "description": "Operational limit types.", "enum": [ "min", "max" ], "title": "LimitType", "type": "string" }, "Location": { "additionalProperties": false, "description": "Specifies geographic location.", "properties": { "uuid": { "format": "uuid", "title": "Uuid", "type": "string" }, "name": { "default": "", "title": "Name", "type": "string" }, "x": { "title": "X", "type": "number" }, "y": { "title": "Y", "type": "number" }, "crs": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Crs" } }, "required": [ "x", "y" ], "title": "Location", "type": "object" }, "Phase": { "description": "This class is used to represent a single phase from a set of possible values.", "enum": [ "A", "B", "C", "N", "S1", "S2" ], "title": "Phase", "type": "string" }, "PhaseCapacitorEquipment": { "additionalProperties": false, "description": "Data model for phase capacitor.", "properties": { "uuid": { "format": "uuid", "title": "Uuid", "type": "string" }, "name": { "title": "Name", "type": "string" }, "resistance": { "default": "0 ohm", "description": "Positive resistance for the capacitor.", "title": "Resistance", "type": "string" }, "reactance": { "default": "0 ohm", "description": "Positive reactance for the capacitor.", "title": "Reactance", "type": "string" }, "rated_reactive_power": { "default": "0 ohm", "description": "Rated reactive power of this capacitor.", "title": "Rated Reactive Power", "type": "string" }, "num_banks_on": { "description": "Number of banks currently on.", "minimum": 0, "title": "Num Banks On", "type": "integer" }, "num_banks": { "default": 1, "description": "Number of banks in the capacitor.", "exclusiveMinimum": 0, "title": "Num Banks", "type": "integer" } }, "required": [ "name", "rated_reactive_power", "num_banks_on" ], "title": "PhaseCapacitorEquipment", "type": "object" }, "VoltageLimitSet": { "additionalProperties": false, "description": "Data model for voltage limit set.", "properties": { "uuid": { "format": "uuid", "title": "Uuid", "type": "string" }, "name": { "default": "", "description": "Name of the voltage limit set.", "title": "Name", "type": "string" }, "limit_type": { "$ref": "#/$defs/LimitType", "description": "Limit type used." }, "value": { "default": "0 ohm", "description": "Voltage threshold.", "title": "Value", "type": "string" } }, "required": [ "limit_type", "value" ], "title": "VoltageLimitSet", "type": "object" }, "VoltageTypes": { "description": "Identifier of voltage types referenced in distribution models.", "enum": [ "line-to-line", "line-to-ground" ], "title": "VoltageTypes", "type": "string" } }, "additionalProperties": false, "required": [ "name", "bus", "phases", "equipment" ] }
- Config:
str_strip_whitespace: bool = True
validate_assignment: bool = True
validate_default: bool = True
extra: str = forbid
use_enum_values: bool = False
arbitrary_types_allowed: bool = True
populate_by_name: bool = True
- Fields:
bus (gdm.distribution.components.distribution_bus.DistributionBus)
controllers (list[gdm.distribution.controllers.base.capacitor_controller_base.CapacitorControllerBase])
equipment (gdm.distribution.equipment.capacitor_equipment.CapacitorEquipment)
feeder (gdm.distribution.components.distribution_feeder.DistributionFeeder | None)
in_service (bool)
name (str)
phases (list[gdm.distribution.enums.Phase])
substation (gdm.distribution.components.distribution_substation.DistributionSubstation | None)
uuid (uuid.UUID)
- Validators:
validate_fields
»all fields
- field bus: Annotated[DistributionBus, FieldInfo(annotation=NoneType, required=True, description='Distribution bus to which this capacitor is connected to.')] [Required]#
Distribution bus to which this capacitor is connected to.
- Validated by:
validate_fields
- field controllers: Annotated[list[CapacitorControllerBase], FieldInfo(annotation=NoneType, required=False, default=[], description='List of the controllers which are used for each phase in order.')] = []#
List of the controllers which are used for each phase in order.
- Validated by:
validate_fields
- field equipment: Annotated[CapacitorEquipment, FieldInfo(annotation=NoneType, required=True, description='Capacitor model.')] [Required]#
Capacitor model.
- Validated by:
validate_fields
- field feeder: Annotated[DistributionFeeder | None, Field(None, description='Name of the feeder.')] = None#
Name of the feeder.
- Validated by:
validate_fields
- field in_service: Annotated[bool, Field(True, description='Is the component in service?')] = True#
Is the component in service?
- Validated by:
validate_fields
- field phases: Annotated[list[Phase], FieldInfo(annotation=NoneType, required=True, description='List of phases that have capacitor controllers. Phase order should be in the same order as the controllers.')] [Required]#
List of phases that have capacitor controllers. Phase order should be in the same order as the controllers.
- Validated by:
validate_fields
- field substation: Annotated[DistributionSubstation | None, Field(None, description='Name of the substation.')] = None#
Name of the substation.
- Validated by:
validate_fields
- classmethod aggregate(instances: list[DistributionCapacitor], bus: DistributionBus, name: str, split_phase_mapping: dict[str, set[Phase]]) DistributionCapacitor #