diff --git a/src/ditto/writers/opendss/components/distribution_load.py b/src/ditto/writers/opendss/components/distribution_load.py index c5db3c3..1aa4c67 100644 --- a/src/ditto/writers/opendss/components/distribution_load.py +++ b/src/ditto/writers/opendss/components/distribution_load.py @@ -48,6 +48,13 @@ def map_bus(self): # TODO: Should we include the phases its connected to here? nom_voltage = self.model.bus.rated_voltage.to("kV").magnitude + voltage_type = self.model.bus.voltage_type + + nom_voltage = ( + nom_voltage / LL_LN_CONVERSION_FACTOR + if voltage_type == "line-to-line" + else nom_voltage + ) if num_phases == 1 and self.model.equipment.connection_type == ConnectionType.STAR: self.opendss_dict["kV"] = nom_voltage