hydromodpy.core.units.registry#
Pint unit registry for HydroModPy.
Central pint UnitRegistry instance configured with the units commonly used
in hydrogeological modelling (lengths, hydraulic conductivities, flow rates,
dimensionless storativities, temperatures, viscosities, …).
The registry is created lazily and shared across the package so that
Quantity objects remain comparable (pint requires a single registry for
equality and arithmetic).
Canonical SI conventions used in HydroModPy#
length: metre (
m)area: square metre (
m**2)volume: cubic metre (
m**3)time: second (
s)velocity / conductivity: metre/second (
m/s)flow rate: m**3/s
mass flux: kg/s
temperature: degC
pressure / viscosity: Pa, Pa*s
dimensionless:
dimensionless(-)
The registry is intentionally process-wide. Use get_registry() to access
it (creation is thread-safe via pint’s own lock).
Functions
|
Return the shared pint |