diff --git a/Modelica/Fluid/Pipes.mo b/Modelica/Fluid/Pipes.mo index 18e0836080..c46754562e 100644 --- a/Modelica/Fluid/Pipes.mo +++ b/Modelica/Fluid/Pipes.mo @@ -1316,8 +1316,8 @@ specified nominal values for given geometry parameters crossAreas, mus[2:n], pathLengths_internal, diameters, - (crossAreas[1:n-1]+crossAreas[2:n])/2, g*dheights, + (crossAreas[1:n-1]+crossAreas[2:n])/2, (roughnesses[1:n-1]+roughnesses[2:n])/2, dp_small/(n-1), Res_turbulent_internal)*nParallel, @@ -1332,8 +1332,8 @@ specified nominal values for given geometry parameters crossAreas, mus[2:n], pathLengths_internal, diameters, - (crossAreas[1:n-1]+crossAreas[2:n])/2, g*dheights, + (crossAreas[1:n-1]+crossAreas[2:n])/2, (roughnesses[1:n-1]+roughnesses[2:n])/2, m_flow_small/nParallel, Res_turbulent_internal), @@ -1838,7 +1838,7 @@ See also equation if from_dp and not WallFriction.dp_is_zero then - m_flow = WallFriction.massFlowRate_dp_staticHead(dp, rho_a, rho_b, mu_a, mu_b, length, diameter, crossArea, - g_times_height_ab, roughness, if use_x_small_staticHead then dp_small_staticHead else dp_small); + m_flow = WallFriction.massFlowRate_dp_staticHead(dp, rho_a, rho_b, mu_a, mu_b, length, diameter, + g_times_height_ab, crossArea, roughness, if use_x_small_staticHead then dp_small_staticHead else dp_small); else - dp = WallFriction.pressureLoss_m_flow_staticHead(m_flow, rho_a, rho_b, mu_a, mu_b, length, diameter, crossArea, - g_times_height_ab, roughness, if use_x_small_staticHead then m_flow_small_staticHead else m_flow_small); + dp = WallFriction.pressureLoss_m_flow_staticHead(m_flow, rho_a, rho_b, mu_a, mu_b, length, diameter, + g_times_height_ab, crossArea, roughness, if use_x_small_staticHead then m_flow_small_staticHead else m_flow_small); end if; // Energy balance, considering change of potential energy