the cs_user_head_losses function is used to compute the values of the head loss term, and is called at each time step for each previously defined head loss volume zone.
(cs_user_zones.c and cs_user_head_losses.cpp)
Volume zones may be defined using the GUI, or through the cs_user_zones (in cs_user_zones.cpp).
cku is the local head loss term.
It appears on the momentum as follows:
with
For a distributed head loss, let
the source term tspdc
is equal to
we have
For a singular head loss, let
the source term tspdc
is equal to
. We have
where
Here is the list of examples: