fastwater.general.physics module
Functions to calculate various physical parameters used in fluid modelling.
-
fastwater.general.physics.chezy(C100)[source]
Calculate the Chezy friction coefficient from the C_100 drag coeficient.
- Parameters
C100 (float) – C_100 drag coefficient (based on the velocity 100cm above bed).
- Returns
Cz – Chezy friction coefficient.
- Return type
float
-
fastwater.general.physics.circulation2D(x, y, vel_x, vel_y)[source]
Calculate the circulation around an element define by the nodes at
locations ( x , y ).
- Parameters
x (list[ float ]) – x coordinates of element nodes [ m ].
y (list[ float ]) – y coordinate of element nodes [ m ].
vel_x (list[ float ]) – x component of velocity at element nodes [ m/s ].
vel_y (list[ float ]) – y component of velocity at element nodes [ m/s ].
- Returns
circ – fluid circulation around element.
- Return type
float
-
fastwater.general.physics.frictionCoeff(C100)[source]
-
fastwater.general.physics.g_wgs84(lat)[source]
Calculate gravity based on latitude on the WGS84 spheroid.
- Parameters
lat (float) – Latitude in decimal degrees.
- Returns
g – Gravitational acceleration at latitude in m/s^2.
- Return type
float
-
fastwater.general.physics.kinetic_energy_density_2D(mesh, depth, velx, vely, rho)[source]
-
fastwater.general.physics.manning(C100, h)[source]
Calculate the Manning friction coefficient based on the C_100 drag
coefficient and the water depth.
- Parameters
-
- Returns
m – Manning friction coefficient.
- Return type
float
-
fastwater.general.physics.nikuradse(C100, h)[source]
Calculate the Nikuradse friction coefficient based on the C_100
drag coeffieient and the water depth.
- Parameters
-
- Returns
ks – Nikuradse friction coefficient.
- Return type
float
-
fastwater.general.physics.potential_energy_density_2D(mesh, elev, rho)[source]
-
fastwater.general.physics.strickler(C100, h)[source]
Calculate the Strickler friction coefficient based on the C_100 drag
coefficient and the water depth.
- Parameters
-
- Returns
S – Strickler friction coefficient.
- Return type
float