About:
Calculate the water specific weight according to the temperature and salinity.\begin{equation} \gamma = \rho \times g \end{equation}
Where,
- $\gamma$, water specific weight - $\frac{N}{m^3}$;
- $\rho$, water density » WATER_density_rho() - $\frac{kg}{m^3}$;
- $g$, gravity aceleration - $\frac{m}{s^2}$;
Module:
WaterProperties
Function:
WATER_density_gamma(t,s)
Definition of variables:
- t, temperature - ÂșC;
- s, salinity - g/kg
Sample code:
from WaterProperties import *
t = 25 #oC
s = 2.5 #g/kg
gamma = WATER_density_gamma(t,s)
print("Specific weight:",gamma,"N/m3")
Result:
Specific weight: 9796.50708003 N/m3