Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed
- Refactored `GeoUtils`, moved them to the scala package and tailored them toward the `loactiontec.jts` Geometries used in the `OsmContainer` [#163] (https://github.com/ie3-institute/PowerSystemUtils/issues/163)
- Changed unit symbols according to DIN 1301-1 for apparent and reactive power [#278] (https://github.com/ie3-institute/PowerSystemUtils/issues/278)

### Fixed
- Fix tests in CI [#206](https://github.com/ie3-institute/PowerSystemUtils/issues/206)
Expand Down
14 changes: 7 additions & 7 deletions src/main/java/edu/ie3/util/quantities/PowerSystemUnits.java
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public class PowerSystemUnits extends Units {
new TransformedUnit<>("Wh", JOULE, MultiplyConverter.of(3600));

public static final Unit<Energy> VARHOUR =
new TransformedUnit<>("VArh", JOULE, MultiplyConverter.of(3600));
new TransformedUnit<>("varh", JOULE, MultiplyConverter.of(3600));

/** Kilowatthour */
public static final Unit<Energy> KILOWATTHOUR = MetricPrefix.KILO(WATTHOUR);
Expand Down Expand Up @@ -112,8 +112,8 @@ public class PowerSystemUnits extends Units {
/** Megavoltampere */
public static final Unit<Power> MEGAVOLTAMPERE = MetricPrefix.MEGA(VOLTAMPERE);

/** Volt ampere reactive */
public static final Unit<Power> VAR = new AlternateUnit<>(WATT, "VAr");
/** Voltampere reactive */
public static final Unit<Power> VAR = new AlternateUnit<>(WATT, "var");

/** Megavar */
public static final Unit<Power> MEGAVAR = MetricPrefix.MEGA(VAR);
Expand Down Expand Up @@ -204,10 +204,10 @@ public class PowerSystemUnits extends Units {
addUnit(WATT_PER_SQUAREMETRE, "W/m²");
addUnit(PERCENT_PER_HOUR, "%/h");
addUnit(PU_PER_HOUR, "p.u./h");
addUnit(VAR, "VAr");
addUnit(KILOVAR, "kVAr");
addUnit(MEGAVAR, "MVAr");
addUnit(PU, "PU");
addUnit(VAR, "var");
addUnit(KILOVAR, "kvar");
addUnit(MEGAVAR, "Mvar");
addUnit(PU, "p.u.");
addUnit(EURO, "EUR");
addUnit(EURO_PER_KILOMETRE, "EUR/km");
addUnit(EURO_PER_WATTHOUR, "EUR/Wh");
Expand Down