Skip to content

Commit

Permalink
Fix loss factors in SharpEdgedOrifice (modelica#4258)
Browse files Browse the repository at this point in the history
Co-authored-by: Stefan Wischhusen <wischhusen@xrg-simulation.de>
  • Loading branch information
beutlich and wischhusen committed Jan 16, 2024
1 parent fa90ce7 commit 68aa656
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Modelica/Fluid/Fittings.mo
Expand Up @@ -1050,15 +1050,15 @@ A_a &gt; A_b (Idelchik 1994, diagram 4-9, p. 216 and diagram 4-10, p. 217)
output LossFactorData data
"Pressure loss factors for both flow directions";
protected
Real D_rel=leastDiameter/diameter;
Real A_rel=(leastDiameter/diameter)^2;
Real LD=length/leastDiameter;
Real k=0.13 + 0.34*10^(-(3.4*LD + 88.4*LD^2.3));
algorithm
data.diameter_a := diameter;
data.diameter_b := diameter;
data.zeta1 := ((1 - D_rel) + 0.707*(1 - D_rel)^0.375)^2*(1/D_rel)^2;
data.zeta2 := k*(1 - D_rel)^0.75 + (1 - D_rel)^2 + 2*sqrt(k*(1 -
D_rel)^0.375) + (1 - D_rel);
data.zeta1 := ((1 - A_rel) + 0.707*(1 - A_rel)^0.375)^2*(1/A_rel)^2;
data.zeta2 := k*(1 - A_rel)^0.75 + (1 - A_rel)^2 + 2*sqrt(k*(1 -
A_rel)^0.375) + (1 - A_rel);
data.Re_turbulent := 1e4;
data.D_Re := leastDiameter;
data.zeta1_at_a := true;
Expand Down

0 comments on commit 68aa656

Please sign in to comment.