# -*- coding: utf-8 -*-
"""Constant quantities of widely-accepted physical properties."""

from aguaclara.core.units import u

# NOTE: "#: <optional_description>"  required for Sphinx autodocumentation

#: Gravitational constant
#:
#: DEPRECATED: ``1 * u.gravity`` should be used instead
GRAVITY = 9.80665 * u.m / u.s ** 2

#: Density of water
#:
#: DEPRECATED: ``core.physchem.density_water()`` should be used instead
WATER_DENSITY = 1000 * u.kg / u.m ** 3

#: Kinematic viscosity of water
#:
#: DEPRECATED: ``core.physchem.viscosity_kinematic()`` should be used instead
WATER_NU = 1 * 10 ** -6 * u.m ** 2 / u.s

#: Atmospheric pressure
#:
#: DEPRECATED: ``1 * u.atm`` should be used instead
ATM_P = 1 * u.atm

#: Average kinematic viscosity of air
#:
#: DEPRECATED: viscosity of air should be determined by temperature and
#: atmospheric pressure
AIR_NU = 12 * u.mm ** 2 / u.s

#: The ratio of maximum energy dissipation rate in a round jet to the kinetic
#: energy per time required for the jet to travel a distance equal to its
#: diameter. See `round jet
#: <https://aguaclara.github.io/Textbook/Fluid_Deformation_and_Energy_Dissipation/FDED_Derivations.html?#round-jet>`_
#: in the AguaClara textbook for more details.
JET_ROUND_RATIO = 0.08

#: The ratio of maximum energy dissipation rate in a plane jet to the kinetic
#: energy per time required for the jet to travel a distance equal to its
#: diameter. This ratio applies to jets in the flocculator and sedimentation
#: tank. See `plane jet
#: <https://aguaclara.github.io/Textbook/Fluid_Deformation_and_Energy_Dissipation/FDED_Derivations.html#plane-jet>`_
#: in the AguaClara textbook for more details.
JET_PLANE_RATIO = 0.0124

#: Vena contracta coefficient through an orifice with 90˚ bends. This is the
#: ratio of the flow area at the point of maximal contraction to the flow area
#: before the contraction.
VC_ORIFICE_RATIO = 0.63

#: Kozeny constant
K_KOZENY = 5
