Skip to content

Commit 492270d

Browse files
Merge pull request #364 from ie3-institute/jb/#363-volumetricflowrate
Added VolumetricFlowRate
2 parents dacb8e8 + fc43fa9 commit 492270d

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased/Snapshot]
88

9+
### Added
10+
- Added quantity for volumetric flow rate [#363](https://github.com/ie3-institute/PowerSystemUtils/issues/363)
11+
912
## [2.0.0]
1013

1114
### Added

src/main/java/edu/ie3/util/quantities/PowerSystemUnits.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,11 @@ public class PowerSystemUnits extends Units {
218218
public static final Unit<ThermalConductance> KILOWATT_PER_KELVIN =
219219
new ProductUnit<>(KILOWATT.divide(KELVIN));
220220

221+
/* ==== Volumetric Flow Rate ==== */
222+
/** m^3/s */
223+
public static final Unit<VolumetricFlowRate> CUBIC_METRE_PER_SECOND =
224+
new ProductUnit<>(CUBIC_METRE.divide(SECOND));
225+
221226
private static final HashSet<String> REGISTERED_LABELS = new HashSet<>();
222227

223228
static {
@@ -249,6 +254,7 @@ public class PowerSystemUnits extends Units {
249254
addUnit(KILOWATTHOUR_PER_KELVIN_TIMES_CUBICMETRE, "kWh/K*m³");
250255
addUnit(KILOWATT_PER_KELVIN, "kW/K");
251256
addUnit(KILOGRAM_PER_CUBIC_METRE, "kg/m³");
257+
addUnit(CUBIC_METRE_PER_SECOND, "m³/s");
252258
}
253259

254260
/**
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/*
2+
* © 2023. TU Dortmund University,
3+
* Institute of Energy Systems, Energy Efficiency and Energy Economics,
4+
* Research group Distribution grid planning and operation
5+
*/
6+
package edu.ie3.util.quantities.interfaces;
7+
8+
import tech.units.indriya.ComparableQuantity;
9+
10+
public interface VolumetricFlowRate extends ComparableQuantity<VolumetricFlowRate> {}

0 commit comments

Comments
 (0)