head losses coefficient - consistent definition
Posted: Tue Mar 25, 2025 6:47 pm
Hello,
I am wondering about the interpretation of the head loss coefficient in code_Saturne.
The "Head losses" panel in the GUI says:
"Head losses coefficients: ... = -0.5*rho*alpha_ij*|U|*U_j"
Which would indicate that only the "alpha" term must be specified by the user.
However, looking in the sources, I could find the multiplication by rho (line 1177 of cs_solve_navier_stokes.cpp), but not the "0.5" multiplication.
Could you help me in understanding the correct formulation adopted by the solver, once I specify a coefficient through the cs_head_losses.c routine?
Thank you very much in advance for your help.
Best regards,
Daniele
I am wondering about the interpretation of the head loss coefficient in code_Saturne.
The "Head losses" panel in the GUI says:
"Head losses coefficients: ... = -0.5*rho*alpha_ij*|U|*U_j"
Which would indicate that only the "alpha" term must be specified by the user.
However, looking in the sources, I could find the multiplication by rho (line 1177 of cs_solve_navier_stokes.cpp), but not the "0.5" multiplication.
Could you help me in understanding the correct formulation adopted by the solver, once I specify a coefficient through the cs_head_losses.c routine?
Thank you very much in advance for your help.
Best regards,
Daniele