Package org.djunits.quantity
Class FlowVolume.Unit
- All Implemented Interfaces:
UnitInterface<FlowVolume.Unit,FlowVolume>
- Enclosing class:
- FlowVolume
FlowVolume.Unit encodes the units of volume flow.
Copyright (c) 2025-2026 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information https://djunits.org. The DJUNITS project is distributed under a three-clause BSD-style license.
- Author:
- Alexander Verbraeck
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final FlowVolume.Unitft^3/min.static final FlowVolume.Unitft^3/s.static final FlowVolume.Unitgallon/day (US).static final FlowVolume.Unitgallon/hour (US).static final FlowVolume.Unitgallon/min (US).static final FlowVolume.Unitgallon/s (US).static final FlowVolume.Unitin^3/min.static final FlowVolume.Unitin^3/s.static final FlowVolume.UnitL/day.static final FlowVolume.UnitL/hour.static final FlowVolume.UnitL/min.static final FlowVolume.UnitL/s.static final FlowVolume.Unitm^3/day.static final FlowVolume.Unitm^3/hour.static final FlowVolume.Unitm^3/min.static final FlowVolume.Unitm3/s.static final FlowVolume.UnitThe SI or BASE unit.static final SIUnitThe dimensions of the flow volume is m3/s. -
Constructor Summary
ConstructorsConstructorDescriptionUnit(String id, String name, double scaleFactorToBaseUnit, UnitSystem unitSystem) Create a new FlowVolume unit.Unit(String textualAbbreviation, String displayAbbreviation, String name, Scale scale, UnitSystem unitSystem) Return a derived unit for this unit, with textual abbreviation(s) and a display abbreviation. -
Method Summary
Modifier and TypeMethodDescriptionderiveUnit(String textualAbbreviation, String displayAbbreviation, String name, double scaleFactor, UnitSystem unitSystem) Return a linearly scaled derived unit for this unit, with textual abbreviation(s) and a display abbreviation.Return the base unit for this unit.ofSi(double si) Return an SI-quantity for this unit with a value.siUnit()Return the SI unit for this unit.Methods inherited from class org.djunits.unit.AbstractUnit
deriveUnit, equals, generateSiPrefixes, getDisplayAbbreviation, getId, getName, getScale, getSiPrefix, getStoredDisplayAbbreviation, getStoredName, getStoredTextualAbbreviation, getTextualAbbreviation, getUnitSystem, hashCode, setSiPrefix, setSiPrefix, setSiPrefixKilo, setSiPrefixPer, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.djunits.unit.UnitInterface
fromBaseValue, quantityInUnit, toBaseValue
-
Field Details
-
SI_UNIT
The dimensions of the flow volume is m3/s. -
m3_s
m3/s. -
SI
The SI or BASE unit. -
m3_min
m^3/min. -
m3_h
m^3/hour. -
m3_day
m^3/day. -
L_s
L/s. -
L_min
L/min. -
L_h
L/hour. -
L_day
L/day. -
ft3_s
ft^3/s. -
ft3_min
ft^3/min. -
in3_s
in^3/s. -
in3_min
in^3/min. -
gal_US_s
gallon/s (US). -
gal_US_min
gallon/min (US). -
gal_US_h
gallon/hour (US). -
gal_US_day
gallon/day (US).
-
-
Constructor Details
-
Unit
Create a new FlowVolume unit.- Parameters:
id- the id or main abbreviation of the unitname- the full name of the unitscaleFactorToBaseUnit- the scale factor of the unit to convert it TO the base (SI) unitunitSystem- the unit system such as SI or IMPERIAL
-
Unit
public Unit(String textualAbbreviation, String displayAbbreviation, String name, Scale scale, UnitSystem unitSystem) Return a derived unit for this unit, with textual abbreviation(s) and a display abbreviation.- Parameters:
textualAbbreviation- the textual abbreviation of the unit, which doubles as the iddisplayAbbreviation- the display abbreviation of the unitname- the full name of the unitscale- the scale to use to convert between this unit and the standard (e.g., SI, BASE) unitunitSystem- unit system, e.g. SI or Imperial
-
-
Method Details
-
siUnit
Description copied from interface:UnitInterfaceReturn the SI unit for this unit.- Returns:
- the SI unit for this unit
-
getBaseUnit
Description copied from interface:UnitInterfaceReturn the base unit for this unit.- Returns:
- the base unit for this unit
-
ofSi
Description copied from interface:UnitInterfaceReturn an SI-quantity for this unit with a value.- Parameters:
si- the value in SI or BASE units- Returns:
- an SI-quantity for this unit with the given si-value
-
deriveUnit
public FlowVolume.Unit deriveUnit(String textualAbbreviation, String displayAbbreviation, String name, double scaleFactor, UnitSystem unitSystem) Description copied from class:AbstractUnitReturn a linearly scaled derived unit for this unit, with textual abbreviation(s) and a display abbreviation.- Specified by:
deriveUnitin classAbstractUnit<FlowVolume.Unit,FlowVolume> - Parameters:
textualAbbreviation- the textual abbreviation of the unit, which doubles as the iddisplayAbbreviation- the display abbreviation of the unitname- the full name of the unitscaleFactor- the (linear) scale factor to multiply with the current (linear) scale factorunitSystem- unit system, e.g. SI or Imperial- Returns:
- a derived unit for this unit
-