diff --git a/CHANGELOG.md b/CHANGELOG.md index 2e9966df..2783ba7d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased/Snapshot] +### Added +- Added quantity for volumetric flow rate [#363](https://github.com/ie3-institute/PowerSystemUtils/issues/363) + ## [2.0.0] ### Added diff --git a/src/main/java/edu/ie3/util/quantities/PowerSystemUnits.java b/src/main/java/edu/ie3/util/quantities/PowerSystemUnits.java index b9daf8e9..01f07428 100644 --- a/src/main/java/edu/ie3/util/quantities/PowerSystemUnits.java +++ b/src/main/java/edu/ie3/util/quantities/PowerSystemUnits.java @@ -218,6 +218,11 @@ public class PowerSystemUnits extends Units { public static final Unit KILOWATT_PER_KELVIN = new ProductUnit<>(KILOWATT.divide(KELVIN)); + /* ==== Volumetric Flow Rate ==== */ + /** m^3/s */ + public static final Unit CUBIC_METRE_PER_SECOND = + new ProductUnit<>(CUBIC_METRE.divide(SECOND)); + private static final HashSet REGISTERED_LABELS = new HashSet<>(); static { @@ -249,6 +254,7 @@ public class PowerSystemUnits extends Units { addUnit(KILOWATTHOUR_PER_KELVIN_TIMES_CUBICMETRE, "kWh/K*m³"); addUnit(KILOWATT_PER_KELVIN, "kW/K"); addUnit(KILOGRAM_PER_CUBIC_METRE, "kg/m³"); + addUnit(CUBIC_METRE_PER_SECOND, "m³/s"); } /** diff --git a/src/main/java/edu/ie3/util/quantities/interfaces/VolumetricFlowRate.java b/src/main/java/edu/ie3/util/quantities/interfaces/VolumetricFlowRate.java new file mode 100644 index 00000000..c8a64a48 --- /dev/null +++ b/src/main/java/edu/ie3/util/quantities/interfaces/VolumetricFlowRate.java @@ -0,0 +1,10 @@ +/* + * © 2023. TU Dortmund University, + * Institute of Energy Systems, Energy Efficiency and Energy Economics, + * Research group Distribution grid planning and operation +*/ +package edu.ie3.util.quantities.interfaces; + +import tech.units.indriya.ComparableQuantity; + +public interface VolumetricFlowRate extends ComparableQuantity {}