From f0d7b74618a4f8d93a16d45d0a871c7c7574f25c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Per=20=C3=96stlund?= Date: Wed, 1 Nov 2023 18:25:00 +0100 Subject: [PATCH] Only strip comments from inaccessible variables (#11487) - Use the Protection annotation to determine whether to strip comments from variables or not in FlatModel.obfuscate. --- OMCompiler/Compiler/NFFrontEnd/NFFlatModel.mo | 16 +- OMCompiler/Compiler/NFFrontEnd/NFInstNode.mo | 28 + OMCompiler/Compiler/NFFrontEnd/NFPrefixes.mo | 36 + OMCompiler/Compiler/NFFrontEnd/NFVariable.mo | 25 + .../openmodelica/interactive-API/Makefile | 1 + .../interactive-API/Obfuscation2.mos | 5570 ++++++++--------- .../interactive-API/Obfuscation3.mos | 63 + 7 files changed, 2947 insertions(+), 2792 deletions(-) create mode 100644 testsuite/openmodelica/interactive-API/Obfuscation3.mos diff --git a/OMCompiler/Compiler/NFFrontEnd/NFFlatModel.mo b/OMCompiler/Compiler/NFFrontEnd/NFFlatModel.mo index aeb7561d896..380557cd3bf 100644 --- a/OMCompiler/Compiler/NFFrontEnd/NFFlatModel.mo +++ b/OMCompiler/Compiler/NFFrontEnd/NFFlatModel.mo @@ -707,10 +707,6 @@ public addObfuscatedVariable(v, only_encrypted, obfuscation_map); end for; - if UnorderedMap.isEmpty(obfuscation_map) then - return; - end if; - flatModel.variables := list(obfuscateVariable(v, obfuscation_map) for v in flatModel.variables); flatModel := mapEquations(flatModel, function obfuscateEquation(obfuscationMap = obfuscation_map)); flatModel := mapAlgorithms(flatModel, function obfuscateAlgorithm(obfuscationMap = obfuscation_map)); @@ -740,7 +736,8 @@ public input ObfuscationMap obfuscationMap; algorithm var.name := obfuscateCref(var.name, obfuscationMap); - var.comment := obfuscateCommentOpt(var.comment, ComponentRef.node(var.name), obfuscationMap); + var.comment := obfuscateCommentOpt(var.comment, ComponentRef.node(var.name), + obfuscationMap, stripComment = not Variable.isAccessible(var)); var := Variable.mapExpShallow(var, function obfuscateExp(obfuscationMap = obfuscationMap)); end obfuscateVariable; @@ -839,18 +836,23 @@ public input output Option comment; input InstNode scope; input ObfuscationMap obfuscationMap; + input Boolean stripComment = true; algorithm comment := Util.applyOption(comment, - function obfuscateComment(scope = scope, obfuscationMap = obfuscationMap)); + function obfuscateComment(scope = scope, obfuscationMap = obfuscationMap, stripComment = stripComment)); end obfuscateCommentOpt; function obfuscateComment input output SCode.Comment comment; input InstNode scope; input ObfuscationMap obfuscationMap; + input Boolean stripComment = true; algorithm comment.annotation_ := obfuscateAnnotationOpt(comment.annotation_, scope, obfuscationMap); - comment.comment := NONE(); + + if stripComment then + comment.comment := NONE(); + end if; end obfuscateComment; function obfuscateAnnotationOpt diff --git a/OMCompiler/Compiler/NFFrontEnd/NFInstNode.mo b/OMCompiler/Compiler/NFFrontEnd/NFInstNode.mo index 39f2d3e36aa..25afa9b48c6 100644 --- a/OMCompiler/Compiler/NFFrontEnd/NFInstNode.mo +++ b/OMCompiler/Compiler/NFFrontEnd/NFInstNode.mo @@ -44,6 +44,7 @@ import Pointer; import Error; import Prefixes = NFPrefixes; import Visibility = NFPrefixes.Visibility; +import AccessLevel = NFPrefixes.AccessLevel; import NFModifier.Modifier; import SCodeDump; import DAE; @@ -2086,6 +2087,33 @@ uniontype InstNode InstNodeType.TOP_SCOPE(generatedInners = inners) := nodeType(InstNode.topScope(node)); UnorderedMap.clear(inners); end clearGeneratedInners; + + function getAccessLevel + input InstNode node; + output Option access = NONE(); + protected + InstNode scope; + SCode.Mod access_mod; + Option access_exp; + algorithm + scope := classScope(parent(resolveInner(node))); + + while isClass(scope) loop + access_mod := SCodeUtil.lookupElementAnnotation(definition(scope), "Protection"); + access_mod := SCodeUtil.lookupModInMod("access", access_mod); + access_exp := SCodeUtil.getModifierBinding(access_mod); + + if isSome(access_exp) then + access := Prefixes.accessLevelFromAbsyn(Util.getOption(access_exp)); + + if isSome(access) then + return; + end if; + end if; + + scope := parent(scope); + end while; + end getAccessLevel; end InstNode; annotation(__OpenModelica_Interface="frontend"); diff --git a/OMCompiler/Compiler/NFFrontEnd/NFPrefixes.mo b/OMCompiler/Compiler/NFFrontEnd/NFPrefixes.mo index 6780cbf47d1..6922e7c9748 100644 --- a/OMCompiler/Compiler/NFFrontEnd/NFPrefixes.mo +++ b/OMCompiler/Compiler/NFFrontEnd/NFPrefixes.mo @@ -302,6 +302,17 @@ type Visibility = enumeration( PROTECTED ); +type AccessLevel = enumeration( + HIDE, + ICON, + DOCUMENTATION, + DIAGRAM, + NON_PACKAGE_TEXT, + NON_PACKAGE_DUPLICATE, + PACKAGE_TEXT, + PACKAGE_DUPLICATE +); + uniontype Replaceable record REPLACEABLE Option constrainingClass; @@ -706,5 +717,30 @@ algorithm fail(); end printPrefixError; +function accessLevelFromAbsyn + input Absyn.Exp exp; + output Option access; +protected + String name; +algorithm + access := match exp + case Absyn.Exp.CREF(componentRef = Absyn.ComponentRef.CREF_QUAL(name = "Access", + componentRef = Absyn.ComponentRef.CREF_IDENT(name = name))) + then match name + case "hide" then SOME(AccessLevel.HIDE); + case "icon" then SOME(AccessLevel.ICON); + case "documentation" then SOME(AccessLevel.DOCUMENTATION); + case "diagram" then SOME(AccessLevel.DIAGRAM); + case "nonPackageText" then SOME(AccessLevel.NON_PACKAGE_TEXT); + case "nonPackageDuplicate" then SOME(AccessLevel.NON_PACKAGE_DUPLICATE); + case "packageText" then SOME(AccessLevel.PACKAGE_TEXT); + case "packageDuplicate" then SOME(AccessLevel.PACKAGE_DUPLICATE); + else NONE(); + end match; + + else NONE(); + end match; +end accessLevelFromAbsyn; + annotation(__OpenModelica_Interface="frontend"); end NFPrefixes; diff --git a/OMCompiler/Compiler/NFFrontEnd/NFVariable.mo b/OMCompiler/Compiler/NFFrontEnd/NFVariable.mo index 4e543c2c334..3bb93885780 100644 --- a/OMCompiler/Compiler/NFFrontEnd/NFVariable.mo +++ b/OMCompiler/Compiler/NFFrontEnd/NFVariable.mo @@ -40,6 +40,7 @@ encapsulated uniontype NFVariable import NFPrefixes.Variability; import NFPrefixes.ConnectorType; import NFPrefixes.Direction; + import NFPrefixes.AccessLevel; import Type = NFType; import BackendExtension = NFBackendExtension; import NFBackendExtension.BackendInfo; @@ -289,6 +290,30 @@ public output Boolean isEncrypted = Util.endsWith(variable.info.fileName, ".moc"); end isEncrypted; + function isAccessible + input Variable variable; + output Boolean isAccessible; + protected + Option oaccess; + AccessLevel access; + algorithm + oaccess := InstNode.getAccessLevel(ComponentRef.node(variable.name)); + + if isSome(oaccess) then + SOME(access) := oaccess; + else + access := if isEncrypted(variable) then AccessLevel.DOCUMENTATION else AccessLevel.PACKAGE_DUPLICATE; + end if; + + if access < AccessLevel.ICON then + isAccessible := false; + elseif access < AccessLevel.NON_PACKAGE_TEXT then + isAccessible := not isProtected(variable); + else + isAccessible := true; + end if; + end isAccessible; + function lookupTypeAttribute input String name; input Variable var; diff --git a/testsuite/openmodelica/interactive-API/Makefile b/testsuite/openmodelica/interactive-API/Makefile index cbb0d091b4d..6d312b63f78 100644 --- a/testsuite/openmodelica/interactive-API/Makefile +++ b/testsuite/openmodelica/interactive-API/Makefile @@ -75,6 +75,7 @@ MoveClass2.mos \ MoveClass.mos \ Obfuscation1.mos \ Obfuscation2.mos \ +Obfuscation3.mos \ ProtectedHandlingBug2917.mos \ ReadOnlyPkg.mos \ refactorGraphAnn1.mos \ diff --git a/testsuite/openmodelica/interactive-API/Obfuscation2.mos b/testsuite/openmodelica/interactive-API/Obfuscation2.mos index 4fd8b07d987..e238d18b66f 100644 --- a/testsuite/openmodelica/interactive-API/Obfuscation2.mos +++ b/testsuite/openmodelica/interactive-API/Obfuscation2.mos @@ -13,12 +13,12 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // true // "" // "function Modelica.Fluid.Examples.BranchingDynamicPipes.boundary1.Medium.T_phX \"Return temperature as a function of pressure p, specific enthalpy h and composition X\" -// input Real p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) \"Pressure\"; -// input Real h(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -10000000000.0, max = 10000000000.0, nominal = 1000000.0) \"Specific enthalpy\"; +// input Real p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Pressure\"; +// input Real h(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -1e10, max = 1e10, nominal = 1e6) \"Specific enthalpy\"; // input Real[:] X(quantity = fill(\"MassFraction\", size(X, 1)), unit = fill(\"kg/kg\", size(X, 1)), min = fill(0.0, size(X, 1)), max = fill(1.0, size(X, 1)), nominal = fill(0.1, size(X, 1))) \"Mass fractions of composition\"; // output Real T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature\"; // algorithm -// T := Modelica.Fluid.Examples.BranchingDynamicPipes.boundary1.Medium.T_phX.Internal.solve(h, 190.0, 647.0, p, X[1:1], Modelica.Media.IdealGases.Common.DataRecord(\"H2O\", 0.01801528, -13423382.81725291, 549760.6476280135, 1000.0, {-39479.6083, 575.5731019999999, 0.931782653, 0.00722271286, -7.34255737e-06, 4.95504349e-09, -1.336933246e-12}, {-33039.7431, 17.24205775}, {1034972.096, -2412.698562, 4.64611078, 0.002291998307, -6.836830479999999e-07, 9.426468930000001e-11, -4.82238053e-15}, {-13842.86509, -7.97814851}, 461.5233290850878), 1e-13); +// T := Modelica.Fluid.Examples.BranchingDynamicPipes.boundary1.Medium.T_phX.Internal.solve(h, 190.0, 647.0, p, X[1:1], Modelica.Media.IdealGases.Common.DataRecord(\"H2O\", 0.01801528, -1.342338281725291e7, 549760.6476280135, 1000.0, {-39479.6083, 575.573102, 0.931782653, 0.00722271286, -7.34255737e-6, 4.95504349e-9, -1.336933246e-12}, {-33039.7431, 17.24205775}, {1.034972096e6, -2412.698562, 4.64611078, 0.002291998307, -6.836830479999999e-7, 9.426468930000001e-11, -4.82238053e-15}, {-13842.86509, -7.97814851}, 461.5233290850878), 1e-13); // end Modelica.Fluid.Examples.BranchingDynamicPipes.boundary1.Medium.T_phX; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.boundary1.Medium.T_phX.Internal.f_nonlinear @@ -187,7 +187,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // protected Real y; // algorithm // scaledX1 := x / deltax; -// scaledX := scaledX1 * 1.570796326794897; +// scaledX := scaledX1 * 1.5707963267948966; // if scaledX1 <= -0.999999999 then // y := 0.0; // elseif scaledX1 >= 0.999999999 then @@ -214,7 +214,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // protected Real y; // algorithm // scaledX1 := x / deltax; -// scaledX := scaledX1 * 1.570796326794897; +// scaledX := scaledX1 * 1.5707963267948966; // dscaledX1 := (dx - scaledX1 * ddeltax) / deltax; // if scaledX1 <= -0.99999999999 then // y := 0.0; @@ -225,7 +225,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // end if; // out := dpos * y + (1.0 - y) * dneg; // if abs(scaledX1) < 1.0 then -// out := out + (pos - neg) * dscaledX1 * 1.570796326794897 / 2.0 / (cosh(tan(scaledX)) * cos(scaledX)) ^ 2.0; +// out := out + (pos - neg) * dscaledX1 * 1.5707963267948966 / 2.0 / (cosh(tan(scaledX)) * cos(scaledX)) ^ 2.0; // end if; // end Modelica.Fluid.Examples.BranchingDynamicPipes.boundary1.Medium.Utilities.spliceFunction_der; // @@ -249,7 +249,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // input Real T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) \"Temperature\"; // input Real[:] X(quantity = fill(\"MassFraction\", size(X, 1)), unit = fill(\"1\", size(X, 1)), min = fill(0.0, size(X, 1)), max = fill(1.0, size(X, 1))) \"Mass fractions of moist air\"; // output Real h(quantity = \"SpecificEnergy\", unit = \"J/kg\") \"Specific enthalpy at p, T, X\"; -// protected Real p_steam_sat(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 100000.0) \"partial saturation pressure of steam\"; +// protected Real p_steam_sat(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 1e5) \"partial saturation pressure of steam\"; // protected Real X_sat(quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0) \"Absolute humidity per unit mass of moist air\"; // protected Real X_liquid(quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0) \"Mass fraction of liquid water\"; // protected Real X_steam(quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0) \"Mass fraction of steam water\"; @@ -260,7 +260,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // X_liquid := max(X[1] - X_sat, 0.0); // X_steam := X[1] - X_liquid; // X_air := 1.0 - X[1]; -// h := Modelica.Media.IdealGases.Common.Functions.h_Tlow(Modelica.Media.IdealGases.Common.DataRecord(\"H2O\", 0.01801528, -13423382.81725291, 549760.6476280135, 1000.0, {-39479.6083, 575.5731019999999, 0.931782653, 0.00722271286, -7.34255737e-06, 4.95504349e-09, -1.336933246e-12}, {-33039.7431, 17.24205775}, {1034972.096, -2412.698562, 4.64611078, 0.002291998307, -6.836830479999999e-07, 9.426468930000001e-11, -4.82238053e-15}, {-13842.86509, -7.97814851}, 461.5233290850878), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 2547494.319) * X_steam + Modelica.Media.IdealGases.Common.Functions.h_Tlow(Modelica.Media.IdealGases.Common.DataRecord(\"Air\", 0.0289651159, -4333.833858403446, 298609.6803431054, 1000.0, {10099.5016, -196.827561, 5.00915511, -0.00576101373, 1.06685993e-05, -7.94029797e-09, 2.18523191e-12}, {-176.796731, -3.921504225}, {241521.443, -1257.8746, 5.14455867, -0.000213854179, 7.06522784e-08, -1.07148349e-11, 6.57780015e-16}, {6462.26319, -8.147411905}, 287.0512249529787), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 25104.684) * X_air + Modelica.Fluid.Examples.BranchingDynamicPipes.boundary1.Medium.enthalpyOfWater(T) * X_liquid; +// h := Modelica.Media.IdealGases.Common.Functions.h_Tlow(Modelica.Media.IdealGases.Common.DataRecord(\"H2O\", 0.01801528, -1.342338281725291e7, 549760.6476280135, 1000.0, {-39479.6083, 575.573102, 0.931782653, 0.00722271286, -7.34255737e-6, 4.95504349e-9, -1.336933246e-12}, {-33039.7431, 17.24205775}, {1.034972096e6, -2412.698562, 4.64611078, 0.002291998307, -6.836830479999999e-7, 9.426468930000001e-11, -4.82238053e-15}, {-13842.86509, -7.97814851}, 461.5233290850878), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 2.547494319e6) * X_steam + Modelica.Media.IdealGases.Common.Functions.h_Tlow(Modelica.Media.IdealGases.Common.DataRecord(\"Air\", 0.0289651159, -4333.833858403446, 298609.6803431054, 1000.0, {10099.5016, -196.827561, 5.00915511, -0.00576101373, 1.06685993e-5, -7.94029797e-9, 2.18523191e-12}, {-176.796731, -3.921504225}, {241521.443, -1257.8746, 5.14455867, -2.13854179e-4, 7.06522784e-8, -1.07148349e-11, 6.57780015e-16}, {6462.26319, -8.147411905}, 287.0512249529787), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 25104.684) * X_air + Modelica.Fluid.Examples.BranchingDynamicPipes.boundary1.Medium.enthalpyOfWater(T) * X_liquid; // end Modelica.Fluid.Examples.BranchingDynamicPipes.boundary1.Medium.h_pTX; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.boundary1.Medium.h_pTX_der \"Derivative function of h_pTX\" @@ -271,7 +271,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // input Real dT(unit = \"K/s\") \"Temperature derivative\"; // input Real[:] dX(unit = \"1/s\") \"Composition derivative\"; // output Real h_der(unit = \"J/(kg.s)\") \"Time derivative of specific enthalpy\"; -// protected Real p_steam_sat(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 100000.0) \"partial saturation pressure of steam\"; +// protected Real p_steam_sat(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 1e5) \"partial saturation pressure of steam\"; // protected Real X_sat(quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0) \"Absolute humidity per unit mass of moist air\"; // protected Real X_liquid(quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0) \"Mass fraction of liquid water\"; // protected Real X_steam(quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0) \"Mass fraction of steam water\"; @@ -286,29 +286,29 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // p_steam_sat := Modelica.Fluid.Examples.BranchingDynamicPipes.boundary1.Medium.saturationPressure(T); // x_sat := p_steam_sat * 0.6219647130774989 / max(1e-13, p - p_steam_sat); // X_sat := min(x_sat * (1.0 - X[1]), 1.0); -// X_liquid := Modelica.Fluid.Examples.BranchingDynamicPipes.boundary1.Medium.Utilities.smoothMax(X[1] - X_sat, 0.0, 1e-05); +// X_liquid := Modelica.Fluid.Examples.BranchingDynamicPipes.boundary1.Medium.Utilities.smoothMax(X[1] - X_sat, 0.0, 1e-5); // X_steam := X[1] - X_liquid; // X_air := 1.0 - X[1]; // dX_air := -dX[1]; // dps := Modelica.Fluid.Examples.BranchingDynamicPipes.boundary1.Medium.saturationPressure_der(T, dT); // dx_sat := 0.6219647130774989 * (dps * (p - p_steam_sat) - p_steam_sat * (dp - dps)) / (p - p_steam_sat) / (p - p_steam_sat); -// dX_liq := Modelica.Fluid.Examples.BranchingDynamicPipes.boundary1.Medium.Utilities.smoothMax_der(X[1] - X_sat, 0.0, 1e-05, (1.0 + x_sat) * dX[1] - (1.0 - X[1]) * dx_sat, 0.0, 0.0); +// dX_liq := Modelica.Fluid.Examples.BranchingDynamicPipes.boundary1.Medium.Utilities.smoothMax_der(X[1] - X_sat, 0.0, 1e-5, (1.0 + x_sat) * dX[1] - (1.0 - X[1]) * dx_sat, 0.0, 0.0); // dX_steam := dX[1] - dX_liq; -// h_der := X_steam * Modelica.Media.IdealGases.Common.Functions.h_Tlow_der(Modelica.Media.IdealGases.Common.DataRecord(\"H2O\", 0.01801528, -13423382.81725291, 549760.6476280135, 1000.0, {-39479.6083, 575.5731019999999, 0.931782653, 0.00722271286, -7.34255737e-06, 4.95504349e-09, -1.336933246e-12}, {-33039.7431, 17.24205775}, {1034972.096, -2412.698562, 4.64611078, 0.002291998307, -6.836830479999999e-07, 9.426468930000001e-11, -4.82238053e-15}, {-13842.86509, -7.97814851}, 461.5233290850878), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 2547494.319, dT) + dX_steam * Modelica.Media.IdealGases.Common.Functions.h_Tlow(Modelica.Media.IdealGases.Common.DataRecord(\"H2O\", 0.01801528, -13423382.81725291, 549760.6476280135, 1000.0, {-39479.6083, 575.5731019999999, 0.931782653, 0.00722271286, -7.34255737e-06, 4.95504349e-09, -1.336933246e-12}, {-33039.7431, 17.24205775}, {1034972.096, -2412.698562, 4.64611078, 0.002291998307, -6.836830479999999e-07, 9.426468930000001e-11, -4.82238053e-15}, {-13842.86509, -7.97814851}, 461.5233290850878), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 2547494.319) + X_air * Modelica.Media.IdealGases.Common.Functions.h_Tlow_der(Modelica.Media.IdealGases.Common.DataRecord(\"Air\", 0.0289651159, -4333.833858403446, 298609.6803431054, 1000.0, {10099.5016, -196.827561, 5.00915511, -0.00576101373, 1.06685993e-05, -7.94029797e-09, 2.18523191e-12}, {-176.796731, -3.921504225}, {241521.443, -1257.8746, 5.14455867, -0.000213854179, 7.06522784e-08, -1.07148349e-11, 6.57780015e-16}, {6462.26319, -8.147411905}, 287.0512249529787), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 25104.684, dT) + dX_air * Modelica.Media.IdealGases.Common.Functions.h_Tlow(Modelica.Media.IdealGases.Common.DataRecord(\"Air\", 0.0289651159, -4333.833858403446, 298609.6803431054, 1000.0, {10099.5016, -196.827561, 5.00915511, -0.00576101373, 1.06685993e-05, -7.94029797e-09, 2.18523191e-12}, {-176.796731, -3.921504225}, {241521.443, -1257.8746, 5.14455867, -0.000213854179, 7.06522784e-08, -1.07148349e-11, 6.57780015e-16}, {6462.26319, -8.147411905}, 287.0512249529787), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 25104.684) + X_liquid * Modelica.Fluid.Examples.BranchingDynamicPipes.boundary1.Medium.enthalpyOfWater_der(T, dT) + dX_liq * Modelica.Fluid.Examples.BranchingDynamicPipes.boundary1.Medium.enthalpyOfWater(T); +// h_der := X_steam * Modelica.Media.IdealGases.Common.Functions.h_Tlow_der(Modelica.Media.IdealGases.Common.DataRecord(\"H2O\", 0.01801528, -1.342338281725291e7, 549760.6476280135, 1000.0, {-39479.6083, 575.573102, 0.931782653, 0.00722271286, -7.34255737e-6, 4.95504349e-9, -1.336933246e-12}, {-33039.7431, 17.24205775}, {1.034972096e6, -2412.698562, 4.64611078, 0.002291998307, -6.836830479999999e-7, 9.426468930000001e-11, -4.82238053e-15}, {-13842.86509, -7.97814851}, 461.5233290850878), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 2.547494319e6, dT) + dX_steam * Modelica.Media.IdealGases.Common.Functions.h_Tlow(Modelica.Media.IdealGases.Common.DataRecord(\"H2O\", 0.01801528, -1.342338281725291e7, 549760.6476280135, 1000.0, {-39479.6083, 575.573102, 0.931782653, 0.00722271286, -7.34255737e-6, 4.95504349e-9, -1.336933246e-12}, {-33039.7431, 17.24205775}, {1.034972096e6, -2412.698562, 4.64611078, 0.002291998307, -6.836830479999999e-7, 9.426468930000001e-11, -4.82238053e-15}, {-13842.86509, -7.97814851}, 461.5233290850878), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 2.547494319e6) + X_air * Modelica.Media.IdealGases.Common.Functions.h_Tlow_der(Modelica.Media.IdealGases.Common.DataRecord(\"Air\", 0.0289651159, -4333.833858403446, 298609.6803431054, 1000.0, {10099.5016, -196.827561, 5.00915511, -0.00576101373, 1.06685993e-5, -7.94029797e-9, 2.18523191e-12}, {-176.796731, -3.921504225}, {241521.443, -1257.8746, 5.14455867, -2.13854179e-4, 7.06522784e-8, -1.07148349e-11, 6.57780015e-16}, {6462.26319, -8.147411905}, 287.0512249529787), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 25104.684, dT) + dX_air * Modelica.Media.IdealGases.Common.Functions.h_Tlow(Modelica.Media.IdealGases.Common.DataRecord(\"Air\", 0.0289651159, -4333.833858403446, 298609.6803431054, 1000.0, {10099.5016, -196.827561, 5.00915511, -0.00576101373, 1.06685993e-5, -7.94029797e-9, 2.18523191e-12}, {-176.796731, -3.921504225}, {241521.443, -1257.8746, 5.14455867, -2.13854179e-4, 7.06522784e-8, -1.07148349e-11, 6.57780015e-16}, {6462.26319, -8.147411905}, 287.0512249529787), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 25104.684) + X_liquid * Modelica.Fluid.Examples.BranchingDynamicPipes.boundary1.Medium.enthalpyOfWater_der(T, dT) + dX_liq * Modelica.Fluid.Examples.BranchingDynamicPipes.boundary1.Medium.enthalpyOfWater(T); // end Modelica.Fluid.Examples.BranchingDynamicPipes.boundary1.Medium.h_pTX_der; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.boundary1.Medium.saturationPressure \"Return saturation pressure of water as a function of temperature T between 190 and 647.096 K\" // input Real Tsat(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Saturation temperature\"; -// output Real psat(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) \"Saturation pressure\"; +// output Real psat(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Saturation pressure\"; // algorithm // psat := Modelica.Fluid.Examples.BranchingDynamicPipes.boundary1.Medium.Utilities.spliceFunction(Modelica.Fluid.Examples.BranchingDynamicPipes.boundary1.Medium.saturationPressureLiquid(Tsat), Modelica.Fluid.Examples.BranchingDynamicPipes.boundary1.Medium.sublimationPressureIce(Tsat), Tsat - 273.16, 1.0); // end Modelica.Fluid.Examples.BranchingDynamicPipes.boundary1.Medium.saturationPressure; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.boundary1.Medium.saturationPressureLiquid \"Return saturation pressure of water as a function of temperature T in the range of 273.16 to 647.096 K\" // input Real Tsat(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) \"Saturation temperature\"; -// output Real psat(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 100000.0) \"Saturation pressure\"; +// output Real psat(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 1e5) \"Saturation pressure\"; // protected Real Tcritical(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) = 647.096 \"Critical temperature\"; -// protected Real pcritical(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 100000.0) = 22064000.0 \"Critical pressure\"; +// protected Real pcritical(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 1e5) = 2.2064e7 \"Critical pressure\"; // protected Real[:] a = {-7.85951783, 1.84408259, -11.7866497, 22.6807411, -15.9618719, 1.80122502} \"Coefficients a[:]\"; // protected Real[:] n = {1.0, 1.5, 3.0, 3.5, 4.0, 7.5} \"Coefficients n[:]\"; // protected Real r1 = 1.0 - Tsat / Tcritical \"Common subexpression\"; @@ -321,7 +321,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // input Real dTsat(unit = \"K/s\") \"Saturation temperature derivative\"; // output Real psat_der(unit = \"Pa/s\") \"Saturation pressure derivative\"; // protected Real Tcritical(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) = 647.096 \"Critical temperature\"; -// protected Real pcritical(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 100000.0) = 22064000.0 \"Critical pressure\"; +// protected Real pcritical(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 1e5) = 2.2064e7 \"Critical pressure\"; // protected Real[:] a = {-7.85951783, 1.84408259, -11.7866497, 22.6807411, -15.9618719, 1.80122502} \"Coefficients a[:]\"; // protected Real[:] n = {1.0, 1.5, 3.0, 3.5, 4.0, 7.5} \"Coefficients n[:]\"; // protected Real r1 = 1.0 - Tsat / Tcritical \"Common subexpression 1\"; @@ -340,7 +340,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // end Modelica.Fluid.Examples.BranchingDynamicPipes.boundary1.Medium.saturationPressure_der; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.boundary1.Medium.setState_pTX \"Return thermodynamic state as function of pressure p, temperature T and composition X\" -// input Real p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) \"Pressure\"; +// input Real p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Pressure\"; // input Real T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature\"; // input Real[:] X(quantity = fill(\"MassFraction\", size(X, 1)), unit = fill(\"kg/kg\", size(X, 1)), min = fill(0.0, size(X, 1)), max = fill(1.0, size(X, 1)), nominal = fill(0.1, size(X, 1))) = {0.01, 0.99} \"Mass fractions\"; // output Modelica.Fluid.Examples.BranchingDynamicPipes.boundary1.Medium.ThermodynamicState state \"Thermodynamic state\"; @@ -349,8 +349,8 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // end Modelica.Fluid.Examples.BranchingDynamicPipes.boundary1.Medium.setState_pTX; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.boundary1.Medium.setState_phX \"Return thermodynamic state as function of pressure p, specific enthalpy h and composition X\" -// input Real p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) \"Pressure\"; -// input Real h(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -10000000000.0, max = 10000000000.0, nominal = 1000000.0) \"Specific enthalpy\"; +// input Real p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Pressure\"; +// input Real h(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -1e10, max = 1e10, nominal = 1e6) \"Specific enthalpy\"; // input Real[:] X(quantity = fill(\"MassFraction\", size(X, 1)), unit = fill(\"kg/kg\", size(X, 1)), min = fill(0.0, size(X, 1)), max = fill(1.0, size(X, 1)), nominal = fill(0.1, size(X, 1))) = {0.01, 0.99} \"Mass fractions\"; // output Modelica.Fluid.Examples.BranchingDynamicPipes.boundary1.Medium.ThermodynamicState state \"Thermodynamic state\"; // algorithm @@ -359,25 +359,25 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // // function Modelica.Fluid.Examples.BranchingDynamicPipes.boundary1.Medium.specificEnthalpy \"Return specific enthalpy of moist air as a function of the thermodynamic state record\" // input Modelica.Fluid.Examples.BranchingDynamicPipes.boundary1.Medium.ThermodynamicState state \"Thermodynamic state record\"; -// output Real h(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -10000000000.0, max = 10000000000.0, nominal = 1000000.0) \"Specific enthalpy\"; +// output Real h(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -1e10, max = 1e10, nominal = 1e6) \"Specific enthalpy\"; // algorithm // h := Modelica.Fluid.Examples.BranchingDynamicPipes.boundary1.Medium.h_pTX(state.p, state.T, state.X); // end Modelica.Fluid.Examples.BranchingDynamicPipes.boundary1.Medium.specificEnthalpy; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.boundary1.Medium.specificEnthalpy_pTX \"Return specific enthalpy from p, T, and X or Xi\" -// input Real p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) \"Pressure\"; +// input Real p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Pressure\"; // input Real T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature\"; // input Real[:] X(quantity = fill(\"MassFraction\", size(X, 1)), unit = fill(\"kg/kg\", size(X, 1)), min = fill(0.0, size(X, 1)), max = fill(1.0, size(X, 1)), nominal = fill(0.1, size(X, 1))) = {0.01, 0.99} \"Mass fractions\"; -// output Real h(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -10000000000.0, max = 10000000000.0, nominal = 1000000.0) \"Specific enthalpy\"; +// output Real h(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -1e10, max = 1e10, nominal = 1e6) \"Specific enthalpy\"; // algorithm // h := Modelica.Fluid.Examples.BranchingDynamicPipes.boundary1.Medium.specificEnthalpy(Modelica.Fluid.Examples.BranchingDynamicPipes.boundary1.Medium.setState_pTX(p, T, X)); // end Modelica.Fluid.Examples.BranchingDynamicPipes.boundary1.Medium.specificEnthalpy_pTX; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.boundary1.Medium.sublimationPressureIce \"Return sublimation pressure of water as a function of temperature T between 190 and 273.16 K\" // input Real Tsat(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) \"Sublimation temperature\"; -// output Real psat(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 100000.0) \"Sublimation pressure\"; +// output Real psat(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 1e5) \"Sublimation pressure\"; // protected Real Ttriple(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) = 273.16 \"Triple point temperature\"; -// protected Real ptriple(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 100000.0) = 611.657 \"Triple point pressure\"; +// protected Real ptriple(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 1e5) = 611.657 \"Triple point pressure\"; // protected Real[:] a = {-13.928169, 34.7078238} \"Coefficients a[:]\"; // protected Real[:] n = {-1.5, -1.25} \"Coefficients n[:]\"; // protected Real r1 = Tsat / Ttriple \"Common subexpression\"; @@ -390,7 +390,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // input Real dTsat(unit = \"K/s\") \"Sublimation temperature derivative\"; // output Real psat_der(unit = \"Pa/s\") \"Sublimation pressure derivative\"; // protected Real Ttriple(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) = 273.16 \"Triple point temperature\"; -// protected Real ptriple(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 100000.0) = 611.657 \"Triple point pressure\"; +// protected Real ptriple(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 1e5) = 611.657 \"Triple point pressure\"; // protected Real[:] a = {-13.928169, 34.7078238} \"Coefficients a[:]\"; // protected Real[:] n = {-1.5, -1.25} \"Coefficients n[:]\"; // protected Real r1 = Tsat / Ttriple \"Common subexpression 1\"; @@ -407,8 +407,8 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // end Modelica.Fluid.Examples.BranchingDynamicPipes.boundary1.Medium.temperature; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.boundary1.Medium.temperature_phX \"Return temperature from p, h, and X or Xi\" -// input Real p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) \"Pressure\"; -// input Real h(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -10000000000.0, max = 10000000000.0, nominal = 1000000.0) \"Specific enthalpy\"; +// input Real p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Pressure\"; +// input Real h(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -1e10, max = 1e10, nominal = 1e6) \"Specific enthalpy\"; // input Real[:] X(quantity = fill(\"MassFraction\", size(X, 1)), unit = fill(\"kg/kg\", size(X, 1)), min = fill(0.0, size(X, 1)), max = fill(1.0, size(X, 1)), nominal = fill(0.1, size(X, 1))) = {0.01, 0.99} \"Mass fractions\"; // output Real T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature\"; // algorithm @@ -416,12 +416,12 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // end Modelica.Fluid.Examples.BranchingDynamicPipes.boundary1.Medium.temperature_phX; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.boundary4.Medium.T_phX \"Return temperature as a function of pressure p, specific enthalpy h and composition X\" -// input Real p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) \"Pressure\"; -// input Real h(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -10000000000.0, max = 10000000000.0, nominal = 1000000.0) \"Specific enthalpy\"; +// input Real p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Pressure\"; +// input Real h(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -1e10, max = 1e10, nominal = 1e6) \"Specific enthalpy\"; // input Real[:] X(quantity = fill(\"MassFraction\", size(X, 1)), unit = fill(\"kg/kg\", size(X, 1)), min = fill(0.0, size(X, 1)), max = fill(1.0, size(X, 1)), nominal = fill(0.1, size(X, 1))) \"Mass fractions of composition\"; // output Real T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature\"; // algorithm -// T := Modelica.Fluid.Examples.BranchingDynamicPipes.boundary4.Medium.T_phX.Internal.solve(h, 190.0, 647.0, p, X[1:1], Modelica.Media.IdealGases.Common.DataRecord(\"H2O\", 0.01801528, -13423382.81725291, 549760.6476280135, 1000.0, {-39479.6083, 575.5731019999999, 0.931782653, 0.00722271286, -7.34255737e-06, 4.95504349e-09, -1.336933246e-12}, {-33039.7431, 17.24205775}, {1034972.096, -2412.698562, 4.64611078, 0.002291998307, -6.836830479999999e-07, 9.426468930000001e-11, -4.82238053e-15}, {-13842.86509, -7.97814851}, 461.5233290850878), 1e-13); +// T := Modelica.Fluid.Examples.BranchingDynamicPipes.boundary4.Medium.T_phX.Internal.solve(h, 190.0, 647.0, p, X[1:1], Modelica.Media.IdealGases.Common.DataRecord(\"H2O\", 0.01801528, -1.342338281725291e7, 549760.6476280135, 1000.0, {-39479.6083, 575.573102, 0.931782653, 0.00722271286, -7.34255737e-6, 4.95504349e-9, -1.336933246e-12}, {-33039.7431, 17.24205775}, {1.034972096e6, -2412.698562, 4.64611078, 0.002291998307, -6.836830479999999e-7, 9.426468930000001e-11, -4.82238053e-15}, {-13842.86509, -7.97814851}, 461.5233290850878), 1e-13); // end Modelica.Fluid.Examples.BranchingDynamicPipes.boundary4.Medium.T_phX; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.boundary4.Medium.T_phX.Internal.f_nonlinear @@ -590,7 +590,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // protected Real y; // algorithm // scaledX1 := x / deltax; -// scaledX := scaledX1 * 1.570796326794897; +// scaledX := scaledX1 * 1.5707963267948966; // if scaledX1 <= -0.999999999 then // y := 0.0; // elseif scaledX1 >= 0.999999999 then @@ -617,7 +617,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // protected Real y; // algorithm // scaledX1 := x / deltax; -// scaledX := scaledX1 * 1.570796326794897; +// scaledX := scaledX1 * 1.5707963267948966; // dscaledX1 := (dx - scaledX1 * ddeltax) / deltax; // if scaledX1 <= -0.99999999999 then // y := 0.0; @@ -628,7 +628,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // end if; // out := dpos * y + (1.0 - y) * dneg; // if abs(scaledX1) < 1.0 then -// out := out + (pos - neg) * dscaledX1 * 1.570796326794897 / 2.0 / (cosh(tan(scaledX)) * cos(scaledX)) ^ 2.0; +// out := out + (pos - neg) * dscaledX1 * 1.5707963267948966 / 2.0 / (cosh(tan(scaledX)) * cos(scaledX)) ^ 2.0; // end if; // end Modelica.Fluid.Examples.BranchingDynamicPipes.boundary4.Medium.Utilities.spliceFunction_der; // @@ -652,7 +652,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // input Real T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) \"Temperature\"; // input Real[:] X(quantity = fill(\"MassFraction\", size(X, 1)), unit = fill(\"1\", size(X, 1)), min = fill(0.0, size(X, 1)), max = fill(1.0, size(X, 1))) \"Mass fractions of moist air\"; // output Real h(quantity = \"SpecificEnergy\", unit = \"J/kg\") \"Specific enthalpy at p, T, X\"; -// protected Real p_steam_sat(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 100000.0) \"partial saturation pressure of steam\"; +// protected Real p_steam_sat(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 1e5) \"partial saturation pressure of steam\"; // protected Real X_sat(quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0) \"Absolute humidity per unit mass of moist air\"; // protected Real X_liquid(quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0) \"Mass fraction of liquid water\"; // protected Real X_steam(quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0) \"Mass fraction of steam water\"; @@ -663,7 +663,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // X_liquid := max(X[1] - X_sat, 0.0); // X_steam := X[1] - X_liquid; // X_air := 1.0 - X[1]; -// h := Modelica.Media.IdealGases.Common.Functions.h_Tlow(Modelica.Media.IdealGases.Common.DataRecord(\"H2O\", 0.01801528, -13423382.81725291, 549760.6476280135, 1000.0, {-39479.6083, 575.5731019999999, 0.931782653, 0.00722271286, -7.34255737e-06, 4.95504349e-09, -1.336933246e-12}, {-33039.7431, 17.24205775}, {1034972.096, -2412.698562, 4.64611078, 0.002291998307, -6.836830479999999e-07, 9.426468930000001e-11, -4.82238053e-15}, {-13842.86509, -7.97814851}, 461.5233290850878), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 2547494.319) * X_steam + Modelica.Media.IdealGases.Common.Functions.h_Tlow(Modelica.Media.IdealGases.Common.DataRecord(\"Air\", 0.0289651159, -4333.833858403446, 298609.6803431054, 1000.0, {10099.5016, -196.827561, 5.00915511, -0.00576101373, 1.06685993e-05, -7.94029797e-09, 2.18523191e-12}, {-176.796731, -3.921504225}, {241521.443, -1257.8746, 5.14455867, -0.000213854179, 7.06522784e-08, -1.07148349e-11, 6.57780015e-16}, {6462.26319, -8.147411905}, 287.0512249529787), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 25104.684) * X_air + Modelica.Fluid.Examples.BranchingDynamicPipes.boundary4.Medium.enthalpyOfWater(T) * X_liquid; +// h := Modelica.Media.IdealGases.Common.Functions.h_Tlow(Modelica.Media.IdealGases.Common.DataRecord(\"H2O\", 0.01801528, -1.342338281725291e7, 549760.6476280135, 1000.0, {-39479.6083, 575.573102, 0.931782653, 0.00722271286, -7.34255737e-6, 4.95504349e-9, -1.336933246e-12}, {-33039.7431, 17.24205775}, {1.034972096e6, -2412.698562, 4.64611078, 0.002291998307, -6.836830479999999e-7, 9.426468930000001e-11, -4.82238053e-15}, {-13842.86509, -7.97814851}, 461.5233290850878), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 2.547494319e6) * X_steam + Modelica.Media.IdealGases.Common.Functions.h_Tlow(Modelica.Media.IdealGases.Common.DataRecord(\"Air\", 0.0289651159, -4333.833858403446, 298609.6803431054, 1000.0, {10099.5016, -196.827561, 5.00915511, -0.00576101373, 1.06685993e-5, -7.94029797e-9, 2.18523191e-12}, {-176.796731, -3.921504225}, {241521.443, -1257.8746, 5.14455867, -2.13854179e-4, 7.06522784e-8, -1.07148349e-11, 6.57780015e-16}, {6462.26319, -8.147411905}, 287.0512249529787), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 25104.684) * X_air + Modelica.Fluid.Examples.BranchingDynamicPipes.boundary4.Medium.enthalpyOfWater(T) * X_liquid; // end Modelica.Fluid.Examples.BranchingDynamicPipes.boundary4.Medium.h_pTX; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.boundary4.Medium.h_pTX_der \"Derivative function of h_pTX\" @@ -674,7 +674,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // input Real dT(unit = \"K/s\") \"Temperature derivative\"; // input Real[:] dX(unit = \"1/s\") \"Composition derivative\"; // output Real h_der(unit = \"J/(kg.s)\") \"Time derivative of specific enthalpy\"; -// protected Real p_steam_sat(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 100000.0) \"partial saturation pressure of steam\"; +// protected Real p_steam_sat(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 1e5) \"partial saturation pressure of steam\"; // protected Real X_sat(quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0) \"Absolute humidity per unit mass of moist air\"; // protected Real X_liquid(quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0) \"Mass fraction of liquid water\"; // protected Real X_steam(quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0) \"Mass fraction of steam water\"; @@ -689,29 +689,29 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // p_steam_sat := Modelica.Fluid.Examples.BranchingDynamicPipes.boundary4.Medium.saturationPressure(T); // x_sat := p_steam_sat * 0.6219647130774989 / max(1e-13, p - p_steam_sat); // X_sat := min(x_sat * (1.0 - X[1]), 1.0); -// X_liquid := Modelica.Fluid.Examples.BranchingDynamicPipes.boundary4.Medium.Utilities.smoothMax(X[1] - X_sat, 0.0, 1e-05); +// X_liquid := Modelica.Fluid.Examples.BranchingDynamicPipes.boundary4.Medium.Utilities.smoothMax(X[1] - X_sat, 0.0, 1e-5); // X_steam := X[1] - X_liquid; // X_air := 1.0 - X[1]; // dX_air := -dX[1]; // dps := Modelica.Fluid.Examples.BranchingDynamicPipes.boundary4.Medium.saturationPressure_der(T, dT); // dx_sat := 0.6219647130774989 * (dps * (p - p_steam_sat) - p_steam_sat * (dp - dps)) / (p - p_steam_sat) / (p - p_steam_sat); -// dX_liq := Modelica.Fluid.Examples.BranchingDynamicPipes.boundary4.Medium.Utilities.smoothMax_der(X[1] - X_sat, 0.0, 1e-05, (1.0 + x_sat) * dX[1] - (1.0 - X[1]) * dx_sat, 0.0, 0.0); +// dX_liq := Modelica.Fluid.Examples.BranchingDynamicPipes.boundary4.Medium.Utilities.smoothMax_der(X[1] - X_sat, 0.0, 1e-5, (1.0 + x_sat) * dX[1] - (1.0 - X[1]) * dx_sat, 0.0, 0.0); // dX_steam := dX[1] - dX_liq; -// h_der := X_steam * Modelica.Media.IdealGases.Common.Functions.h_Tlow_der(Modelica.Media.IdealGases.Common.DataRecord(\"H2O\", 0.01801528, -13423382.81725291, 549760.6476280135, 1000.0, {-39479.6083, 575.5731019999999, 0.931782653, 0.00722271286, -7.34255737e-06, 4.95504349e-09, -1.336933246e-12}, {-33039.7431, 17.24205775}, {1034972.096, -2412.698562, 4.64611078, 0.002291998307, -6.836830479999999e-07, 9.426468930000001e-11, -4.82238053e-15}, {-13842.86509, -7.97814851}, 461.5233290850878), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 2547494.319, dT) + dX_steam * Modelica.Media.IdealGases.Common.Functions.h_Tlow(Modelica.Media.IdealGases.Common.DataRecord(\"H2O\", 0.01801528, -13423382.81725291, 549760.6476280135, 1000.0, {-39479.6083, 575.5731019999999, 0.931782653, 0.00722271286, -7.34255737e-06, 4.95504349e-09, -1.336933246e-12}, {-33039.7431, 17.24205775}, {1034972.096, -2412.698562, 4.64611078, 0.002291998307, -6.836830479999999e-07, 9.426468930000001e-11, -4.82238053e-15}, {-13842.86509, -7.97814851}, 461.5233290850878), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 2547494.319) + X_air * Modelica.Media.IdealGases.Common.Functions.h_Tlow_der(Modelica.Media.IdealGases.Common.DataRecord(\"Air\", 0.0289651159, -4333.833858403446, 298609.6803431054, 1000.0, {10099.5016, -196.827561, 5.00915511, -0.00576101373, 1.06685993e-05, -7.94029797e-09, 2.18523191e-12}, {-176.796731, -3.921504225}, {241521.443, -1257.8746, 5.14455867, -0.000213854179, 7.06522784e-08, -1.07148349e-11, 6.57780015e-16}, {6462.26319, -8.147411905}, 287.0512249529787), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 25104.684, dT) + dX_air * Modelica.Media.IdealGases.Common.Functions.h_Tlow(Modelica.Media.IdealGases.Common.DataRecord(\"Air\", 0.0289651159, -4333.833858403446, 298609.6803431054, 1000.0, {10099.5016, -196.827561, 5.00915511, -0.00576101373, 1.06685993e-05, -7.94029797e-09, 2.18523191e-12}, {-176.796731, -3.921504225}, {241521.443, -1257.8746, 5.14455867, -0.000213854179, 7.06522784e-08, -1.07148349e-11, 6.57780015e-16}, {6462.26319, -8.147411905}, 287.0512249529787), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 25104.684) + X_liquid * Modelica.Fluid.Examples.BranchingDynamicPipes.boundary4.Medium.enthalpyOfWater_der(T, dT) + dX_liq * Modelica.Fluid.Examples.BranchingDynamicPipes.boundary4.Medium.enthalpyOfWater(T); +// h_der := X_steam * Modelica.Media.IdealGases.Common.Functions.h_Tlow_der(Modelica.Media.IdealGases.Common.DataRecord(\"H2O\", 0.01801528, -1.342338281725291e7, 549760.6476280135, 1000.0, {-39479.6083, 575.573102, 0.931782653, 0.00722271286, -7.34255737e-6, 4.95504349e-9, -1.336933246e-12}, {-33039.7431, 17.24205775}, {1.034972096e6, -2412.698562, 4.64611078, 0.002291998307, -6.836830479999999e-7, 9.426468930000001e-11, -4.82238053e-15}, {-13842.86509, -7.97814851}, 461.5233290850878), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 2.547494319e6, dT) + dX_steam * Modelica.Media.IdealGases.Common.Functions.h_Tlow(Modelica.Media.IdealGases.Common.DataRecord(\"H2O\", 0.01801528, -1.342338281725291e7, 549760.6476280135, 1000.0, {-39479.6083, 575.573102, 0.931782653, 0.00722271286, -7.34255737e-6, 4.95504349e-9, -1.336933246e-12}, {-33039.7431, 17.24205775}, {1.034972096e6, -2412.698562, 4.64611078, 0.002291998307, -6.836830479999999e-7, 9.426468930000001e-11, -4.82238053e-15}, {-13842.86509, -7.97814851}, 461.5233290850878), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 2.547494319e6) + X_air * Modelica.Media.IdealGases.Common.Functions.h_Tlow_der(Modelica.Media.IdealGases.Common.DataRecord(\"Air\", 0.0289651159, -4333.833858403446, 298609.6803431054, 1000.0, {10099.5016, -196.827561, 5.00915511, -0.00576101373, 1.06685993e-5, -7.94029797e-9, 2.18523191e-12}, {-176.796731, -3.921504225}, {241521.443, -1257.8746, 5.14455867, -2.13854179e-4, 7.06522784e-8, -1.07148349e-11, 6.57780015e-16}, {6462.26319, -8.147411905}, 287.0512249529787), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 25104.684, dT) + dX_air * Modelica.Media.IdealGases.Common.Functions.h_Tlow(Modelica.Media.IdealGases.Common.DataRecord(\"Air\", 0.0289651159, -4333.833858403446, 298609.6803431054, 1000.0, {10099.5016, -196.827561, 5.00915511, -0.00576101373, 1.06685993e-5, -7.94029797e-9, 2.18523191e-12}, {-176.796731, -3.921504225}, {241521.443, -1257.8746, 5.14455867, -2.13854179e-4, 7.06522784e-8, -1.07148349e-11, 6.57780015e-16}, {6462.26319, -8.147411905}, 287.0512249529787), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 25104.684) + X_liquid * Modelica.Fluid.Examples.BranchingDynamicPipes.boundary4.Medium.enthalpyOfWater_der(T, dT) + dX_liq * Modelica.Fluid.Examples.BranchingDynamicPipes.boundary4.Medium.enthalpyOfWater(T); // end Modelica.Fluid.Examples.BranchingDynamicPipes.boundary4.Medium.h_pTX_der; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.boundary4.Medium.saturationPressure \"Return saturation pressure of water as a function of temperature T between 190 and 647.096 K\" // input Real Tsat(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Saturation temperature\"; -// output Real psat(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) \"Saturation pressure\"; +// output Real psat(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Saturation pressure\"; // algorithm // psat := Modelica.Fluid.Examples.BranchingDynamicPipes.boundary4.Medium.Utilities.spliceFunction(Modelica.Fluid.Examples.BranchingDynamicPipes.boundary4.Medium.saturationPressureLiquid(Tsat), Modelica.Fluid.Examples.BranchingDynamicPipes.boundary4.Medium.sublimationPressureIce(Tsat), Tsat - 273.16, 1.0); // end Modelica.Fluid.Examples.BranchingDynamicPipes.boundary4.Medium.saturationPressure; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.boundary4.Medium.saturationPressureLiquid \"Return saturation pressure of water as a function of temperature T in the range of 273.16 to 647.096 K\" // input Real Tsat(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) \"Saturation temperature\"; -// output Real psat(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 100000.0) \"Saturation pressure\"; +// output Real psat(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 1e5) \"Saturation pressure\"; // protected Real Tcritical(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) = 647.096 \"Critical temperature\"; -// protected Real pcritical(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 100000.0) = 22064000.0 \"Critical pressure\"; +// protected Real pcritical(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 1e5) = 2.2064e7 \"Critical pressure\"; // protected Real[:] a = {-7.85951783, 1.84408259, -11.7866497, 22.6807411, -15.9618719, 1.80122502} \"Coefficients a[:]\"; // protected Real[:] n = {1.0, 1.5, 3.0, 3.5, 4.0, 7.5} \"Coefficients n[:]\"; // protected Real r1 = 1.0 - Tsat / Tcritical \"Common subexpression\"; @@ -724,7 +724,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // input Real dTsat(unit = \"K/s\") \"Saturation temperature derivative\"; // output Real psat_der(unit = \"Pa/s\") \"Saturation pressure derivative\"; // protected Real Tcritical(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) = 647.096 \"Critical temperature\"; -// protected Real pcritical(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 100000.0) = 22064000.0 \"Critical pressure\"; +// protected Real pcritical(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 1e5) = 2.2064e7 \"Critical pressure\"; // protected Real[:] a = {-7.85951783, 1.84408259, -11.7866497, 22.6807411, -15.9618719, 1.80122502} \"Coefficients a[:]\"; // protected Real[:] n = {1.0, 1.5, 3.0, 3.5, 4.0, 7.5} \"Coefficients n[:]\"; // protected Real r1 = 1.0 - Tsat / Tcritical \"Common subexpression 1\"; @@ -743,7 +743,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // end Modelica.Fluid.Examples.BranchingDynamicPipes.boundary4.Medium.saturationPressure_der; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.boundary4.Medium.setState_pTX \"Return thermodynamic state as function of pressure p, temperature T and composition X\" -// input Real p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) \"Pressure\"; +// input Real p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Pressure\"; // input Real T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature\"; // input Real[:] X(quantity = fill(\"MassFraction\", size(X, 1)), unit = fill(\"kg/kg\", size(X, 1)), min = fill(0.0, size(X, 1)), max = fill(1.0, size(X, 1)), nominal = fill(0.1, size(X, 1))) = {0.01, 0.99} \"Mass fractions\"; // output Modelica.Fluid.Examples.BranchingDynamicPipes.boundary4.Medium.ThermodynamicState state \"Thermodynamic state\"; @@ -752,8 +752,8 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // end Modelica.Fluid.Examples.BranchingDynamicPipes.boundary4.Medium.setState_pTX; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.boundary4.Medium.setState_phX \"Return thermodynamic state as function of pressure p, specific enthalpy h and composition X\" -// input Real p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) \"Pressure\"; -// input Real h(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -10000000000.0, max = 10000000000.0, nominal = 1000000.0) \"Specific enthalpy\"; +// input Real p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Pressure\"; +// input Real h(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -1e10, max = 1e10, nominal = 1e6) \"Specific enthalpy\"; // input Real[:] X(quantity = fill(\"MassFraction\", size(X, 1)), unit = fill(\"kg/kg\", size(X, 1)), min = fill(0.0, size(X, 1)), max = fill(1.0, size(X, 1)), nominal = fill(0.1, size(X, 1))) = {0.01, 0.99} \"Mass fractions\"; // output Modelica.Fluid.Examples.BranchingDynamicPipes.boundary4.Medium.ThermodynamicState state \"Thermodynamic state\"; // algorithm @@ -762,25 +762,25 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // // function Modelica.Fluid.Examples.BranchingDynamicPipes.boundary4.Medium.specificEnthalpy \"Return specific enthalpy of moist air as a function of the thermodynamic state record\" // input Modelica.Fluid.Examples.BranchingDynamicPipes.boundary4.Medium.ThermodynamicState state \"Thermodynamic state record\"; -// output Real h(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -10000000000.0, max = 10000000000.0, nominal = 1000000.0) \"Specific enthalpy\"; +// output Real h(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -1e10, max = 1e10, nominal = 1e6) \"Specific enthalpy\"; // algorithm // h := Modelica.Fluid.Examples.BranchingDynamicPipes.boundary4.Medium.h_pTX(state.p, state.T, state.X); // end Modelica.Fluid.Examples.BranchingDynamicPipes.boundary4.Medium.specificEnthalpy; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.boundary4.Medium.specificEnthalpy_pTX \"Return specific enthalpy from p, T, and X or Xi\" -// input Real p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) \"Pressure\"; +// input Real p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Pressure\"; // input Real T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature\"; // input Real[:] X(quantity = fill(\"MassFraction\", size(X, 1)), unit = fill(\"kg/kg\", size(X, 1)), min = fill(0.0, size(X, 1)), max = fill(1.0, size(X, 1)), nominal = fill(0.1, size(X, 1))) = {0.01, 0.99} \"Mass fractions\"; -// output Real h(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -10000000000.0, max = 10000000000.0, nominal = 1000000.0) \"Specific enthalpy\"; +// output Real h(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -1e10, max = 1e10, nominal = 1e6) \"Specific enthalpy\"; // algorithm // h := Modelica.Fluid.Examples.BranchingDynamicPipes.boundary4.Medium.specificEnthalpy(Modelica.Fluid.Examples.BranchingDynamicPipes.boundary4.Medium.setState_pTX(p, T, X)); // end Modelica.Fluid.Examples.BranchingDynamicPipes.boundary4.Medium.specificEnthalpy_pTX; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.boundary4.Medium.sublimationPressureIce \"Return sublimation pressure of water as a function of temperature T between 190 and 273.16 K\" // input Real Tsat(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) \"Sublimation temperature\"; -// output Real psat(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 100000.0) \"Sublimation pressure\"; +// output Real psat(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 1e5) \"Sublimation pressure\"; // protected Real Ttriple(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) = 273.16 \"Triple point temperature\"; -// protected Real ptriple(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 100000.0) = 611.657 \"Triple point pressure\"; +// protected Real ptriple(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 1e5) = 611.657 \"Triple point pressure\"; // protected Real[:] a = {-13.928169, 34.7078238} \"Coefficients a[:]\"; // protected Real[:] n = {-1.5, -1.25} \"Coefficients n[:]\"; // protected Real r1 = Tsat / Ttriple \"Common subexpression\"; @@ -793,7 +793,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // input Real dTsat(unit = \"K/s\") \"Sublimation temperature derivative\"; // output Real psat_der(unit = \"Pa/s\") \"Sublimation pressure derivative\"; // protected Real Ttriple(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) = 273.16 \"Triple point temperature\"; -// protected Real ptriple(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 100000.0) = 611.657 \"Triple point pressure\"; +// protected Real ptriple(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 1e5) = 611.657 \"Triple point pressure\"; // protected Real[:] a = {-13.928169, 34.7078238} \"Coefficients a[:]\"; // protected Real[:] n = {-1.5, -1.25} \"Coefficients n[:]\"; // protected Real r1 = Tsat / Ttriple \"Common subexpression 1\"; @@ -810,8 +810,8 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // end Modelica.Fluid.Examples.BranchingDynamicPipes.boundary4.Medium.temperature; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.boundary4.Medium.temperature_phX \"Return temperature from p, h, and X or Xi\" -// input Real p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) \"Pressure\"; -// input Real h(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -10000000000.0, max = 10000000000.0, nominal = 1000000.0) \"Specific enthalpy\"; +// input Real p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Pressure\"; +// input Real h(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -1e10, max = 1e10, nominal = 1e6) \"Specific enthalpy\"; // input Real[:] X(quantity = fill(\"MassFraction\", size(X, 1)), unit = fill(\"kg/kg\", size(X, 1)), min = fill(0.0, size(X, 1)), max = fill(1.0, size(X, 1)), nominal = fill(0.1, size(X, 1))) = {0.01, 0.99} \"Mass fractions\"; // output Real T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature\"; // algorithm @@ -819,12 +819,12 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // end Modelica.Fluid.Examples.BranchingDynamicPipes.boundary4.Medium.temperature_phX; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.Medium.T_phX \"Return temperature as a function of pressure p, specific enthalpy h and composition X\" -// input Real p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) \"Pressure\"; -// input Real h(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -10000000000.0, max = 10000000000.0, nominal = 1000000.0) \"Specific enthalpy\"; +// input Real p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Pressure\"; +// input Real h(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -1e10, max = 1e10, nominal = 1e6) \"Specific enthalpy\"; // input Real[:] X(quantity = fill(\"MassFraction\", size(X, 1)), unit = fill(\"kg/kg\", size(X, 1)), min = fill(0.0, size(X, 1)), max = fill(1.0, size(X, 1)), nominal = fill(0.1, size(X, 1))) \"Mass fractions of composition\"; // output Real T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature\"; // algorithm -// T := Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.Medium.T_phX.Internal.solve(h, 190.0, 647.0, p, X[1:1], Modelica.Media.IdealGases.Common.DataRecord(\"H2O\", 0.01801528, -13423382.81725291, 549760.6476280135, 1000.0, {-39479.6083, 575.5731019999999, 0.931782653, 0.00722271286, -7.34255737e-06, 4.95504349e-09, -1.336933246e-12}, {-33039.7431, 17.24205775}, {1034972.096, -2412.698562, 4.64611078, 0.002291998307, -6.836830479999999e-07, 9.426468930000001e-11, -4.82238053e-15}, {-13842.86509, -7.97814851}, 461.5233290850878), 1e-13); +// T := Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.Medium.T_phX.Internal.solve(h, 190.0, 647.0, p, X[1:1], Modelica.Media.IdealGases.Common.DataRecord(\"H2O\", 0.01801528, -1.342338281725291e7, 549760.6476280135, 1000.0, {-39479.6083, 575.573102, 0.931782653, 0.00722271286, -7.34255737e-6, 4.95504349e-9, -1.336933246e-12}, {-33039.7431, 17.24205775}, {1.034972096e6, -2412.698562, 4.64611078, 0.002291998307, -6.836830479999999e-7, 9.426468930000001e-11, -4.82238053e-15}, {-13842.86509, -7.97814851}, 461.5233290850878), 1e-13); // end Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.Medium.T_phX; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.Medium.T_phX.Internal.f_nonlinear @@ -993,7 +993,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // protected Real y; // algorithm // scaledX1 := x / deltax; -// scaledX := scaledX1 * 1.570796326794897; +// scaledX := scaledX1 * 1.5707963267948966; // if scaledX1 <= -0.999999999 then // y := 0.0; // elseif scaledX1 >= 0.999999999 then @@ -1020,7 +1020,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // protected Real y; // algorithm // scaledX1 := x / deltax; -// scaledX := scaledX1 * 1.570796326794897; +// scaledX := scaledX1 * 1.5707963267948966; // dscaledX1 := (dx - scaledX1 * ddeltax) / deltax; // if scaledX1 <= -0.99999999999 then // y := 0.0; @@ -1031,13 +1031,13 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // end if; // out := dpos * y + (1.0 - y) * dneg; // if abs(scaledX1) < 1.0 then -// out := out + (pos - neg) * dscaledX1 * 1.570796326794897 / 2.0 / (cosh(tan(scaledX)) * cos(scaledX)) ^ 2.0; +// out := out + (pos - neg) * dscaledX1 * 1.5707963267948966 / 2.0 / (cosh(tan(scaledX)) * cos(scaledX)) ^ 2.0; // end if; // end Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.Medium.Utilities.spliceFunction_der; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.Medium.density \"Returns density of ideal gas as a function of the thermodynamic state record\" // input Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.Medium.ThermodynamicState state \"Thermodynamic state record\"; -// output Real d(quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0) \"Density\"; +// output Real d(quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0) \"Density\"; // algorithm // d := state.p / (Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.Medium.gasConstant(state) * state.T); // end Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.Medium.density; @@ -1069,7 +1069,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // input Real T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) \"Temperature\"; // input Real[:] X(quantity = fill(\"MassFraction\", size(X, 1)), unit = fill(\"1\", size(X, 1)), min = fill(0.0, size(X, 1)), max = fill(1.0, size(X, 1))) \"Mass fractions of moist air\"; // output Real h(quantity = \"SpecificEnergy\", unit = \"J/kg\") \"Specific enthalpy at p, T, X\"; -// protected Real p_steam_sat(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 100000.0) \"partial saturation pressure of steam\"; +// protected Real p_steam_sat(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 1e5) \"partial saturation pressure of steam\"; // protected Real X_sat(quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0) \"Absolute humidity per unit mass of moist air\"; // protected Real X_liquid(quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0) \"Mass fraction of liquid water\"; // protected Real X_steam(quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0) \"Mass fraction of steam water\"; @@ -1080,7 +1080,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // X_liquid := max(X[1] - X_sat, 0.0); // X_steam := X[1] - X_liquid; // X_air := 1.0 - X[1]; -// h := Modelica.Media.IdealGases.Common.Functions.h_Tlow(Modelica.Media.IdealGases.Common.DataRecord(\"H2O\", 0.01801528, -13423382.81725291, 549760.6476280135, 1000.0, {-39479.6083, 575.5731019999999, 0.931782653, 0.00722271286, -7.34255737e-06, 4.95504349e-09, -1.336933246e-12}, {-33039.7431, 17.24205775}, {1034972.096, -2412.698562, 4.64611078, 0.002291998307, -6.836830479999999e-07, 9.426468930000001e-11, -4.82238053e-15}, {-13842.86509, -7.97814851}, 461.5233290850878), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 2547494.319) * X_steam + Modelica.Media.IdealGases.Common.Functions.h_Tlow(Modelica.Media.IdealGases.Common.DataRecord(\"Air\", 0.0289651159, -4333.833858403446, 298609.6803431054, 1000.0, {10099.5016, -196.827561, 5.00915511, -0.00576101373, 1.06685993e-05, -7.94029797e-09, 2.18523191e-12}, {-176.796731, -3.921504225}, {241521.443, -1257.8746, 5.14455867, -0.000213854179, 7.06522784e-08, -1.07148349e-11, 6.57780015e-16}, {6462.26319, -8.147411905}, 287.0512249529787), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 25104.684) * X_air + Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.Medium.enthalpyOfWater(T) * X_liquid; +// h := Modelica.Media.IdealGases.Common.Functions.h_Tlow(Modelica.Media.IdealGases.Common.DataRecord(\"H2O\", 0.01801528, -1.342338281725291e7, 549760.6476280135, 1000.0, {-39479.6083, 575.573102, 0.931782653, 0.00722271286, -7.34255737e-6, 4.95504349e-9, -1.336933246e-12}, {-33039.7431, 17.24205775}, {1.034972096e6, -2412.698562, 4.64611078, 0.002291998307, -6.836830479999999e-7, 9.426468930000001e-11, -4.82238053e-15}, {-13842.86509, -7.97814851}, 461.5233290850878), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 2.547494319e6) * X_steam + Modelica.Media.IdealGases.Common.Functions.h_Tlow(Modelica.Media.IdealGases.Common.DataRecord(\"Air\", 0.0289651159, -4333.833858403446, 298609.6803431054, 1000.0, {10099.5016, -196.827561, 5.00915511, -0.00576101373, 1.06685993e-5, -7.94029797e-9, 2.18523191e-12}, {-176.796731, -3.921504225}, {241521.443, -1257.8746, 5.14455867, -2.13854179e-4, 7.06522784e-8, -1.07148349e-11, 6.57780015e-16}, {6462.26319, -8.147411905}, 287.0512249529787), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 25104.684) * X_air + Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.Medium.enthalpyOfWater(T) * X_liquid; // end Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.Medium.h_pTX; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.Medium.h_pTX_der \"Derivative function of h_pTX\" @@ -1091,7 +1091,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // input Real dT(unit = \"K/s\") \"Temperature derivative\"; // input Real[:] dX(unit = \"1/s\") \"Composition derivative\"; // output Real h_der(unit = \"J/(kg.s)\") \"Time derivative of specific enthalpy\"; -// protected Real p_steam_sat(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 100000.0) \"partial saturation pressure of steam\"; +// protected Real p_steam_sat(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 1e5) \"partial saturation pressure of steam\"; // protected Real X_sat(quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0) \"Absolute humidity per unit mass of moist air\"; // protected Real X_liquid(quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0) \"Mass fraction of liquid water\"; // protected Real X_steam(quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0) \"Mass fraction of steam water\"; @@ -1106,29 +1106,29 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // p_steam_sat := Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.Medium.saturationPressure(T); // x_sat := p_steam_sat * 0.6219647130774989 / max(1e-13, p - p_steam_sat); // X_sat := min(x_sat * (1.0 - X[1]), 1.0); -// X_liquid := Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.Medium.Utilities.smoothMax(X[1] - X_sat, 0.0, 1e-05); +// X_liquid := Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.Medium.Utilities.smoothMax(X[1] - X_sat, 0.0, 1e-5); // X_steam := X[1] - X_liquid; // X_air := 1.0 - X[1]; // dX_air := -dX[1]; // dps := Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.Medium.saturationPressure_der(T, dT); // dx_sat := 0.6219647130774989 * (dps * (p - p_steam_sat) - p_steam_sat * (dp - dps)) / (p - p_steam_sat) / (p - p_steam_sat); -// dX_liq := Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.Medium.Utilities.smoothMax_der(X[1] - X_sat, 0.0, 1e-05, (1.0 + x_sat) * dX[1] - (1.0 - X[1]) * dx_sat, 0.0, 0.0); +// dX_liq := Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.Medium.Utilities.smoothMax_der(X[1] - X_sat, 0.0, 1e-5, (1.0 + x_sat) * dX[1] - (1.0 - X[1]) * dx_sat, 0.0, 0.0); // dX_steam := dX[1] - dX_liq; -// h_der := X_steam * Modelica.Media.IdealGases.Common.Functions.h_Tlow_der(Modelica.Media.IdealGases.Common.DataRecord(\"H2O\", 0.01801528, -13423382.81725291, 549760.6476280135, 1000.0, {-39479.6083, 575.5731019999999, 0.931782653, 0.00722271286, -7.34255737e-06, 4.95504349e-09, -1.336933246e-12}, {-33039.7431, 17.24205775}, {1034972.096, -2412.698562, 4.64611078, 0.002291998307, -6.836830479999999e-07, 9.426468930000001e-11, -4.82238053e-15}, {-13842.86509, -7.97814851}, 461.5233290850878), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 2547494.319, dT) + dX_steam * Modelica.Media.IdealGases.Common.Functions.h_Tlow(Modelica.Media.IdealGases.Common.DataRecord(\"H2O\", 0.01801528, -13423382.81725291, 549760.6476280135, 1000.0, {-39479.6083, 575.5731019999999, 0.931782653, 0.00722271286, -7.34255737e-06, 4.95504349e-09, -1.336933246e-12}, {-33039.7431, 17.24205775}, {1034972.096, -2412.698562, 4.64611078, 0.002291998307, -6.836830479999999e-07, 9.426468930000001e-11, -4.82238053e-15}, {-13842.86509, -7.97814851}, 461.5233290850878), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 2547494.319) + X_air * Modelica.Media.IdealGases.Common.Functions.h_Tlow_der(Modelica.Media.IdealGases.Common.DataRecord(\"Air\", 0.0289651159, -4333.833858403446, 298609.6803431054, 1000.0, {10099.5016, -196.827561, 5.00915511, -0.00576101373, 1.06685993e-05, -7.94029797e-09, 2.18523191e-12}, {-176.796731, -3.921504225}, {241521.443, -1257.8746, 5.14455867, -0.000213854179, 7.06522784e-08, -1.07148349e-11, 6.57780015e-16}, {6462.26319, -8.147411905}, 287.0512249529787), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 25104.684, dT) + dX_air * Modelica.Media.IdealGases.Common.Functions.h_Tlow(Modelica.Media.IdealGases.Common.DataRecord(\"Air\", 0.0289651159, -4333.833858403446, 298609.6803431054, 1000.0, {10099.5016, -196.827561, 5.00915511, -0.00576101373, 1.06685993e-05, -7.94029797e-09, 2.18523191e-12}, {-176.796731, -3.921504225}, {241521.443, -1257.8746, 5.14455867, -0.000213854179, 7.06522784e-08, -1.07148349e-11, 6.57780015e-16}, {6462.26319, -8.147411905}, 287.0512249529787), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 25104.684) + X_liquid * Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.Medium.enthalpyOfWater_der(T, dT) + dX_liq * Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.Medium.enthalpyOfWater(T); +// h_der := X_steam * Modelica.Media.IdealGases.Common.Functions.h_Tlow_der(Modelica.Media.IdealGases.Common.DataRecord(\"H2O\", 0.01801528, -1.342338281725291e7, 549760.6476280135, 1000.0, {-39479.6083, 575.573102, 0.931782653, 0.00722271286, -7.34255737e-6, 4.95504349e-9, -1.336933246e-12}, {-33039.7431, 17.24205775}, {1.034972096e6, -2412.698562, 4.64611078, 0.002291998307, -6.836830479999999e-7, 9.426468930000001e-11, -4.82238053e-15}, {-13842.86509, -7.97814851}, 461.5233290850878), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 2.547494319e6, dT) + dX_steam * Modelica.Media.IdealGases.Common.Functions.h_Tlow(Modelica.Media.IdealGases.Common.DataRecord(\"H2O\", 0.01801528, -1.342338281725291e7, 549760.6476280135, 1000.0, {-39479.6083, 575.573102, 0.931782653, 0.00722271286, -7.34255737e-6, 4.95504349e-9, -1.336933246e-12}, {-33039.7431, 17.24205775}, {1.034972096e6, -2412.698562, 4.64611078, 0.002291998307, -6.836830479999999e-7, 9.426468930000001e-11, -4.82238053e-15}, {-13842.86509, -7.97814851}, 461.5233290850878), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 2.547494319e6) + X_air * Modelica.Media.IdealGases.Common.Functions.h_Tlow_der(Modelica.Media.IdealGases.Common.DataRecord(\"Air\", 0.0289651159, -4333.833858403446, 298609.6803431054, 1000.0, {10099.5016, -196.827561, 5.00915511, -0.00576101373, 1.06685993e-5, -7.94029797e-9, 2.18523191e-12}, {-176.796731, -3.921504225}, {241521.443, -1257.8746, 5.14455867, -2.13854179e-4, 7.06522784e-8, -1.07148349e-11, 6.57780015e-16}, {6462.26319, -8.147411905}, 287.0512249529787), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 25104.684, dT) + dX_air * Modelica.Media.IdealGases.Common.Functions.h_Tlow(Modelica.Media.IdealGases.Common.DataRecord(\"Air\", 0.0289651159, -4333.833858403446, 298609.6803431054, 1000.0, {10099.5016, -196.827561, 5.00915511, -0.00576101373, 1.06685993e-5, -7.94029797e-9, 2.18523191e-12}, {-176.796731, -3.921504225}, {241521.443, -1257.8746, 5.14455867, -2.13854179e-4, 7.06522784e-8, -1.07148349e-11, 6.57780015e-16}, {6462.26319, -8.147411905}, 287.0512249529787), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 25104.684) + X_liquid * Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.Medium.enthalpyOfWater_der(T, dT) + dX_liq * Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.Medium.enthalpyOfWater(T); // end Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.Medium.h_pTX_der; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.Medium.saturationPressure \"Return saturation pressure of water as a function of temperature T between 190 and 647.096 K\" // input Real Tsat(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Saturation temperature\"; -// output Real psat(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) \"Saturation pressure\"; +// output Real psat(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Saturation pressure\"; // algorithm // psat := Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.Medium.Utilities.spliceFunction(Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.Medium.saturationPressureLiquid(Tsat), Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.Medium.sublimationPressureIce(Tsat), Tsat - 273.16, 1.0); // end Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.Medium.saturationPressure; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.Medium.saturationPressureLiquid \"Return saturation pressure of water as a function of temperature T in the range of 273.16 to 647.096 K\" // input Real Tsat(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) \"Saturation temperature\"; -// output Real psat(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 100000.0) \"Saturation pressure\"; +// output Real psat(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 1e5) \"Saturation pressure\"; // protected Real Tcritical(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) = 647.096 \"Critical temperature\"; -// protected Real pcritical(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 100000.0) = 22064000.0 \"Critical pressure\"; +// protected Real pcritical(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 1e5) = 2.2064e7 \"Critical pressure\"; // protected Real[:] a = {-7.85951783, 1.84408259, -11.7866497, 22.6807411, -15.9618719, 1.80122502} \"Coefficients a[:]\"; // protected Real[:] n = {1.0, 1.5, 3.0, 3.5, 4.0, 7.5} \"Coefficients n[:]\"; // protected Real r1 = 1.0 - Tsat / Tcritical \"Common subexpression\"; @@ -1141,7 +1141,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // input Real dTsat(unit = \"K/s\") \"Saturation temperature derivative\"; // output Real psat_der(unit = \"Pa/s\") \"Saturation pressure derivative\"; // protected Real Tcritical(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) = 647.096 \"Critical temperature\"; -// protected Real pcritical(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 100000.0) = 22064000.0 \"Critical pressure\"; +// protected Real pcritical(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 1e5) = 2.2064e7 \"Critical pressure\"; // protected Real[:] a = {-7.85951783, 1.84408259, -11.7866497, 22.6807411, -15.9618719, 1.80122502} \"Coefficients a[:]\"; // protected Real[:] n = {1.0, 1.5, 3.0, 3.5, 4.0, 7.5} \"Coefficients n[:]\"; // protected Real r1 = 1.0 - Tsat / Tcritical \"Common subexpression 1\"; @@ -1160,7 +1160,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // end Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.Medium.saturationPressure_der; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.Medium.setState_pTX \"Return thermodynamic state as function of pressure p, temperature T and composition X\" -// input Real p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) \"Pressure\"; +// input Real p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Pressure\"; // input Real T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature\"; // input Real[:] X(quantity = fill(\"MassFraction\", size(X, 1)), unit = fill(\"kg/kg\", size(X, 1)), min = fill(0.0, size(X, 1)), max = fill(1.0, size(X, 1)), nominal = fill(0.1, size(X, 1))) = {0.01, 0.99} \"Mass fractions\"; // output Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.Medium.ThermodynamicState state \"Thermodynamic state\"; @@ -1169,8 +1169,8 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // end Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.Medium.setState_pTX; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.Medium.setState_phX \"Return thermodynamic state as function of pressure p, specific enthalpy h and composition X\" -// input Real p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) \"Pressure\"; -// input Real h(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -10000000000.0, max = 10000000000.0, nominal = 1000000.0) \"Specific enthalpy\"; +// input Real p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Pressure\"; +// input Real h(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -1e10, max = 1e10, nominal = 1e6) \"Specific enthalpy\"; // input Real[:] X(quantity = fill(\"MassFraction\", size(X, 1)), unit = fill(\"kg/kg\", size(X, 1)), min = fill(0.0, size(X, 1)), max = fill(1.0, size(X, 1)), nominal = fill(0.1, size(X, 1))) = {0.01, 0.99} \"Mass fractions\"; // output Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.Medium.ThermodynamicState state \"Thermodynamic state\"; // algorithm @@ -1179,25 +1179,25 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // // function Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.Medium.specificEnthalpy \"Return specific enthalpy of moist air as a function of the thermodynamic state record\" // input Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.Medium.ThermodynamicState state \"Thermodynamic state record\"; -// output Real h(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -10000000000.0, max = 10000000000.0, nominal = 1000000.0) \"Specific enthalpy\"; +// output Real h(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -1e10, max = 1e10, nominal = 1e6) \"Specific enthalpy\"; // algorithm // h := Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.Medium.h_pTX(state.p, state.T, state.X); // end Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.Medium.specificEnthalpy; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.Medium.specificEnthalpy_pTX \"Return specific enthalpy from p, T, and X or Xi\" -// input Real p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) \"Pressure\"; +// input Real p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Pressure\"; // input Real T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature\"; // input Real[:] X(quantity = fill(\"MassFraction\", size(X, 1)), unit = fill(\"kg/kg\", size(X, 1)), min = fill(0.0, size(X, 1)), max = fill(1.0, size(X, 1)), nominal = fill(0.1, size(X, 1))) = {0.01, 0.99} \"Mass fractions\"; -// output Real h(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -10000000000.0, max = 10000000000.0, nominal = 1000000.0) \"Specific enthalpy\"; +// output Real h(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -1e10, max = 1e10, nominal = 1e6) \"Specific enthalpy\"; // algorithm // h := Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.Medium.specificEnthalpy(Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.Medium.setState_pTX(p, T, X)); // end Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.Medium.specificEnthalpy_pTX; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.Medium.sublimationPressureIce \"Return sublimation pressure of water as a function of temperature T between 190 and 273.16 K\" // input Real Tsat(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) \"Sublimation temperature\"; -// output Real psat(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 100000.0) \"Sublimation pressure\"; +// output Real psat(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 1e5) \"Sublimation pressure\"; // protected Real Ttriple(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) = 273.16 \"Triple point temperature\"; -// protected Real ptriple(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 100000.0) = 611.657 \"Triple point pressure\"; +// protected Real ptriple(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 1e5) = 611.657 \"Triple point pressure\"; // protected Real[:] a = {-13.928169, 34.7078238} \"Coefficients a[:]\"; // protected Real[:] n = {-1.5, -1.25} \"Coefficients n[:]\"; // protected Real r1 = Tsat / Ttriple \"Common subexpression\"; @@ -1210,7 +1210,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // input Real dTsat(unit = \"K/s\") \"Sublimation temperature derivative\"; // output Real psat_der(unit = \"Pa/s\") \"Sublimation pressure derivative\"; // protected Real Ttriple(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) = 273.16 \"Triple point temperature\"; -// protected Real ptriple(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 100000.0) = 611.657 \"Triple point pressure\"; +// protected Real ptriple(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 1e5) = 611.657 \"Triple point pressure\"; // protected Real[:] a = {-13.928169, 34.7078238} \"Coefficients a[:]\"; // protected Real[:] n = {-1.5, -1.25} \"Coefficients n[:]\"; // protected Real r1 = Tsat / Ttriple \"Common subexpression 1\"; @@ -1227,8 +1227,8 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // end Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.Medium.temperature; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.Medium.temperature_phX \"Return temperature from p, h, and X or Xi\" -// input Real p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) \"Pressure\"; -// input Real h(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -10000000000.0, max = 10000000000.0, nominal = 1000000.0) \"Specific enthalpy\"; +// input Real p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Pressure\"; +// input Real h(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -1e10, max = 1e10, nominal = 1e6) \"Specific enthalpy\"; // input Real[:] X(quantity = fill(\"MassFraction\", size(X, 1)), unit = fill(\"kg/kg\", size(X, 1)), min = fill(0.0, size(X, 1)), max = fill(1.0, size(X, 1)), nominal = fill(0.1, size(X, 1))) = {0.01, 0.99} \"Mass fractions\"; // output Real T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature\"; // algorithm @@ -1244,16 +1244,16 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // // function Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.flowModel.Medium.density \"Returns density of ideal gas as a function of the thermodynamic state record\" // input Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.flowModel.Medium.ThermodynamicState state \"Thermodynamic state record\"; -// output Real d(quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0) \"Density\"; +// output Real d(quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0) \"Density\"; // algorithm // d := state.p / (Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.flowModel.Medium.gasConstant(state) * state.T); // end Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.flowModel.Medium.density; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.flowModel.Medium.dynamicViscosity \"Return dynamic viscosity as a function of the thermodynamic state record, valid from 123.15 K to 1273.15 K\" // input Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.flowModel.Medium.ThermodynamicState state \"Thermodynamic state record\"; -// output Real eta(quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 100000000.0, start = 0.001, nominal = 0.001) \"Dynamic viscosity\"; +// output Real eta(quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 1e8, start = 0.001, nominal = 0.001) \"Dynamic viscosity\"; // algorithm -// eta := 1e-06 * Modelica.Media.Incompressible.TableBased.Polynomials_Temp.evaluateWithRange({9.739110288630587e-15, -3.135372487033391e-11, 4.300487659564222e-08, -3.822801629175824e-05, 0.05042787436718076, 17.23926013924253}, -150.0, 1000.0, Modelica.SIunits.Conversions.to_degC(state.T)); +// eta := 1e-6 * Modelica.Media.Incompressible.TableBased.Polynomials_Temp.evaluateWithRange({9.739110288630587e-15, -3.1353724870333906e-11, 4.3004876595642225e-8, -3.822801629175824e-5, 0.05042787436718076, 17.23926013924253}, -149.99999999999997, 1000.0000000000001, Modelica.SIunits.Conversions.to_degC(state.T)); // end Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.flowModel.Medium.dynamicViscosity; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.flowModel.Medium.gasConstant \"Return ideal gas constant as a function from thermodynamic state, only valid for phi<1\" @@ -1265,7 +1265,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // // function Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.flowModel.Medium.pressure \"Returns pressure of ideal gas as a function of the thermodynamic state record\" // input Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.flowModel.Medium.ThermodynamicState state \"Thermodynamic state record\"; -// output Real p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) \"Pressure\"; +// output Real p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Pressure\"; // algorithm // p := state.p; // end Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.flowModel.Medium.pressure; @@ -1306,7 +1306,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // if Re > Re1 then // Re := -2.0 * sqrt(lambda2) * log10(2.51 / sqrt(lambda2) + 0.27 * Delta) \"Colebrook-White\"; // aux2 := sqrt(aux1 * abs(dp_fric)); -// dRe_ddp := 0.4342944819032518 * ((-2.0 * log(2.51 / aux2 + 0.27 * Delta) * aux1 / (2.0 * aux2)) + 5.02 / (2.0 * abs(dp_fric) * (2.51 / aux2 + 0.27 * Delta))); +// dRe_ddp := 0.43429448190325176 * ((-2.0 * log(2.51 / aux2 + 0.27 * Delta) * aux1 / (2.0 * aux2)) + 5.02 / (2.0 * abs(dp_fric) * (2.51 / aux2 + 0.27 * Delta))); // if Re < Re2 then // (Re, dRe_ddp) := Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.flowModel.WallFriction.Internal.m_flow_of_dp_fric.interpolateInRegion2_withDerivative(lambda2, Re1, Re2, Delta, dp_fric); // end if; @@ -1336,7 +1336,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // protected Real x2 = log10(L2); // protected Real aux5 = -2.0 * sqrt(L2) * log10(aux4); // protected Real y2 = log10(aux5); -// protected Real y2d = 0.5 + 1.090079149577162 / (aux5 * aux4); +// protected Real y2d = 0.5 + 1.0900791495771618 / (aux5 * aux4); // algorithm // (y, dy_dx) := Modelica.Fluid.Utilities.cubicHermite_withDerivative(x, x1, x2, y1, y2, y1d, y2d); // Re := 10.0 ^ y; @@ -1353,8 +1353,8 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // input Real diameter(quantity = \"Length\", unit = \"m\", min = 0.0) \"Inner (hydraulic) diameter of pipe\"; // input Real g_times_height_ab(unit = \"m2/s2\") \"Gravity times (Height(port_b) - Height(port_a))\"; // input Real crossArea(quantity = \"Area\", unit = \"m2\") = 3.141592653589793 * diameter ^ 2.0 / 4.0 \"Inner cross section area\"; -// input Real roughness(quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) = 2.5e-05 \"Absolute roughness of pipe, with a default for a smooth steel pipe (dummy if use_roughness = false)\"; -// input Real dp_small(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 100000.0) = 1.0 \"Regularization of zero flow if |dp| < dp_small (dummy if use_dp_small = false)\"; +// input Real roughness(quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) = 2.5e-5 \"Absolute roughness of pipe, with a default for a smooth steel pipe (dummy if use_roughness = false)\"; +// input Real dp_small(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 1e5) = 1.0 \"Regularization of zero flow if |dp| < dp_small (dummy if use_dp_small = false)\"; // input Real Re_turbulent(quantity = \"ReynoldsNumber\", unit = \"1\") = 4000.0 \"Turbulent flow if Re >= Re_turbulent (dummy if use_Re_turbulent = false)\"; // output Real m_flow(quantity = \"MassFlowRate\", unit = \"kg/s\") \"Mass flow rate from port_a to port_b\"; // protected Real Delta(min = 0.0) = roughness / diameter \"Relative roughness\"; @@ -1400,7 +1400,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // input Real length(quantity = \"Length\", unit = \"m\") \"Length of pipe\"; // input Real diameter(quantity = \"Length\", unit = \"m\", min = 0.0) \"Inner (hydraulic) diameter of pipe\"; // input Real crossArea(quantity = \"Area\", unit = \"m2\") = 3.141592653589793 * diameter ^ 2.0 / 4.0 \"Inner cross section area\"; -// input Real roughness(quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) = 2.5e-05 \"Absolute roughness of pipe, with a default for a smooth steel pipe (dummy if use_roughness = false)\"; +// input Real roughness(quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) = 2.5e-5 \"Absolute roughness of pipe, with a default for a smooth steel pipe (dummy if use_roughness = false)\"; // input Real m_flow_small(quantity = \"MassFlowRate\", unit = \"kg/s\") = 0.01 \"Regularization of zero flow if |m_flow| < m_flow_small (dummy if use_m_flow_small = false)\"; // input Real Re_turbulent(quantity = \"ReynoldsNumber\", unit = \"1\") = 4000.0 \"Turbulent flow if Re >= Re_turbulent (dummy if use_Re_turbulent = false)\"; // output Real dp(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\") \"Pressure loss (dp = port_a.p - port_b.p)\"; @@ -1428,7 +1428,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // protected Real x1 = log10(Re1); // protected Real y1 = log10(64.0 * Re1); // protected Real yd1 = 1.0; -// protected Real aux1 = 1.121782646756099; +// protected Real aux1 = 1.1217826467560994; // protected Real aux2 = Delta / 3.7 + 5.74 / Re2 ^ 0.9; // protected Real x2 = log10(Re2); // protected Real dx; @@ -1462,12 +1462,12 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // end Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.heatTransfer.Medium.temperature; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.Medium.T_phX \"Return temperature as a function of pressure p, specific enthalpy h and composition X\" -// input Real p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) \"Pressure\"; -// input Real h(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -10000000000.0, max = 10000000000.0, nominal = 1000000.0) \"Specific enthalpy\"; +// input Real p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Pressure\"; +// input Real h(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -1e10, max = 1e10, nominal = 1e6) \"Specific enthalpy\"; // input Real[:] X(quantity = fill(\"MassFraction\", size(X, 1)), unit = fill(\"kg/kg\", size(X, 1)), min = fill(0.0, size(X, 1)), max = fill(1.0, size(X, 1)), nominal = fill(0.1, size(X, 1))) \"Mass fractions of composition\"; // output Real T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature\"; // algorithm -// T := Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.Medium.T_phX.Internal.solve(h, 190.0, 647.0, p, X[1:1], Modelica.Media.IdealGases.Common.DataRecord(\"H2O\", 0.01801528, -13423382.81725291, 549760.6476280135, 1000.0, {-39479.6083, 575.5731019999999, 0.931782653, 0.00722271286, -7.34255737e-06, 4.95504349e-09, -1.336933246e-12}, {-33039.7431, 17.24205775}, {1034972.096, -2412.698562, 4.64611078, 0.002291998307, -6.836830479999999e-07, 9.426468930000001e-11, -4.82238053e-15}, {-13842.86509, -7.97814851}, 461.5233290850878), 1e-13); +// T := Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.Medium.T_phX.Internal.solve(h, 190.0, 647.0, p, X[1:1], Modelica.Media.IdealGases.Common.DataRecord(\"H2O\", 0.01801528, -1.342338281725291e7, 549760.6476280135, 1000.0, {-39479.6083, 575.573102, 0.931782653, 0.00722271286, -7.34255737e-6, 4.95504349e-9, -1.336933246e-12}, {-33039.7431, 17.24205775}, {1.034972096e6, -2412.698562, 4.64611078, 0.002291998307, -6.836830479999999e-7, 9.426468930000001e-11, -4.82238053e-15}, {-13842.86509, -7.97814851}, 461.5233290850878), 1e-13); // end Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.Medium.T_phX; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.Medium.T_phX.Internal.f_nonlinear @@ -1636,7 +1636,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // protected Real y; // algorithm // scaledX1 := x / deltax; -// scaledX := scaledX1 * 1.570796326794897; +// scaledX := scaledX1 * 1.5707963267948966; // if scaledX1 <= -0.999999999 then // y := 0.0; // elseif scaledX1 >= 0.999999999 then @@ -1663,7 +1663,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // protected Real y; // algorithm // scaledX1 := x / deltax; -// scaledX := scaledX1 * 1.570796326794897; +// scaledX := scaledX1 * 1.5707963267948966; // dscaledX1 := (dx - scaledX1 * ddeltax) / deltax; // if scaledX1 <= -0.99999999999 then // y := 0.0; @@ -1674,7 +1674,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // end if; // out := dpos * y + (1.0 - y) * dneg; // if abs(scaledX1) < 1.0 then -// out := out + (pos - neg) * dscaledX1 * 1.570796326794897 / 2.0 / (cosh(tan(scaledX)) * cos(scaledX)) ^ 2.0; +// out := out + (pos - neg) * dscaledX1 * 1.5707963267948966 / 2.0 / (cosh(tan(scaledX)) * cos(scaledX)) ^ 2.0; // end if; // end Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.Medium.Utilities.spliceFunction_der; // @@ -1698,7 +1698,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // input Real T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) \"Temperature\"; // input Real[:] X(quantity = fill(\"MassFraction\", size(X, 1)), unit = fill(\"1\", size(X, 1)), min = fill(0.0, size(X, 1)), max = fill(1.0, size(X, 1))) \"Mass fractions of moist air\"; // output Real h(quantity = \"SpecificEnergy\", unit = \"J/kg\") \"Specific enthalpy at p, T, X\"; -// protected Real p_steam_sat(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 100000.0) \"partial saturation pressure of steam\"; +// protected Real p_steam_sat(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 1e5) \"partial saturation pressure of steam\"; // protected Real X_sat(quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0) \"Absolute humidity per unit mass of moist air\"; // protected Real X_liquid(quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0) \"Mass fraction of liquid water\"; // protected Real X_steam(quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0) \"Mass fraction of steam water\"; @@ -1709,7 +1709,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // X_liquid := max(X[1] - X_sat, 0.0); // X_steam := X[1] - X_liquid; // X_air := 1.0 - X[1]; -// h := Modelica.Media.IdealGases.Common.Functions.h_Tlow(Modelica.Media.IdealGases.Common.DataRecord(\"H2O\", 0.01801528, -13423382.81725291, 549760.6476280135, 1000.0, {-39479.6083, 575.5731019999999, 0.931782653, 0.00722271286, -7.34255737e-06, 4.95504349e-09, -1.336933246e-12}, {-33039.7431, 17.24205775}, {1034972.096, -2412.698562, 4.64611078, 0.002291998307, -6.836830479999999e-07, 9.426468930000001e-11, -4.82238053e-15}, {-13842.86509, -7.97814851}, 461.5233290850878), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 2547494.319) * X_steam + Modelica.Media.IdealGases.Common.Functions.h_Tlow(Modelica.Media.IdealGases.Common.DataRecord(\"Air\", 0.0289651159, -4333.833858403446, 298609.6803431054, 1000.0, {10099.5016, -196.827561, 5.00915511, -0.00576101373, 1.06685993e-05, -7.94029797e-09, 2.18523191e-12}, {-176.796731, -3.921504225}, {241521.443, -1257.8746, 5.14455867, -0.000213854179, 7.06522784e-08, -1.07148349e-11, 6.57780015e-16}, {6462.26319, -8.147411905}, 287.0512249529787), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 25104.684) * X_air + Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.Medium.enthalpyOfWater(T) * X_liquid; +// h := Modelica.Media.IdealGases.Common.Functions.h_Tlow(Modelica.Media.IdealGases.Common.DataRecord(\"H2O\", 0.01801528, -1.342338281725291e7, 549760.6476280135, 1000.0, {-39479.6083, 575.573102, 0.931782653, 0.00722271286, -7.34255737e-6, 4.95504349e-9, -1.336933246e-12}, {-33039.7431, 17.24205775}, {1.034972096e6, -2412.698562, 4.64611078, 0.002291998307, -6.836830479999999e-7, 9.426468930000001e-11, -4.82238053e-15}, {-13842.86509, -7.97814851}, 461.5233290850878), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 2.547494319e6) * X_steam + Modelica.Media.IdealGases.Common.Functions.h_Tlow(Modelica.Media.IdealGases.Common.DataRecord(\"Air\", 0.0289651159, -4333.833858403446, 298609.6803431054, 1000.0, {10099.5016, -196.827561, 5.00915511, -0.00576101373, 1.06685993e-5, -7.94029797e-9, 2.18523191e-12}, {-176.796731, -3.921504225}, {241521.443, -1257.8746, 5.14455867, -2.13854179e-4, 7.06522784e-8, -1.07148349e-11, 6.57780015e-16}, {6462.26319, -8.147411905}, 287.0512249529787), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 25104.684) * X_air + Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.Medium.enthalpyOfWater(T) * X_liquid; // end Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.Medium.h_pTX; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.Medium.h_pTX_der \"Derivative function of h_pTX\" @@ -1720,7 +1720,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // input Real dT(unit = \"K/s\") \"Temperature derivative\"; // input Real[:] dX(unit = \"1/s\") \"Composition derivative\"; // output Real h_der(unit = \"J/(kg.s)\") \"Time derivative of specific enthalpy\"; -// protected Real p_steam_sat(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 100000.0) \"partial saturation pressure of steam\"; +// protected Real p_steam_sat(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 1e5) \"partial saturation pressure of steam\"; // protected Real X_sat(quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0) \"Absolute humidity per unit mass of moist air\"; // protected Real X_liquid(quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0) \"Mass fraction of liquid water\"; // protected Real X_steam(quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0) \"Mass fraction of steam water\"; @@ -1735,29 +1735,29 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // p_steam_sat := Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.Medium.saturationPressure(T); // x_sat := p_steam_sat * 0.6219647130774989 / max(1e-13, p - p_steam_sat); // X_sat := min(x_sat * (1.0 - X[1]), 1.0); -// X_liquid := Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.Medium.Utilities.smoothMax(X[1] - X_sat, 0.0, 1e-05); +// X_liquid := Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.Medium.Utilities.smoothMax(X[1] - X_sat, 0.0, 1e-5); // X_steam := X[1] - X_liquid; // X_air := 1.0 - X[1]; // dX_air := -dX[1]; // dps := Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.Medium.saturationPressure_der(T, dT); // dx_sat := 0.6219647130774989 * (dps * (p - p_steam_sat) - p_steam_sat * (dp - dps)) / (p - p_steam_sat) / (p - p_steam_sat); -// dX_liq := Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.Medium.Utilities.smoothMax_der(X[1] - X_sat, 0.0, 1e-05, (1.0 + x_sat) * dX[1] - (1.0 - X[1]) * dx_sat, 0.0, 0.0); +// dX_liq := Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.Medium.Utilities.smoothMax_der(X[1] - X_sat, 0.0, 1e-5, (1.0 + x_sat) * dX[1] - (1.0 - X[1]) * dx_sat, 0.0, 0.0); // dX_steam := dX[1] - dX_liq; -// h_der := X_steam * Modelica.Media.IdealGases.Common.Functions.h_Tlow_der(Modelica.Media.IdealGases.Common.DataRecord(\"H2O\", 0.01801528, -13423382.81725291, 549760.6476280135, 1000.0, {-39479.6083, 575.5731019999999, 0.931782653, 0.00722271286, -7.34255737e-06, 4.95504349e-09, -1.336933246e-12}, {-33039.7431, 17.24205775}, {1034972.096, -2412.698562, 4.64611078, 0.002291998307, -6.836830479999999e-07, 9.426468930000001e-11, -4.82238053e-15}, {-13842.86509, -7.97814851}, 461.5233290850878), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 2547494.319, dT) + dX_steam * Modelica.Media.IdealGases.Common.Functions.h_Tlow(Modelica.Media.IdealGases.Common.DataRecord(\"H2O\", 0.01801528, -13423382.81725291, 549760.6476280135, 1000.0, {-39479.6083, 575.5731019999999, 0.931782653, 0.00722271286, -7.34255737e-06, 4.95504349e-09, -1.336933246e-12}, {-33039.7431, 17.24205775}, {1034972.096, -2412.698562, 4.64611078, 0.002291998307, -6.836830479999999e-07, 9.426468930000001e-11, -4.82238053e-15}, {-13842.86509, -7.97814851}, 461.5233290850878), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 2547494.319) + X_air * Modelica.Media.IdealGases.Common.Functions.h_Tlow_der(Modelica.Media.IdealGases.Common.DataRecord(\"Air\", 0.0289651159, -4333.833858403446, 298609.6803431054, 1000.0, {10099.5016, -196.827561, 5.00915511, -0.00576101373, 1.06685993e-05, -7.94029797e-09, 2.18523191e-12}, {-176.796731, -3.921504225}, {241521.443, -1257.8746, 5.14455867, -0.000213854179, 7.06522784e-08, -1.07148349e-11, 6.57780015e-16}, {6462.26319, -8.147411905}, 287.0512249529787), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 25104.684, dT) + dX_air * Modelica.Media.IdealGases.Common.Functions.h_Tlow(Modelica.Media.IdealGases.Common.DataRecord(\"Air\", 0.0289651159, -4333.833858403446, 298609.6803431054, 1000.0, {10099.5016, -196.827561, 5.00915511, -0.00576101373, 1.06685993e-05, -7.94029797e-09, 2.18523191e-12}, {-176.796731, -3.921504225}, {241521.443, -1257.8746, 5.14455867, -0.000213854179, 7.06522784e-08, -1.07148349e-11, 6.57780015e-16}, {6462.26319, -8.147411905}, 287.0512249529787), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 25104.684) + X_liquid * Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.Medium.enthalpyOfWater_der(T, dT) + dX_liq * Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.Medium.enthalpyOfWater(T); +// h_der := X_steam * Modelica.Media.IdealGases.Common.Functions.h_Tlow_der(Modelica.Media.IdealGases.Common.DataRecord(\"H2O\", 0.01801528, -1.342338281725291e7, 549760.6476280135, 1000.0, {-39479.6083, 575.573102, 0.931782653, 0.00722271286, -7.34255737e-6, 4.95504349e-9, -1.336933246e-12}, {-33039.7431, 17.24205775}, {1.034972096e6, -2412.698562, 4.64611078, 0.002291998307, -6.836830479999999e-7, 9.426468930000001e-11, -4.82238053e-15}, {-13842.86509, -7.97814851}, 461.5233290850878), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 2.547494319e6, dT) + dX_steam * Modelica.Media.IdealGases.Common.Functions.h_Tlow(Modelica.Media.IdealGases.Common.DataRecord(\"H2O\", 0.01801528, -1.342338281725291e7, 549760.6476280135, 1000.0, {-39479.6083, 575.573102, 0.931782653, 0.00722271286, -7.34255737e-6, 4.95504349e-9, -1.336933246e-12}, {-33039.7431, 17.24205775}, {1.034972096e6, -2412.698562, 4.64611078, 0.002291998307, -6.836830479999999e-7, 9.426468930000001e-11, -4.82238053e-15}, {-13842.86509, -7.97814851}, 461.5233290850878), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 2.547494319e6) + X_air * Modelica.Media.IdealGases.Common.Functions.h_Tlow_der(Modelica.Media.IdealGases.Common.DataRecord(\"Air\", 0.0289651159, -4333.833858403446, 298609.6803431054, 1000.0, {10099.5016, -196.827561, 5.00915511, -0.00576101373, 1.06685993e-5, -7.94029797e-9, 2.18523191e-12}, {-176.796731, -3.921504225}, {241521.443, -1257.8746, 5.14455867, -2.13854179e-4, 7.06522784e-8, -1.07148349e-11, 6.57780015e-16}, {6462.26319, -8.147411905}, 287.0512249529787), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 25104.684, dT) + dX_air * Modelica.Media.IdealGases.Common.Functions.h_Tlow(Modelica.Media.IdealGases.Common.DataRecord(\"Air\", 0.0289651159, -4333.833858403446, 298609.6803431054, 1000.0, {10099.5016, -196.827561, 5.00915511, -0.00576101373, 1.06685993e-5, -7.94029797e-9, 2.18523191e-12}, {-176.796731, -3.921504225}, {241521.443, -1257.8746, 5.14455867, -2.13854179e-4, 7.06522784e-8, -1.07148349e-11, 6.57780015e-16}, {6462.26319, -8.147411905}, 287.0512249529787), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 25104.684) + X_liquid * Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.Medium.enthalpyOfWater_der(T, dT) + dX_liq * Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.Medium.enthalpyOfWater(T); // end Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.Medium.h_pTX_der; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.Medium.saturationPressure \"Return saturation pressure of water as a function of temperature T between 190 and 647.096 K\" // input Real Tsat(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Saturation temperature\"; -// output Real psat(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) \"Saturation pressure\"; +// output Real psat(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Saturation pressure\"; // algorithm // psat := Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.Medium.Utilities.spliceFunction(Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.Medium.saturationPressureLiquid(Tsat), Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.Medium.sublimationPressureIce(Tsat), Tsat - 273.16, 1.0); // end Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.Medium.saturationPressure; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.Medium.saturationPressureLiquid \"Return saturation pressure of water as a function of temperature T in the range of 273.16 to 647.096 K\" // input Real Tsat(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) \"Saturation temperature\"; -// output Real psat(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 100000.0) \"Saturation pressure\"; +// output Real psat(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 1e5) \"Saturation pressure\"; // protected Real Tcritical(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) = 647.096 \"Critical temperature\"; -// protected Real pcritical(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 100000.0) = 22064000.0 \"Critical pressure\"; +// protected Real pcritical(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 1e5) = 2.2064e7 \"Critical pressure\"; // protected Real[:] a = {-7.85951783, 1.84408259, -11.7866497, 22.6807411, -15.9618719, 1.80122502} \"Coefficients a[:]\"; // protected Real[:] n = {1.0, 1.5, 3.0, 3.5, 4.0, 7.5} \"Coefficients n[:]\"; // protected Real r1 = 1.0 - Tsat / Tcritical \"Common subexpression\"; @@ -1770,7 +1770,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // input Real dTsat(unit = \"K/s\") \"Saturation temperature derivative\"; // output Real psat_der(unit = \"Pa/s\") \"Saturation pressure derivative\"; // protected Real Tcritical(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) = 647.096 \"Critical temperature\"; -// protected Real pcritical(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 100000.0) = 22064000.0 \"Critical pressure\"; +// protected Real pcritical(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 1e5) = 2.2064e7 \"Critical pressure\"; // protected Real[:] a = {-7.85951783, 1.84408259, -11.7866497, 22.6807411, -15.9618719, 1.80122502} \"Coefficients a[:]\"; // protected Real[:] n = {1.0, 1.5, 3.0, 3.5, 4.0, 7.5} \"Coefficients n[:]\"; // protected Real r1 = 1.0 - Tsat / Tcritical \"Common subexpression 1\"; @@ -1789,7 +1789,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // end Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.Medium.saturationPressure_der; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.Medium.setState_pTX \"Return thermodynamic state as function of pressure p, temperature T and composition X\" -// input Real p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) \"Pressure\"; +// input Real p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Pressure\"; // input Real T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature\"; // input Real[:] X(quantity = fill(\"MassFraction\", size(X, 1)), unit = fill(\"kg/kg\", size(X, 1)), min = fill(0.0, size(X, 1)), max = fill(1.0, size(X, 1)), nominal = fill(0.1, size(X, 1))) = {0.01, 0.99} \"Mass fractions\"; // output Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.Medium.ThermodynamicState state \"Thermodynamic state\"; @@ -1798,8 +1798,8 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // end Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.Medium.setState_pTX; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.Medium.setState_phX \"Return thermodynamic state as function of pressure p, specific enthalpy h and composition X\" -// input Real p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) \"Pressure\"; -// input Real h(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -10000000000.0, max = 10000000000.0, nominal = 1000000.0) \"Specific enthalpy\"; +// input Real p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Pressure\"; +// input Real h(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -1e10, max = 1e10, nominal = 1e6) \"Specific enthalpy\"; // input Real[:] X(quantity = fill(\"MassFraction\", size(X, 1)), unit = fill(\"kg/kg\", size(X, 1)), min = fill(0.0, size(X, 1)), max = fill(1.0, size(X, 1)), nominal = fill(0.1, size(X, 1))) = {0.01, 0.99} \"Mass fractions\"; // output Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.Medium.ThermodynamicState state \"Thermodynamic state\"; // algorithm @@ -1808,25 +1808,25 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // // function Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.Medium.specificEnthalpy \"Return specific enthalpy of moist air as a function of the thermodynamic state record\" // input Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.Medium.ThermodynamicState state \"Thermodynamic state record\"; -// output Real h(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -10000000000.0, max = 10000000000.0, nominal = 1000000.0) \"Specific enthalpy\"; +// output Real h(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -1e10, max = 1e10, nominal = 1e6) \"Specific enthalpy\"; // algorithm // h := Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.Medium.h_pTX(state.p, state.T, state.X); // end Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.Medium.specificEnthalpy; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.Medium.specificEnthalpy_pTX \"Return specific enthalpy from p, T, and X or Xi\" -// input Real p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) \"Pressure\"; +// input Real p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Pressure\"; // input Real T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature\"; // input Real[:] X(quantity = fill(\"MassFraction\", size(X, 1)), unit = fill(\"kg/kg\", size(X, 1)), min = fill(0.0, size(X, 1)), max = fill(1.0, size(X, 1)), nominal = fill(0.1, size(X, 1))) = {0.01, 0.99} \"Mass fractions\"; -// output Real h(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -10000000000.0, max = 10000000000.0, nominal = 1000000.0) \"Specific enthalpy\"; +// output Real h(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -1e10, max = 1e10, nominal = 1e6) \"Specific enthalpy\"; // algorithm // h := Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.Medium.specificEnthalpy(Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.Medium.setState_pTX(p, T, X)); // end Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.Medium.specificEnthalpy_pTX; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.Medium.sublimationPressureIce \"Return sublimation pressure of water as a function of temperature T between 190 and 273.16 K\" // input Real Tsat(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) \"Sublimation temperature\"; -// output Real psat(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 100000.0) \"Sublimation pressure\"; +// output Real psat(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 1e5) \"Sublimation pressure\"; // protected Real Ttriple(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) = 273.16 \"Triple point temperature\"; -// protected Real ptriple(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 100000.0) = 611.657 \"Triple point pressure\"; +// protected Real ptriple(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 1e5) = 611.657 \"Triple point pressure\"; // protected Real[:] a = {-13.928169, 34.7078238} \"Coefficients a[:]\"; // protected Real[:] n = {-1.5, -1.25} \"Coefficients n[:]\"; // protected Real r1 = Tsat / Ttriple \"Common subexpression\"; @@ -1839,7 +1839,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // input Real dTsat(unit = \"K/s\") \"Sublimation temperature derivative\"; // output Real psat_der(unit = \"Pa/s\") \"Sublimation pressure derivative\"; // protected Real Ttriple(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) = 273.16 \"Triple point temperature\"; -// protected Real ptriple(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 100000.0) = 611.657 \"Triple point pressure\"; +// protected Real ptriple(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 1e5) = 611.657 \"Triple point pressure\"; // protected Real[:] a = {-13.928169, 34.7078238} \"Coefficients a[:]\"; // protected Real[:] n = {-1.5, -1.25} \"Coefficients n[:]\"; // protected Real r1 = Tsat / Ttriple \"Common subexpression 1\"; @@ -1856,8 +1856,8 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // end Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.Medium.temperature; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.Medium.temperature_phX \"Return temperature from p, h, and X or Xi\" -// input Real p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) \"Pressure\"; -// input Real h(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -10000000000.0, max = 10000000000.0, nominal = 1000000.0) \"Specific enthalpy\"; +// input Real p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Pressure\"; +// input Real h(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -1e10, max = 1e10, nominal = 1e6) \"Specific enthalpy\"; // input Real[:] X(quantity = fill(\"MassFraction\", size(X, 1)), unit = fill(\"kg/kg\", size(X, 1)), min = fill(0.0, size(X, 1)), max = fill(1.0, size(X, 1)), nominal = fill(0.1, size(X, 1))) = {0.01, 0.99} \"Mass fractions\"; // output Real T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature\"; // algorithm @@ -1873,16 +1873,16 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // // function Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.flowModel.Medium.density \"Returns density of ideal gas as a function of the thermodynamic state record\" // input Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.flowModel.Medium.ThermodynamicState state \"Thermodynamic state record\"; -// output Real d(quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0) \"Density\"; +// output Real d(quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0) \"Density\"; // algorithm // d := state.p / (Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.flowModel.Medium.gasConstant(state) * state.T); // end Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.flowModel.Medium.density; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.flowModel.Medium.dynamicViscosity \"Return dynamic viscosity as a function of the thermodynamic state record, valid from 123.15 K to 1273.15 K\" // input Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.flowModel.Medium.ThermodynamicState state \"Thermodynamic state record\"; -// output Real eta(quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 100000000.0, start = 0.001, nominal = 0.001) \"Dynamic viscosity\"; +// output Real eta(quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 1e8, start = 0.001, nominal = 0.001) \"Dynamic viscosity\"; // algorithm -// eta := 1e-06 * Modelica.Media.Incompressible.TableBased.Polynomials_Temp.evaluateWithRange({9.739110288630587e-15, -3.135372487033391e-11, 4.300487659564222e-08, -3.822801629175824e-05, 0.05042787436718076, 17.23926013924253}, -150.0, 1000.0, Modelica.SIunits.Conversions.to_degC(state.T)); +// eta := 1e-6 * Modelica.Media.Incompressible.TableBased.Polynomials_Temp.evaluateWithRange({9.739110288630587e-15, -3.1353724870333906e-11, 4.3004876595642225e-8, -3.822801629175824e-5, 0.05042787436718076, 17.23926013924253}, -149.99999999999997, 1000.0000000000001, Modelica.SIunits.Conversions.to_degC(state.T)); // end Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.flowModel.Medium.dynamicViscosity; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.flowModel.Medium.gasConstant \"Return ideal gas constant as a function from thermodynamic state, only valid for phi<1\" @@ -1894,7 +1894,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // // function Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.flowModel.Medium.pressure \"Returns pressure of ideal gas as a function of the thermodynamic state record\" // input Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.flowModel.Medium.ThermodynamicState state \"Thermodynamic state record\"; -// output Real p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) \"Pressure\"; +// output Real p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Pressure\"; // algorithm // p := state.p; // end Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.flowModel.Medium.pressure; @@ -1935,7 +1935,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // if Re > Re1 then // Re := -2.0 * sqrt(lambda2) * log10(2.51 / sqrt(lambda2) + 0.27 * Delta) \"Colebrook-White\"; // aux2 := sqrt(aux1 * abs(dp_fric)); -// dRe_ddp := 0.4342944819032518 * ((-2.0 * log(2.51 / aux2 + 0.27 * Delta) * aux1 / (2.0 * aux2)) + 5.02 / (2.0 * abs(dp_fric) * (2.51 / aux2 + 0.27 * Delta))); +// dRe_ddp := 0.43429448190325176 * ((-2.0 * log(2.51 / aux2 + 0.27 * Delta) * aux1 / (2.0 * aux2)) + 5.02 / (2.0 * abs(dp_fric) * (2.51 / aux2 + 0.27 * Delta))); // if Re < Re2 then // (Re, dRe_ddp) := Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.flowModel.WallFriction.Internal.m_flow_of_dp_fric.interpolateInRegion2_withDerivative(lambda2, Re1, Re2, Delta, dp_fric); // end if; @@ -1965,7 +1965,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // protected Real x2 = log10(L2); // protected Real aux5 = -2.0 * sqrt(L2) * log10(aux4); // protected Real y2 = log10(aux5); -// protected Real y2d = 0.5 + 1.090079149577162 / (aux5 * aux4); +// protected Real y2d = 0.5 + 1.0900791495771618 / (aux5 * aux4); // algorithm // (y, dy_dx) := Modelica.Fluid.Utilities.cubicHermite_withDerivative(x, x1, x2, y1, y2, y1d, y2d); // Re := 10.0 ^ y; @@ -1982,8 +1982,8 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // input Real diameter(quantity = \"Length\", unit = \"m\", min = 0.0) \"Inner (hydraulic) diameter of pipe\"; // input Real g_times_height_ab(unit = \"m2/s2\") \"Gravity times (Height(port_b) - Height(port_a))\"; // input Real crossArea(quantity = \"Area\", unit = \"m2\") = 3.141592653589793 * diameter ^ 2.0 / 4.0 \"Inner cross section area\"; -// input Real roughness(quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) = 2.5e-05 \"Absolute roughness of pipe, with a default for a smooth steel pipe (dummy if use_roughness = false)\"; -// input Real dp_small(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 100000.0) = 1.0 \"Regularization of zero flow if |dp| < dp_small (dummy if use_dp_small = false)\"; +// input Real roughness(quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) = 2.5e-5 \"Absolute roughness of pipe, with a default for a smooth steel pipe (dummy if use_roughness = false)\"; +// input Real dp_small(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 1e5) = 1.0 \"Regularization of zero flow if |dp| < dp_small (dummy if use_dp_small = false)\"; // input Real Re_turbulent(quantity = \"ReynoldsNumber\", unit = \"1\") = 4000.0 \"Turbulent flow if Re >= Re_turbulent (dummy if use_Re_turbulent = false)\"; // output Real m_flow(quantity = \"MassFlowRate\", unit = \"kg/s\") \"Mass flow rate from port_a to port_b\"; // protected Real Delta(min = 0.0) = roughness / diameter \"Relative roughness\"; @@ -2029,7 +2029,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // input Real length(quantity = \"Length\", unit = \"m\") \"Length of pipe\"; // input Real diameter(quantity = \"Length\", unit = \"m\", min = 0.0) \"Inner (hydraulic) diameter of pipe\"; // input Real crossArea(quantity = \"Area\", unit = \"m2\") = 3.141592653589793 * diameter ^ 2.0 / 4.0 \"Inner cross section area\"; -// input Real roughness(quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) = 2.5e-05 \"Absolute roughness of pipe, with a default for a smooth steel pipe (dummy if use_roughness = false)\"; +// input Real roughness(quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) = 2.5e-5 \"Absolute roughness of pipe, with a default for a smooth steel pipe (dummy if use_roughness = false)\"; // input Real m_flow_small(quantity = \"MassFlowRate\", unit = \"kg/s\") = 0.01 \"Regularization of zero flow if |m_flow| < m_flow_small (dummy if use_m_flow_small = false)\"; // input Real Re_turbulent(quantity = \"ReynoldsNumber\", unit = \"1\") = 4000.0 \"Turbulent flow if Re >= Re_turbulent (dummy if use_Re_turbulent = false)\"; // output Real dp(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\") \"Pressure loss (dp = port_a.p - port_b.p)\"; @@ -2057,7 +2057,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // protected Real x1 = log10(Re1); // protected Real y1 = log10(64.0 * Re1); // protected Real yd1 = 1.0; -// protected Real aux1 = 1.121782646756099; +// protected Real aux1 = 1.1217826467560994; // protected Real aux2 = Delta / 3.7 + 5.74 / Re2 ^ 0.9; // protected Real x2 = log10(Re2); // protected Real dx; @@ -2115,7 +2115,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // protected Real y; // algorithm // scaledX1 := x / deltax; -// scaledX := scaledX1 * 1.570796326794897; +// scaledX := scaledX1 * 1.5707963267948966; // if scaledX1 <= -0.999999999 then // y := 0.0; // elseif scaledX1 >= 0.999999999 then @@ -2142,7 +2142,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // protected Real y; // algorithm // scaledX1 := x / deltax; -// scaledX := scaledX1 * 1.570796326794897; +// scaledX := scaledX1 * 1.5707963267948966; // dscaledX1 := (dx - scaledX1 * ddeltax) / deltax; // if scaledX1 <= -0.99999999999 then // y := 0.0; @@ -2153,22 +2153,22 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // end if; // out := dpos * y + (1.0 - y) * dneg; // if abs(scaledX1) < 1.0 then -// out := out + (pos - neg) * dscaledX1 * 1.570796326794897 / 2.0 / (cosh(tan(scaledX)) * cos(scaledX)) ^ 2.0; +// out := out + (pos - neg) * dscaledX1 * 1.5707963267948966 / 2.0 / (cosh(tan(scaledX)) * cos(scaledX)) ^ 2.0; // end if; // end Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.heatTransfer.Medium.Utilities.spliceFunction_der; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.heatTransfer.Medium.density \"Returns density of ideal gas as a function of the thermodynamic state record\" // input Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.heatTransfer.Medium.ThermodynamicState state \"Thermodynamic state record\"; -// output Real d(quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0) \"Density\"; +// output Real d(quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0) \"Density\"; // algorithm // d := state.p / (Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.heatTransfer.Medium.gasConstant(state) * state.T); // end Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.heatTransfer.Medium.density; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.heatTransfer.Medium.dynamicViscosity \"Return dynamic viscosity as a function of the thermodynamic state record, valid from 123.15 K to 1273.15 K\" // input Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.heatTransfer.Medium.ThermodynamicState state \"Thermodynamic state record\"; -// output Real eta(quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 100000000.0, start = 0.001, nominal = 0.001) \"Dynamic viscosity\"; +// output Real eta(quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 1e8, start = 0.001, nominal = 0.001) \"Dynamic viscosity\"; // algorithm -// eta := 1e-06 * Modelica.Media.Incompressible.TableBased.Polynomials_Temp.evaluateWithRange({9.739110288630587e-15, -3.135372487033391e-11, 4.300487659564222e-08, -3.822801629175824e-05, 0.05042787436718076, 17.23926013924253}, -150.0, 1000.0, Modelica.SIunits.Conversions.to_degC(state.T)); +// eta := 1e-6 * Modelica.Media.Incompressible.TableBased.Polynomials_Temp.evaluateWithRange({9.739110288630587e-15, -3.1353724870333906e-11, 4.3004876595642225e-8, -3.822801629175824e-5, 0.05042787436718076, 17.23926013924253}, -149.99999999999997, 1000.0000000000001, Modelica.SIunits.Conversions.to_degC(state.T)); // end Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.heatTransfer.Medium.dynamicViscosity; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.heatTransfer.Medium.enthalpyOfWater \"Computes specific enthalpy of water (solid/liquid) near atmospheric pressure from temperature T\" @@ -2201,7 +2201,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // input Real dT(unit = \"K/s\") \"Temperature derivative\"; // input Real[:] dX(unit = \"1/s\") \"Composition derivative\"; // output Real h_der(unit = \"J/(kg.s)\") \"Time derivative of specific enthalpy\"; -// protected Real p_steam_sat(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 100000.0) \"partial saturation pressure of steam\"; +// protected Real p_steam_sat(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 1e5) \"partial saturation pressure of steam\"; // protected Real X_sat(quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0) \"Absolute humidity per unit mass of moist air\"; // protected Real X_liquid(quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0) \"Mass fraction of liquid water\"; // protected Real X_steam(quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0) \"Mass fraction of steam water\"; @@ -2216,36 +2216,36 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // p_steam_sat := Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.heatTransfer.Medium.saturationPressure(T); // x_sat := p_steam_sat * 0.6219647130774989 / max(1e-13, p - p_steam_sat); // X_sat := min(x_sat * (1.0 - X[1]), 1.0); -// X_liquid := Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.heatTransfer.Medium.Utilities.smoothMax(X[1] - X_sat, 0.0, 1e-05); +// X_liquid := Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.heatTransfer.Medium.Utilities.smoothMax(X[1] - X_sat, 0.0, 1e-5); // X_steam := X[1] - X_liquid; // X_air := 1.0 - X[1]; // dX_air := -dX[1]; // dps := Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.heatTransfer.Medium.saturationPressure_der(T, dT); // dx_sat := 0.6219647130774989 * (dps * (p - p_steam_sat) - p_steam_sat * (dp - dps)) / (p - p_steam_sat) / (p - p_steam_sat); -// dX_liq := Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.heatTransfer.Medium.Utilities.smoothMax_der(X[1] - X_sat, 0.0, 1e-05, (1.0 + x_sat) * dX[1] - (1.0 - X[1]) * dx_sat, 0.0, 0.0); +// dX_liq := Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.heatTransfer.Medium.Utilities.smoothMax_der(X[1] - X_sat, 0.0, 1e-5, (1.0 + x_sat) * dX[1] - (1.0 - X[1]) * dx_sat, 0.0, 0.0); // dX_steam := dX[1] - dX_liq; -// h_der := X_steam * Modelica.Media.IdealGases.Common.Functions.h_Tlow_der(Modelica.Media.IdealGases.Common.DataRecord(\"H2O\", 0.01801528, -13423382.81725291, 549760.6476280135, 1000.0, {-39479.6083, 575.5731019999999, 0.931782653, 0.00722271286, -7.34255737e-06, 4.95504349e-09, -1.336933246e-12}, {-33039.7431, 17.24205775}, {1034972.096, -2412.698562, 4.64611078, 0.002291998307, -6.836830479999999e-07, 9.426468930000001e-11, -4.82238053e-15}, {-13842.86509, -7.97814851}, 461.5233290850878), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 2547494.319, dT) + dX_steam * Modelica.Media.IdealGases.Common.Functions.h_Tlow(Modelica.Media.IdealGases.Common.DataRecord(\"H2O\", 0.01801528, -13423382.81725291, 549760.6476280135, 1000.0, {-39479.6083, 575.5731019999999, 0.931782653, 0.00722271286, -7.34255737e-06, 4.95504349e-09, -1.336933246e-12}, {-33039.7431, 17.24205775}, {1034972.096, -2412.698562, 4.64611078, 0.002291998307, -6.836830479999999e-07, 9.426468930000001e-11, -4.82238053e-15}, {-13842.86509, -7.97814851}, 461.5233290850878), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 2547494.319) + X_air * Modelica.Media.IdealGases.Common.Functions.h_Tlow_der(Modelica.Media.IdealGases.Common.DataRecord(\"Air\", 0.0289651159, -4333.833858403446, 298609.6803431054, 1000.0, {10099.5016, -196.827561, 5.00915511, -0.00576101373, 1.06685993e-05, -7.94029797e-09, 2.18523191e-12}, {-176.796731, -3.921504225}, {241521.443, -1257.8746, 5.14455867, -0.000213854179, 7.06522784e-08, -1.07148349e-11, 6.57780015e-16}, {6462.26319, -8.147411905}, 287.0512249529787), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 25104.684, dT) + dX_air * Modelica.Media.IdealGases.Common.Functions.h_Tlow(Modelica.Media.IdealGases.Common.DataRecord(\"Air\", 0.0289651159, -4333.833858403446, 298609.6803431054, 1000.0, {10099.5016, -196.827561, 5.00915511, -0.00576101373, 1.06685993e-05, -7.94029797e-09, 2.18523191e-12}, {-176.796731, -3.921504225}, {241521.443, -1257.8746, 5.14455867, -0.000213854179, 7.06522784e-08, -1.07148349e-11, 6.57780015e-16}, {6462.26319, -8.147411905}, 287.0512249529787), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 25104.684) + X_liquid * Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.heatTransfer.Medium.enthalpyOfWater_der(T, dT) + dX_liq * Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.heatTransfer.Medium.enthalpyOfWater(T); +// h_der := X_steam * Modelica.Media.IdealGases.Common.Functions.h_Tlow_der(Modelica.Media.IdealGases.Common.DataRecord(\"H2O\", 0.01801528, -1.342338281725291e7, 549760.6476280135, 1000.0, {-39479.6083, 575.573102, 0.931782653, 0.00722271286, -7.34255737e-6, 4.95504349e-9, -1.336933246e-12}, {-33039.7431, 17.24205775}, {1.034972096e6, -2412.698562, 4.64611078, 0.002291998307, -6.836830479999999e-7, 9.426468930000001e-11, -4.82238053e-15}, {-13842.86509, -7.97814851}, 461.5233290850878), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 2.547494319e6, dT) + dX_steam * Modelica.Media.IdealGases.Common.Functions.h_Tlow(Modelica.Media.IdealGases.Common.DataRecord(\"H2O\", 0.01801528, -1.342338281725291e7, 549760.6476280135, 1000.0, {-39479.6083, 575.573102, 0.931782653, 0.00722271286, -7.34255737e-6, 4.95504349e-9, -1.336933246e-12}, {-33039.7431, 17.24205775}, {1.034972096e6, -2412.698562, 4.64611078, 0.002291998307, -6.836830479999999e-7, 9.426468930000001e-11, -4.82238053e-15}, {-13842.86509, -7.97814851}, 461.5233290850878), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 2.547494319e6) + X_air * Modelica.Media.IdealGases.Common.Functions.h_Tlow_der(Modelica.Media.IdealGases.Common.DataRecord(\"Air\", 0.0289651159, -4333.833858403446, 298609.6803431054, 1000.0, {10099.5016, -196.827561, 5.00915511, -0.00576101373, 1.06685993e-5, -7.94029797e-9, 2.18523191e-12}, {-176.796731, -3.921504225}, {241521.443, -1257.8746, 5.14455867, -2.13854179e-4, 7.06522784e-8, -1.07148349e-11, 6.57780015e-16}, {6462.26319, -8.147411905}, 287.0512249529787), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 25104.684, dT) + dX_air * Modelica.Media.IdealGases.Common.Functions.h_Tlow(Modelica.Media.IdealGases.Common.DataRecord(\"Air\", 0.0289651159, -4333.833858403446, 298609.6803431054, 1000.0, {10099.5016, -196.827561, 5.00915511, -0.00576101373, 1.06685993e-5, -7.94029797e-9, 2.18523191e-12}, {-176.796731, -3.921504225}, {241521.443, -1257.8746, 5.14455867, -2.13854179e-4, 7.06522784e-8, -1.07148349e-11, 6.57780015e-16}, {6462.26319, -8.147411905}, 287.0512249529787), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 25104.684) + X_liquid * Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.heatTransfer.Medium.enthalpyOfWater_der(T, dT) + dX_liq * Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.heatTransfer.Medium.enthalpyOfWater(T); // end Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.heatTransfer.Medium.h_pTX_der; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.heatTransfer.Medium.prandtlNumber \"Return the Prandtl number\" // input Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.heatTransfer.Medium.ThermodynamicState state \"Thermodynamic state record\"; -// output Real Pr(quantity = \"PrandtlNumber\", unit = \"1\", min = 0.001, max = 100000.0, nominal = 1.0) \"Prandtl number\"; +// output Real Pr(quantity = \"PrandtlNumber\", unit = \"1\", min = 0.001, max = 1e5, nominal = 1.0) \"Prandtl number\"; // algorithm // Pr := Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.heatTransfer.Medium.dynamicViscosity(state) * Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.heatTransfer.Medium.specificHeatCapacityCp(state) / Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.heatTransfer.Medium.thermalConductivity(state); // end Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.heatTransfer.Medium.prandtlNumber; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.heatTransfer.Medium.saturationPressure \"Return saturation pressure of water as a function of temperature T between 190 and 647.096 K\" // input Real Tsat(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Saturation temperature\"; -// output Real psat(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) \"Saturation pressure\"; +// output Real psat(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Saturation pressure\"; // algorithm // psat := Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.heatTransfer.Medium.Utilities.spliceFunction(Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.heatTransfer.Medium.saturationPressureLiquid(Tsat), Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.heatTransfer.Medium.sublimationPressureIce(Tsat), Tsat - 273.16, 1.0); // end Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.heatTransfer.Medium.saturationPressure; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.heatTransfer.Medium.saturationPressureLiquid \"Return saturation pressure of water as a function of temperature T in the range of 273.16 to 647.096 K\" // input Real Tsat(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) \"Saturation temperature\"; -// output Real psat(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 100000.0) \"Saturation pressure\"; +// output Real psat(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 1e5) \"Saturation pressure\"; // protected Real Tcritical(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) = 647.096 \"Critical temperature\"; -// protected Real pcritical(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 100000.0) = 22064000.0 \"Critical pressure\"; +// protected Real pcritical(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 1e5) = 2.2064e7 \"Critical pressure\"; // protected Real[:] a = {-7.85951783, 1.84408259, -11.7866497, 22.6807411, -15.9618719, 1.80122502} \"Coefficients a[:]\"; // protected Real[:] n = {1.0, 1.5, 3.0, 3.5, 4.0, 7.5} \"Coefficients n[:]\"; // protected Real r1 = 1.0 - Tsat / Tcritical \"Common subexpression\"; @@ -2258,7 +2258,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // input Real dTsat(unit = \"K/s\") \"Saturation temperature derivative\"; // output Real psat_der(unit = \"Pa/s\") \"Saturation pressure derivative\"; // protected Real Tcritical(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) = 647.096 \"Critical temperature\"; -// protected Real pcritical(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 100000.0) = 22064000.0 \"Critical pressure\"; +// protected Real pcritical(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 1e5) = 2.2064e7 \"Critical pressure\"; // protected Real[:] a = {-7.85951783, 1.84408259, -11.7866497, 22.6807411, -15.9618719, 1.80122502} \"Coefficients a[:]\"; // protected Real[:] n = {1.0, 1.5, 3.0, 3.5, 4.0, 7.5} \"Coefficients n[:]\"; // protected Real r1 = 1.0 - Tsat / Tcritical \"Common subexpression 1\"; @@ -2278,7 +2278,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // // function Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.heatTransfer.Medium.specificHeatCapacityCp \"Return specific heat capacity at constant pressure as a function of the thermodynamic state record\" // input Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.heatTransfer.Medium.ThermodynamicState state \"Thermodynamic state record\"; -// output Real cp(quantity = \"SpecificHeatCapacity\", unit = \"J/(kg.K)\", min = 0.0, max = 10000000.0, start = 1000.0, nominal = 1000.0) \"Specific heat capacity at constant pressure\"; +// output Real cp(quantity = \"SpecificHeatCapacity\", unit = \"J/(kg.K)\", min = 0.0, max = 1e7, start = 1000.0, nominal = 1000.0) \"Specific heat capacity at constant pressure\"; // protected Real dT(unit = \"s/K\") = 1.0; // algorithm // cp := Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.heatTransfer.Medium.h_pTX_der(state.p, state.T, state.X, 0.0, 1.0, {0.0, 0.0}) * dT \"Definition of cp: dh/dT @ constant p\"; @@ -2286,9 +2286,9 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // // function Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.heatTransfer.Medium.sublimationPressureIce \"Return sublimation pressure of water as a function of temperature T between 190 and 273.16 K\" // input Real Tsat(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) \"Sublimation temperature\"; -// output Real psat(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 100000.0) \"Sublimation pressure\"; +// output Real psat(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 1e5) \"Sublimation pressure\"; // protected Real Ttriple(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) = 273.16 \"Triple point temperature\"; -// protected Real ptriple(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 100000.0) = 611.657 \"Triple point pressure\"; +// protected Real ptriple(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 1e5) = 611.657 \"Triple point pressure\"; // protected Real[:] a = {-13.928169, 34.7078238} \"Coefficients a[:]\"; // protected Real[:] n = {-1.5, -1.25} \"Coefficients n[:]\"; // protected Real r1 = Tsat / Ttriple \"Common subexpression\"; @@ -2301,7 +2301,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // input Real dTsat(unit = \"K/s\") \"Sublimation temperature derivative\"; // output Real psat_der(unit = \"Pa/s\") \"Sublimation pressure derivative\"; // protected Real Ttriple(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) = 273.16 \"Triple point temperature\"; -// protected Real ptriple(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 100000.0) = 611.657 \"Triple point pressure\"; +// protected Real ptriple(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 1e5) = 611.657 \"Triple point pressure\"; // protected Real[:] a = {-13.928169, 34.7078238} \"Coefficients a[:]\"; // protected Real[:] n = {-1.5, -1.25} \"Coefficients n[:]\"; // protected Real r1 = Tsat / Ttriple \"Common subexpression 1\"; @@ -2321,16 +2321,16 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // input Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.heatTransfer.Medium.ThermodynamicState state \"Thermodynamic state record\"; // output Real lambda(quantity = \"ThermalConductivity\", unit = \"W/(m.K)\", min = 0.0, max = 500.0, start = 1.0, nominal = 1.0) \"Thermal conductivity\"; // algorithm -// lambda := 0.001 * Modelica.Media.Incompressible.TableBased.Polynomials_Temp.evaluateWithRange({6.569147081771781e-15, -3.402596192305051e-11, 5.327928484630316e-08, -4.534083928921947e-05, 0.07612967530903766, 24.16948108809705}, -150.0, 1000.0, Modelica.SIunits.Conversions.to_degC(state.T)); +// lambda := 0.001 * Modelica.Media.Incompressible.TableBased.Polynomials_Temp.evaluateWithRange({6.569147081771781e-15, -3.402596192305051e-11, 5.327928484630316e-8, -4.534083928921947e-5, 0.07612967530903766, 24.16948108809705}, -149.99999999999997, 1000.0000000000001, Modelica.SIunits.Conversions.to_degC(state.T)); // end Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.heatTransfer.Medium.thermalConductivity; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.Medium.T_phX \"Return temperature as a function of pressure p, specific enthalpy h and composition X\" -// input Real p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) \"Pressure\"; -// input Real h(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -10000000000.0, max = 10000000000.0, nominal = 1000000.0) \"Specific enthalpy\"; +// input Real p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Pressure\"; +// input Real h(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -1e10, max = 1e10, nominal = 1e6) \"Specific enthalpy\"; // input Real[:] X(quantity = fill(\"MassFraction\", size(X, 1)), unit = fill(\"kg/kg\", size(X, 1)), min = fill(0.0, size(X, 1)), max = fill(1.0, size(X, 1)), nominal = fill(0.1, size(X, 1))) \"Mass fractions of composition\"; // output Real T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature\"; // algorithm -// T := Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.Medium.T_phX.Internal.solve(h, 190.0, 647.0, p, X[1:1], Modelica.Media.IdealGases.Common.DataRecord(\"H2O\", 0.01801528, -13423382.81725291, 549760.6476280135, 1000.0, {-39479.6083, 575.5731019999999, 0.931782653, 0.00722271286, -7.34255737e-06, 4.95504349e-09, -1.336933246e-12}, {-33039.7431, 17.24205775}, {1034972.096, -2412.698562, 4.64611078, 0.002291998307, -6.836830479999999e-07, 9.426468930000001e-11, -4.82238053e-15}, {-13842.86509, -7.97814851}, 461.5233290850878), 1e-13); +// T := Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.Medium.T_phX.Internal.solve(h, 190.0, 647.0, p, X[1:1], Modelica.Media.IdealGases.Common.DataRecord(\"H2O\", 0.01801528, -1.342338281725291e7, 549760.6476280135, 1000.0, {-39479.6083, 575.573102, 0.931782653, 0.00722271286, -7.34255737e-6, 4.95504349e-9, -1.336933246e-12}, {-33039.7431, 17.24205775}, {1.034972096e6, -2412.698562, 4.64611078, 0.002291998307, -6.836830479999999e-7, 9.426468930000001e-11, -4.82238053e-15}, {-13842.86509, -7.97814851}, 461.5233290850878), 1e-13); // end Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.Medium.T_phX; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.Medium.T_phX.Internal.f_nonlinear @@ -2499,7 +2499,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // protected Real y; // algorithm // scaledX1 := x / deltax; -// scaledX := scaledX1 * 1.570796326794897; +// scaledX := scaledX1 * 1.5707963267948966; // if scaledX1 <= -0.999999999 then // y := 0.0; // elseif scaledX1 >= 0.999999999 then @@ -2526,7 +2526,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // protected Real y; // algorithm // scaledX1 := x / deltax; -// scaledX := scaledX1 * 1.570796326794897; +// scaledX := scaledX1 * 1.5707963267948966; // dscaledX1 := (dx - scaledX1 * ddeltax) / deltax; // if scaledX1 <= -0.99999999999 then // y := 0.0; @@ -2537,13 +2537,13 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // end if; // out := dpos * y + (1.0 - y) * dneg; // if abs(scaledX1) < 1.0 then -// out := out + (pos - neg) * dscaledX1 * 1.570796326794897 / 2.0 / (cosh(tan(scaledX)) * cos(scaledX)) ^ 2.0; +// out := out + (pos - neg) * dscaledX1 * 1.5707963267948966 / 2.0 / (cosh(tan(scaledX)) * cos(scaledX)) ^ 2.0; // end if; // end Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.Medium.Utilities.spliceFunction_der; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.Medium.density \"Returns density of ideal gas as a function of the thermodynamic state record\" // input Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.Medium.ThermodynamicState state \"Thermodynamic state record\"; -// output Real d(quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0) \"Density\"; +// output Real d(quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0) \"Density\"; // algorithm // d := state.p / (Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.Medium.gasConstant(state) * state.T); // end Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.Medium.density; @@ -2575,7 +2575,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // input Real T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) \"Temperature\"; // input Real[:] X(quantity = fill(\"MassFraction\", size(X, 1)), unit = fill(\"1\", size(X, 1)), min = fill(0.0, size(X, 1)), max = fill(1.0, size(X, 1))) \"Mass fractions of moist air\"; // output Real h(quantity = \"SpecificEnergy\", unit = \"J/kg\") \"Specific enthalpy at p, T, X\"; -// protected Real p_steam_sat(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 100000.0) \"partial saturation pressure of steam\"; +// protected Real p_steam_sat(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 1e5) \"partial saturation pressure of steam\"; // protected Real X_sat(quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0) \"Absolute humidity per unit mass of moist air\"; // protected Real X_liquid(quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0) \"Mass fraction of liquid water\"; // protected Real X_steam(quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0) \"Mass fraction of steam water\"; @@ -2586,7 +2586,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // X_liquid := max(X[1] - X_sat, 0.0); // X_steam := X[1] - X_liquid; // X_air := 1.0 - X[1]; -// h := Modelica.Media.IdealGases.Common.Functions.h_Tlow(Modelica.Media.IdealGases.Common.DataRecord(\"H2O\", 0.01801528, -13423382.81725291, 549760.6476280135, 1000.0, {-39479.6083, 575.5731019999999, 0.931782653, 0.00722271286, -7.34255737e-06, 4.95504349e-09, -1.336933246e-12}, {-33039.7431, 17.24205775}, {1034972.096, -2412.698562, 4.64611078, 0.002291998307, -6.836830479999999e-07, 9.426468930000001e-11, -4.82238053e-15}, {-13842.86509, -7.97814851}, 461.5233290850878), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 2547494.319) * X_steam + Modelica.Media.IdealGases.Common.Functions.h_Tlow(Modelica.Media.IdealGases.Common.DataRecord(\"Air\", 0.0289651159, -4333.833858403446, 298609.6803431054, 1000.0, {10099.5016, -196.827561, 5.00915511, -0.00576101373, 1.06685993e-05, -7.94029797e-09, 2.18523191e-12}, {-176.796731, -3.921504225}, {241521.443, -1257.8746, 5.14455867, -0.000213854179, 7.06522784e-08, -1.07148349e-11, 6.57780015e-16}, {6462.26319, -8.147411905}, 287.0512249529787), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 25104.684) * X_air + Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.Medium.enthalpyOfWater(T) * X_liquid; +// h := Modelica.Media.IdealGases.Common.Functions.h_Tlow(Modelica.Media.IdealGases.Common.DataRecord(\"H2O\", 0.01801528, -1.342338281725291e7, 549760.6476280135, 1000.0, {-39479.6083, 575.573102, 0.931782653, 0.00722271286, -7.34255737e-6, 4.95504349e-9, -1.336933246e-12}, {-33039.7431, 17.24205775}, {1.034972096e6, -2412.698562, 4.64611078, 0.002291998307, -6.836830479999999e-7, 9.426468930000001e-11, -4.82238053e-15}, {-13842.86509, -7.97814851}, 461.5233290850878), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 2.547494319e6) * X_steam + Modelica.Media.IdealGases.Common.Functions.h_Tlow(Modelica.Media.IdealGases.Common.DataRecord(\"Air\", 0.0289651159, -4333.833858403446, 298609.6803431054, 1000.0, {10099.5016, -196.827561, 5.00915511, -0.00576101373, 1.06685993e-5, -7.94029797e-9, 2.18523191e-12}, {-176.796731, -3.921504225}, {241521.443, -1257.8746, 5.14455867, -2.13854179e-4, 7.06522784e-8, -1.07148349e-11, 6.57780015e-16}, {6462.26319, -8.147411905}, 287.0512249529787), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 25104.684) * X_air + Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.Medium.enthalpyOfWater(T) * X_liquid; // end Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.Medium.h_pTX; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.Medium.h_pTX_der \"Derivative function of h_pTX\" @@ -2597,7 +2597,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // input Real dT(unit = \"K/s\") \"Temperature derivative\"; // input Real[:] dX(unit = \"1/s\") \"Composition derivative\"; // output Real h_der(unit = \"J/(kg.s)\") \"Time derivative of specific enthalpy\"; -// protected Real p_steam_sat(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 100000.0) \"partial saturation pressure of steam\"; +// protected Real p_steam_sat(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 1e5) \"partial saturation pressure of steam\"; // protected Real X_sat(quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0) \"Absolute humidity per unit mass of moist air\"; // protected Real X_liquid(quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0) \"Mass fraction of liquid water\"; // protected Real X_steam(quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0) \"Mass fraction of steam water\"; @@ -2612,29 +2612,29 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // p_steam_sat := Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.Medium.saturationPressure(T); // x_sat := p_steam_sat * 0.6219647130774989 / max(1e-13, p - p_steam_sat); // X_sat := min(x_sat * (1.0 - X[1]), 1.0); -// X_liquid := Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.Medium.Utilities.smoothMax(X[1] - X_sat, 0.0, 1e-05); +// X_liquid := Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.Medium.Utilities.smoothMax(X[1] - X_sat, 0.0, 1e-5); // X_steam := X[1] - X_liquid; // X_air := 1.0 - X[1]; // dX_air := -dX[1]; // dps := Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.Medium.saturationPressure_der(T, dT); // dx_sat := 0.6219647130774989 * (dps * (p - p_steam_sat) - p_steam_sat * (dp - dps)) / (p - p_steam_sat) / (p - p_steam_sat); -// dX_liq := Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.Medium.Utilities.smoothMax_der(X[1] - X_sat, 0.0, 1e-05, (1.0 + x_sat) * dX[1] - (1.0 - X[1]) * dx_sat, 0.0, 0.0); +// dX_liq := Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.Medium.Utilities.smoothMax_der(X[1] - X_sat, 0.0, 1e-5, (1.0 + x_sat) * dX[1] - (1.0 - X[1]) * dx_sat, 0.0, 0.0); // dX_steam := dX[1] - dX_liq; -// h_der := X_steam * Modelica.Media.IdealGases.Common.Functions.h_Tlow_der(Modelica.Media.IdealGases.Common.DataRecord(\"H2O\", 0.01801528, -13423382.81725291, 549760.6476280135, 1000.0, {-39479.6083, 575.5731019999999, 0.931782653, 0.00722271286, -7.34255737e-06, 4.95504349e-09, -1.336933246e-12}, {-33039.7431, 17.24205775}, {1034972.096, -2412.698562, 4.64611078, 0.002291998307, -6.836830479999999e-07, 9.426468930000001e-11, -4.82238053e-15}, {-13842.86509, -7.97814851}, 461.5233290850878), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 2547494.319, dT) + dX_steam * Modelica.Media.IdealGases.Common.Functions.h_Tlow(Modelica.Media.IdealGases.Common.DataRecord(\"H2O\", 0.01801528, -13423382.81725291, 549760.6476280135, 1000.0, {-39479.6083, 575.5731019999999, 0.931782653, 0.00722271286, -7.34255737e-06, 4.95504349e-09, -1.336933246e-12}, {-33039.7431, 17.24205775}, {1034972.096, -2412.698562, 4.64611078, 0.002291998307, -6.836830479999999e-07, 9.426468930000001e-11, -4.82238053e-15}, {-13842.86509, -7.97814851}, 461.5233290850878), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 2547494.319) + X_air * Modelica.Media.IdealGases.Common.Functions.h_Tlow_der(Modelica.Media.IdealGases.Common.DataRecord(\"Air\", 0.0289651159, -4333.833858403446, 298609.6803431054, 1000.0, {10099.5016, -196.827561, 5.00915511, -0.00576101373, 1.06685993e-05, -7.94029797e-09, 2.18523191e-12}, {-176.796731, -3.921504225}, {241521.443, -1257.8746, 5.14455867, -0.000213854179, 7.06522784e-08, -1.07148349e-11, 6.57780015e-16}, {6462.26319, -8.147411905}, 287.0512249529787), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 25104.684, dT) + dX_air * Modelica.Media.IdealGases.Common.Functions.h_Tlow(Modelica.Media.IdealGases.Common.DataRecord(\"Air\", 0.0289651159, -4333.833858403446, 298609.6803431054, 1000.0, {10099.5016, -196.827561, 5.00915511, -0.00576101373, 1.06685993e-05, -7.94029797e-09, 2.18523191e-12}, {-176.796731, -3.921504225}, {241521.443, -1257.8746, 5.14455867, -0.000213854179, 7.06522784e-08, -1.07148349e-11, 6.57780015e-16}, {6462.26319, -8.147411905}, 287.0512249529787), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 25104.684) + X_liquid * Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.Medium.enthalpyOfWater_der(T, dT) + dX_liq * Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.Medium.enthalpyOfWater(T); +// h_der := X_steam * Modelica.Media.IdealGases.Common.Functions.h_Tlow_der(Modelica.Media.IdealGases.Common.DataRecord(\"H2O\", 0.01801528, -1.342338281725291e7, 549760.6476280135, 1000.0, {-39479.6083, 575.573102, 0.931782653, 0.00722271286, -7.34255737e-6, 4.95504349e-9, -1.336933246e-12}, {-33039.7431, 17.24205775}, {1.034972096e6, -2412.698562, 4.64611078, 0.002291998307, -6.836830479999999e-7, 9.426468930000001e-11, -4.82238053e-15}, {-13842.86509, -7.97814851}, 461.5233290850878), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 2.547494319e6, dT) + dX_steam * Modelica.Media.IdealGases.Common.Functions.h_Tlow(Modelica.Media.IdealGases.Common.DataRecord(\"H2O\", 0.01801528, -1.342338281725291e7, 549760.6476280135, 1000.0, {-39479.6083, 575.573102, 0.931782653, 0.00722271286, -7.34255737e-6, 4.95504349e-9, -1.336933246e-12}, {-33039.7431, 17.24205775}, {1.034972096e6, -2412.698562, 4.64611078, 0.002291998307, -6.836830479999999e-7, 9.426468930000001e-11, -4.82238053e-15}, {-13842.86509, -7.97814851}, 461.5233290850878), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 2.547494319e6) + X_air * Modelica.Media.IdealGases.Common.Functions.h_Tlow_der(Modelica.Media.IdealGases.Common.DataRecord(\"Air\", 0.0289651159, -4333.833858403446, 298609.6803431054, 1000.0, {10099.5016, -196.827561, 5.00915511, -0.00576101373, 1.06685993e-5, -7.94029797e-9, 2.18523191e-12}, {-176.796731, -3.921504225}, {241521.443, -1257.8746, 5.14455867, -2.13854179e-4, 7.06522784e-8, -1.07148349e-11, 6.57780015e-16}, {6462.26319, -8.147411905}, 287.0512249529787), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 25104.684, dT) + dX_air * Modelica.Media.IdealGases.Common.Functions.h_Tlow(Modelica.Media.IdealGases.Common.DataRecord(\"Air\", 0.0289651159, -4333.833858403446, 298609.6803431054, 1000.0, {10099.5016, -196.827561, 5.00915511, -0.00576101373, 1.06685993e-5, -7.94029797e-9, 2.18523191e-12}, {-176.796731, -3.921504225}, {241521.443, -1257.8746, 5.14455867, -2.13854179e-4, 7.06522784e-8, -1.07148349e-11, 6.57780015e-16}, {6462.26319, -8.147411905}, 287.0512249529787), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 25104.684) + X_liquid * Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.Medium.enthalpyOfWater_der(T, dT) + dX_liq * Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.Medium.enthalpyOfWater(T); // end Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.Medium.h_pTX_der; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.Medium.saturationPressure \"Return saturation pressure of water as a function of temperature T between 190 and 647.096 K\" // input Real Tsat(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Saturation temperature\"; -// output Real psat(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) \"Saturation pressure\"; +// output Real psat(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Saturation pressure\"; // algorithm // psat := Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.Medium.Utilities.spliceFunction(Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.Medium.saturationPressureLiquid(Tsat), Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.Medium.sublimationPressureIce(Tsat), Tsat - 273.16, 1.0); // end Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.Medium.saturationPressure; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.Medium.saturationPressureLiquid \"Return saturation pressure of water as a function of temperature T in the range of 273.16 to 647.096 K\" // input Real Tsat(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) \"Saturation temperature\"; -// output Real psat(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 100000.0) \"Saturation pressure\"; +// output Real psat(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 1e5) \"Saturation pressure\"; // protected Real Tcritical(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) = 647.096 \"Critical temperature\"; -// protected Real pcritical(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 100000.0) = 22064000.0 \"Critical pressure\"; +// protected Real pcritical(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 1e5) = 2.2064e7 \"Critical pressure\"; // protected Real[:] a = {-7.85951783, 1.84408259, -11.7866497, 22.6807411, -15.9618719, 1.80122502} \"Coefficients a[:]\"; // protected Real[:] n = {1.0, 1.5, 3.0, 3.5, 4.0, 7.5} \"Coefficients n[:]\"; // protected Real r1 = 1.0 - Tsat / Tcritical \"Common subexpression\"; @@ -2647,7 +2647,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // input Real dTsat(unit = \"K/s\") \"Saturation temperature derivative\"; // output Real psat_der(unit = \"Pa/s\") \"Saturation pressure derivative\"; // protected Real Tcritical(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) = 647.096 \"Critical temperature\"; -// protected Real pcritical(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 100000.0) = 22064000.0 \"Critical pressure\"; +// protected Real pcritical(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 1e5) = 2.2064e7 \"Critical pressure\"; // protected Real[:] a = {-7.85951783, 1.84408259, -11.7866497, 22.6807411, -15.9618719, 1.80122502} \"Coefficients a[:]\"; // protected Real[:] n = {1.0, 1.5, 3.0, 3.5, 4.0, 7.5} \"Coefficients n[:]\"; // protected Real r1 = 1.0 - Tsat / Tcritical \"Common subexpression 1\"; @@ -2666,7 +2666,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // end Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.Medium.saturationPressure_der; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.Medium.setState_pTX \"Return thermodynamic state as function of pressure p, temperature T and composition X\" -// input Real p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) \"Pressure\"; +// input Real p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Pressure\"; // input Real T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature\"; // input Real[:] X(quantity = fill(\"MassFraction\", size(X, 1)), unit = fill(\"kg/kg\", size(X, 1)), min = fill(0.0, size(X, 1)), max = fill(1.0, size(X, 1)), nominal = fill(0.1, size(X, 1))) = {0.01, 0.99} \"Mass fractions\"; // output Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.Medium.ThermodynamicState state \"Thermodynamic state\"; @@ -2675,8 +2675,8 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // end Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.Medium.setState_pTX; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.Medium.setState_phX \"Return thermodynamic state as function of pressure p, specific enthalpy h and composition X\" -// input Real p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) \"Pressure\"; -// input Real h(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -10000000000.0, max = 10000000000.0, nominal = 1000000.0) \"Specific enthalpy\"; +// input Real p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Pressure\"; +// input Real h(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -1e10, max = 1e10, nominal = 1e6) \"Specific enthalpy\"; // input Real[:] X(quantity = fill(\"MassFraction\", size(X, 1)), unit = fill(\"kg/kg\", size(X, 1)), min = fill(0.0, size(X, 1)), max = fill(1.0, size(X, 1)), nominal = fill(0.1, size(X, 1))) = {0.01, 0.99} \"Mass fractions\"; // output Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.Medium.ThermodynamicState state \"Thermodynamic state\"; // algorithm @@ -2685,25 +2685,25 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // // function Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.Medium.specificEnthalpy \"Return specific enthalpy of moist air as a function of the thermodynamic state record\" // input Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.Medium.ThermodynamicState state \"Thermodynamic state record\"; -// output Real h(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -10000000000.0, max = 10000000000.0, nominal = 1000000.0) \"Specific enthalpy\"; +// output Real h(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -1e10, max = 1e10, nominal = 1e6) \"Specific enthalpy\"; // algorithm // h := Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.Medium.h_pTX(state.p, state.T, state.X); // end Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.Medium.specificEnthalpy; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.Medium.specificEnthalpy_pTX \"Return specific enthalpy from p, T, and X or Xi\" -// input Real p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) \"Pressure\"; +// input Real p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Pressure\"; // input Real T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature\"; // input Real[:] X(quantity = fill(\"MassFraction\", size(X, 1)), unit = fill(\"kg/kg\", size(X, 1)), min = fill(0.0, size(X, 1)), max = fill(1.0, size(X, 1)), nominal = fill(0.1, size(X, 1))) = {0.01, 0.99} \"Mass fractions\"; -// output Real h(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -10000000000.0, max = 10000000000.0, nominal = 1000000.0) \"Specific enthalpy\"; +// output Real h(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -1e10, max = 1e10, nominal = 1e6) \"Specific enthalpy\"; // algorithm // h := Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.Medium.specificEnthalpy(Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.Medium.setState_pTX(p, T, X)); // end Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.Medium.specificEnthalpy_pTX; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.Medium.sublimationPressureIce \"Return sublimation pressure of water as a function of temperature T between 190 and 273.16 K\" // input Real Tsat(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) \"Sublimation temperature\"; -// output Real psat(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 100000.0) \"Sublimation pressure\"; +// output Real psat(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 1e5) \"Sublimation pressure\"; // protected Real Ttriple(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) = 273.16 \"Triple point temperature\"; -// protected Real ptriple(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 100000.0) = 611.657 \"Triple point pressure\"; +// protected Real ptriple(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 1e5) = 611.657 \"Triple point pressure\"; // protected Real[:] a = {-13.928169, 34.7078238} \"Coefficients a[:]\"; // protected Real[:] n = {-1.5, -1.25} \"Coefficients n[:]\"; // protected Real r1 = Tsat / Ttriple \"Common subexpression\"; @@ -2716,7 +2716,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // input Real dTsat(unit = \"K/s\") \"Sublimation temperature derivative\"; // output Real psat_der(unit = \"Pa/s\") \"Sublimation pressure derivative\"; // protected Real Ttriple(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) = 273.16 \"Triple point temperature\"; -// protected Real ptriple(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 100000.0) = 611.657 \"Triple point pressure\"; +// protected Real ptriple(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 1e5) = 611.657 \"Triple point pressure\"; // protected Real[:] a = {-13.928169, 34.7078238} \"Coefficients a[:]\"; // protected Real[:] n = {-1.5, -1.25} \"Coefficients n[:]\"; // protected Real r1 = Tsat / Ttriple \"Common subexpression 1\"; @@ -2733,8 +2733,8 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // end Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.Medium.temperature; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.Medium.temperature_phX \"Return temperature from p, h, and X or Xi\" -// input Real p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) \"Pressure\"; -// input Real h(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -10000000000.0, max = 10000000000.0, nominal = 1000000.0) \"Specific enthalpy\"; +// input Real p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Pressure\"; +// input Real h(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -1e10, max = 1e10, nominal = 1e6) \"Specific enthalpy\"; // input Real[:] X(quantity = fill(\"MassFraction\", size(X, 1)), unit = fill(\"kg/kg\", size(X, 1)), min = fill(0.0, size(X, 1)), max = fill(1.0, size(X, 1)), nominal = fill(0.1, size(X, 1))) = {0.01, 0.99} \"Mass fractions\"; // output Real T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature\"; // algorithm @@ -2750,16 +2750,16 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // // function Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.flowModel.Medium.density \"Returns density of ideal gas as a function of the thermodynamic state record\" // input Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.flowModel.Medium.ThermodynamicState state \"Thermodynamic state record\"; -// output Real d(quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0) \"Density\"; +// output Real d(quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0) \"Density\"; // algorithm // d := state.p / (Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.flowModel.Medium.gasConstant(state) * state.T); // end Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.flowModel.Medium.density; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.flowModel.Medium.dynamicViscosity \"Return dynamic viscosity as a function of the thermodynamic state record, valid from 123.15 K to 1273.15 K\" // input Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.flowModel.Medium.ThermodynamicState state \"Thermodynamic state record\"; -// output Real eta(quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 100000000.0, start = 0.001, nominal = 0.001) \"Dynamic viscosity\"; +// output Real eta(quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 1e8, start = 0.001, nominal = 0.001) \"Dynamic viscosity\"; // algorithm -// eta := 1e-06 * Modelica.Media.Incompressible.TableBased.Polynomials_Temp.evaluateWithRange({9.739110288630587e-15, -3.135372487033391e-11, 4.300487659564222e-08, -3.822801629175824e-05, 0.05042787436718076, 17.23926013924253}, -150.0, 1000.0, Modelica.SIunits.Conversions.to_degC(state.T)); +// eta := 1e-6 * Modelica.Media.Incompressible.TableBased.Polynomials_Temp.evaluateWithRange({9.739110288630587e-15, -3.1353724870333906e-11, 4.3004876595642225e-8, -3.822801629175824e-5, 0.05042787436718076, 17.23926013924253}, -149.99999999999997, 1000.0000000000001, Modelica.SIunits.Conversions.to_degC(state.T)); // end Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.flowModel.Medium.dynamicViscosity; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.flowModel.Medium.gasConstant \"Return ideal gas constant as a function from thermodynamic state, only valid for phi<1\" @@ -2771,7 +2771,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // // function Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.flowModel.Medium.pressure \"Returns pressure of ideal gas as a function of the thermodynamic state record\" // input Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.flowModel.Medium.ThermodynamicState state \"Thermodynamic state record\"; -// output Real p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) \"Pressure\"; +// output Real p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Pressure\"; // algorithm // p := state.p; // end Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.flowModel.Medium.pressure; @@ -2812,7 +2812,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // if Re > Re1 then // Re := -2.0 * sqrt(lambda2) * log10(2.51 / sqrt(lambda2) + 0.27 * Delta) \"Colebrook-White\"; // aux2 := sqrt(aux1 * abs(dp_fric)); -// dRe_ddp := 0.4342944819032518 * ((-2.0 * log(2.51 / aux2 + 0.27 * Delta) * aux1 / (2.0 * aux2)) + 5.02 / (2.0 * abs(dp_fric) * (2.51 / aux2 + 0.27 * Delta))); +// dRe_ddp := 0.43429448190325176 * ((-2.0 * log(2.51 / aux2 + 0.27 * Delta) * aux1 / (2.0 * aux2)) + 5.02 / (2.0 * abs(dp_fric) * (2.51 / aux2 + 0.27 * Delta))); // if Re < Re2 then // (Re, dRe_ddp) := Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.flowModel.WallFriction.Internal.m_flow_of_dp_fric.interpolateInRegion2_withDerivative(lambda2, Re1, Re2, Delta, dp_fric); // end if; @@ -2842,7 +2842,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // protected Real x2 = log10(L2); // protected Real aux5 = -2.0 * sqrt(L2) * log10(aux4); // protected Real y2 = log10(aux5); -// protected Real y2d = 0.5 + 1.090079149577162 / (aux5 * aux4); +// protected Real y2d = 0.5 + 1.0900791495771618 / (aux5 * aux4); // algorithm // (y, dy_dx) := Modelica.Fluid.Utilities.cubicHermite_withDerivative(x, x1, x2, y1, y2, y1d, y2d); // Re := 10.0 ^ y; @@ -2859,8 +2859,8 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // input Real diameter(quantity = \"Length\", unit = \"m\", min = 0.0) \"Inner (hydraulic) diameter of pipe\"; // input Real g_times_height_ab(unit = \"m2/s2\") \"Gravity times (Height(port_b) - Height(port_a))\"; // input Real crossArea(quantity = \"Area\", unit = \"m2\") = 3.141592653589793 * diameter ^ 2.0 / 4.0 \"Inner cross section area\"; -// input Real roughness(quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) = 2.5e-05 \"Absolute roughness of pipe, with a default for a smooth steel pipe (dummy if use_roughness = false)\"; -// input Real dp_small(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 100000.0) = 1.0 \"Regularization of zero flow if |dp| < dp_small (dummy if use_dp_small = false)\"; +// input Real roughness(quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) = 2.5e-5 \"Absolute roughness of pipe, with a default for a smooth steel pipe (dummy if use_roughness = false)\"; +// input Real dp_small(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 1e5) = 1.0 \"Regularization of zero flow if |dp| < dp_small (dummy if use_dp_small = false)\"; // input Real Re_turbulent(quantity = \"ReynoldsNumber\", unit = \"1\") = 4000.0 \"Turbulent flow if Re >= Re_turbulent (dummy if use_Re_turbulent = false)\"; // output Real m_flow(quantity = \"MassFlowRate\", unit = \"kg/s\") \"Mass flow rate from port_a to port_b\"; // protected Real Delta(min = 0.0) = roughness / diameter \"Relative roughness\"; @@ -2906,7 +2906,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // input Real length(quantity = \"Length\", unit = \"m\") \"Length of pipe\"; // input Real diameter(quantity = \"Length\", unit = \"m\", min = 0.0) \"Inner (hydraulic) diameter of pipe\"; // input Real crossArea(quantity = \"Area\", unit = \"m2\") = 3.141592653589793 * diameter ^ 2.0 / 4.0 \"Inner cross section area\"; -// input Real roughness(quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) = 2.5e-05 \"Absolute roughness of pipe, with a default for a smooth steel pipe (dummy if use_roughness = false)\"; +// input Real roughness(quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) = 2.5e-5 \"Absolute roughness of pipe, with a default for a smooth steel pipe (dummy if use_roughness = false)\"; // input Real m_flow_small(quantity = \"MassFlowRate\", unit = \"kg/s\") = 0.01 \"Regularization of zero flow if |m_flow| < m_flow_small (dummy if use_m_flow_small = false)\"; // input Real Re_turbulent(quantity = \"ReynoldsNumber\", unit = \"1\") = 4000.0 \"Turbulent flow if Re >= Re_turbulent (dummy if use_Re_turbulent = false)\"; // output Real dp(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\") \"Pressure loss (dp = port_a.p - port_b.p)\"; @@ -2934,7 +2934,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // protected Real x1 = log10(Re1); // protected Real y1 = log10(64.0 * Re1); // protected Real yd1 = 1.0; -// protected Real aux1 = 1.121782646756099; +// protected Real aux1 = 1.1217826467560994; // protected Real aux2 = Delta / 3.7 + 5.74 / Re2 ^ 0.9; // protected Real x2 = log10(Re2); // protected Real dx; @@ -2968,12 +2968,12 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // end Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.heatTransfer.Medium.temperature; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.Medium.T_phX \"Return temperature as a function of pressure p, specific enthalpy h and composition X\" -// input Real p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) \"Pressure\"; -// input Real h(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -10000000000.0, max = 10000000000.0, nominal = 1000000.0) \"Specific enthalpy\"; +// input Real p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Pressure\"; +// input Real h(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -1e10, max = 1e10, nominal = 1e6) \"Specific enthalpy\"; // input Real[:] X(quantity = fill(\"MassFraction\", size(X, 1)), unit = fill(\"kg/kg\", size(X, 1)), min = fill(0.0, size(X, 1)), max = fill(1.0, size(X, 1)), nominal = fill(0.1, size(X, 1))) \"Mass fractions of composition\"; // output Real T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature\"; // algorithm -// T := Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.Medium.T_phX.Internal.solve(h, 190.0, 647.0, p, X[1:1], Modelica.Media.IdealGases.Common.DataRecord(\"H2O\", 0.01801528, -13423382.81725291, 549760.6476280135, 1000.0, {-39479.6083, 575.5731019999999, 0.931782653, 0.00722271286, -7.34255737e-06, 4.95504349e-09, -1.336933246e-12}, {-33039.7431, 17.24205775}, {1034972.096, -2412.698562, 4.64611078, 0.002291998307, -6.836830479999999e-07, 9.426468930000001e-11, -4.82238053e-15}, {-13842.86509, -7.97814851}, 461.5233290850878), 1e-13); +// T := Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.Medium.T_phX.Internal.solve(h, 190.0, 647.0, p, X[1:1], Modelica.Media.IdealGases.Common.DataRecord(\"H2O\", 0.01801528, -1.342338281725291e7, 549760.6476280135, 1000.0, {-39479.6083, 575.573102, 0.931782653, 0.00722271286, -7.34255737e-6, 4.95504349e-9, -1.336933246e-12}, {-33039.7431, 17.24205775}, {1.034972096e6, -2412.698562, 4.64611078, 0.002291998307, -6.836830479999999e-7, 9.426468930000001e-11, -4.82238053e-15}, {-13842.86509, -7.97814851}, 461.5233290850878), 1e-13); // end Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.Medium.T_phX; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.Medium.T_phX.Internal.f_nonlinear @@ -3142,7 +3142,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // protected Real y; // algorithm // scaledX1 := x / deltax; -// scaledX := scaledX1 * 1.570796326794897; +// scaledX := scaledX1 * 1.5707963267948966; // if scaledX1 <= -0.999999999 then // y := 0.0; // elseif scaledX1 >= 0.999999999 then @@ -3169,7 +3169,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // protected Real y; // algorithm // scaledX1 := x / deltax; -// scaledX := scaledX1 * 1.570796326794897; +// scaledX := scaledX1 * 1.5707963267948966; // dscaledX1 := (dx - scaledX1 * ddeltax) / deltax; // if scaledX1 <= -0.99999999999 then // y := 0.0; @@ -3180,13 +3180,13 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // end if; // out := dpos * y + (1.0 - y) * dneg; // if abs(scaledX1) < 1.0 then -// out := out + (pos - neg) * dscaledX1 * 1.570796326794897 / 2.0 / (cosh(tan(scaledX)) * cos(scaledX)) ^ 2.0; +// out := out + (pos - neg) * dscaledX1 * 1.5707963267948966 / 2.0 / (cosh(tan(scaledX)) * cos(scaledX)) ^ 2.0; // end if; // end Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.Medium.Utilities.spliceFunction_der; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.Medium.density \"Returns density of ideal gas as a function of the thermodynamic state record\" // input Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.Medium.ThermodynamicState state \"Thermodynamic state record\"; -// output Real d(quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0) \"Density\"; +// output Real d(quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0) \"Density\"; // algorithm // d := state.p / (Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.Medium.gasConstant(state) * state.T); // end Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.Medium.density; @@ -3218,7 +3218,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // input Real T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) \"Temperature\"; // input Real[:] X(quantity = fill(\"MassFraction\", size(X, 1)), unit = fill(\"1\", size(X, 1)), min = fill(0.0, size(X, 1)), max = fill(1.0, size(X, 1))) \"Mass fractions of moist air\"; // output Real h(quantity = \"SpecificEnergy\", unit = \"J/kg\") \"Specific enthalpy at p, T, X\"; -// protected Real p_steam_sat(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 100000.0) \"partial saturation pressure of steam\"; +// protected Real p_steam_sat(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 1e5) \"partial saturation pressure of steam\"; // protected Real X_sat(quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0) \"Absolute humidity per unit mass of moist air\"; // protected Real X_liquid(quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0) \"Mass fraction of liquid water\"; // protected Real X_steam(quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0) \"Mass fraction of steam water\"; @@ -3229,7 +3229,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // X_liquid := max(X[1] - X_sat, 0.0); // X_steam := X[1] - X_liquid; // X_air := 1.0 - X[1]; -// h := Modelica.Media.IdealGases.Common.Functions.h_Tlow(Modelica.Media.IdealGases.Common.DataRecord(\"H2O\", 0.01801528, -13423382.81725291, 549760.6476280135, 1000.0, {-39479.6083, 575.5731019999999, 0.931782653, 0.00722271286, -7.34255737e-06, 4.95504349e-09, -1.336933246e-12}, {-33039.7431, 17.24205775}, {1034972.096, -2412.698562, 4.64611078, 0.002291998307, -6.836830479999999e-07, 9.426468930000001e-11, -4.82238053e-15}, {-13842.86509, -7.97814851}, 461.5233290850878), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 2547494.319) * X_steam + Modelica.Media.IdealGases.Common.Functions.h_Tlow(Modelica.Media.IdealGases.Common.DataRecord(\"Air\", 0.0289651159, -4333.833858403446, 298609.6803431054, 1000.0, {10099.5016, -196.827561, 5.00915511, -0.00576101373, 1.06685993e-05, -7.94029797e-09, 2.18523191e-12}, {-176.796731, -3.921504225}, {241521.443, -1257.8746, 5.14455867, -0.000213854179, 7.06522784e-08, -1.07148349e-11, 6.57780015e-16}, {6462.26319, -8.147411905}, 287.0512249529787), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 25104.684) * X_air + Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.Medium.enthalpyOfWater(T) * X_liquid; +// h := Modelica.Media.IdealGases.Common.Functions.h_Tlow(Modelica.Media.IdealGases.Common.DataRecord(\"H2O\", 0.01801528, -1.342338281725291e7, 549760.6476280135, 1000.0, {-39479.6083, 575.573102, 0.931782653, 0.00722271286, -7.34255737e-6, 4.95504349e-9, -1.336933246e-12}, {-33039.7431, 17.24205775}, {1.034972096e6, -2412.698562, 4.64611078, 0.002291998307, -6.836830479999999e-7, 9.426468930000001e-11, -4.82238053e-15}, {-13842.86509, -7.97814851}, 461.5233290850878), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 2.547494319e6) * X_steam + Modelica.Media.IdealGases.Common.Functions.h_Tlow(Modelica.Media.IdealGases.Common.DataRecord(\"Air\", 0.0289651159, -4333.833858403446, 298609.6803431054, 1000.0, {10099.5016, -196.827561, 5.00915511, -0.00576101373, 1.06685993e-5, -7.94029797e-9, 2.18523191e-12}, {-176.796731, -3.921504225}, {241521.443, -1257.8746, 5.14455867, -2.13854179e-4, 7.06522784e-8, -1.07148349e-11, 6.57780015e-16}, {6462.26319, -8.147411905}, 287.0512249529787), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 25104.684) * X_air + Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.Medium.enthalpyOfWater(T) * X_liquid; // end Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.Medium.h_pTX; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.Medium.h_pTX_der \"Derivative function of h_pTX\" @@ -3240,7 +3240,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // input Real dT(unit = \"K/s\") \"Temperature derivative\"; // input Real[:] dX(unit = \"1/s\") \"Composition derivative\"; // output Real h_der(unit = \"J/(kg.s)\") \"Time derivative of specific enthalpy\"; -// protected Real p_steam_sat(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 100000.0) \"partial saturation pressure of steam\"; +// protected Real p_steam_sat(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 1e5) \"partial saturation pressure of steam\"; // protected Real X_sat(quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0) \"Absolute humidity per unit mass of moist air\"; // protected Real X_liquid(quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0) \"Mass fraction of liquid water\"; // protected Real X_steam(quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0) \"Mass fraction of steam water\"; @@ -3255,29 +3255,29 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // p_steam_sat := Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.Medium.saturationPressure(T); // x_sat := p_steam_sat * 0.6219647130774989 / max(1e-13, p - p_steam_sat); // X_sat := min(x_sat * (1.0 - X[1]), 1.0); -// X_liquid := Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.Medium.Utilities.smoothMax(X[1] - X_sat, 0.0, 1e-05); +// X_liquid := Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.Medium.Utilities.smoothMax(X[1] - X_sat, 0.0, 1e-5); // X_steam := X[1] - X_liquid; // X_air := 1.0 - X[1]; // dX_air := -dX[1]; // dps := Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.Medium.saturationPressure_der(T, dT); // dx_sat := 0.6219647130774989 * (dps * (p - p_steam_sat) - p_steam_sat * (dp - dps)) / (p - p_steam_sat) / (p - p_steam_sat); -// dX_liq := Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.Medium.Utilities.smoothMax_der(X[1] - X_sat, 0.0, 1e-05, (1.0 + x_sat) * dX[1] - (1.0 - X[1]) * dx_sat, 0.0, 0.0); +// dX_liq := Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.Medium.Utilities.smoothMax_der(X[1] - X_sat, 0.0, 1e-5, (1.0 + x_sat) * dX[1] - (1.0 - X[1]) * dx_sat, 0.0, 0.0); // dX_steam := dX[1] - dX_liq; -// h_der := X_steam * Modelica.Media.IdealGases.Common.Functions.h_Tlow_der(Modelica.Media.IdealGases.Common.DataRecord(\"H2O\", 0.01801528, -13423382.81725291, 549760.6476280135, 1000.0, {-39479.6083, 575.5731019999999, 0.931782653, 0.00722271286, -7.34255737e-06, 4.95504349e-09, -1.336933246e-12}, {-33039.7431, 17.24205775}, {1034972.096, -2412.698562, 4.64611078, 0.002291998307, -6.836830479999999e-07, 9.426468930000001e-11, -4.82238053e-15}, {-13842.86509, -7.97814851}, 461.5233290850878), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 2547494.319, dT) + dX_steam * Modelica.Media.IdealGases.Common.Functions.h_Tlow(Modelica.Media.IdealGases.Common.DataRecord(\"H2O\", 0.01801528, -13423382.81725291, 549760.6476280135, 1000.0, {-39479.6083, 575.5731019999999, 0.931782653, 0.00722271286, -7.34255737e-06, 4.95504349e-09, -1.336933246e-12}, {-33039.7431, 17.24205775}, {1034972.096, -2412.698562, 4.64611078, 0.002291998307, -6.836830479999999e-07, 9.426468930000001e-11, -4.82238053e-15}, {-13842.86509, -7.97814851}, 461.5233290850878), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 2547494.319) + X_air * Modelica.Media.IdealGases.Common.Functions.h_Tlow_der(Modelica.Media.IdealGases.Common.DataRecord(\"Air\", 0.0289651159, -4333.833858403446, 298609.6803431054, 1000.0, {10099.5016, -196.827561, 5.00915511, -0.00576101373, 1.06685993e-05, -7.94029797e-09, 2.18523191e-12}, {-176.796731, -3.921504225}, {241521.443, -1257.8746, 5.14455867, -0.000213854179, 7.06522784e-08, -1.07148349e-11, 6.57780015e-16}, {6462.26319, -8.147411905}, 287.0512249529787), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 25104.684, dT) + dX_air * Modelica.Media.IdealGases.Common.Functions.h_Tlow(Modelica.Media.IdealGases.Common.DataRecord(\"Air\", 0.0289651159, -4333.833858403446, 298609.6803431054, 1000.0, {10099.5016, -196.827561, 5.00915511, -0.00576101373, 1.06685993e-05, -7.94029797e-09, 2.18523191e-12}, {-176.796731, -3.921504225}, {241521.443, -1257.8746, 5.14455867, -0.000213854179, 7.06522784e-08, -1.07148349e-11, 6.57780015e-16}, {6462.26319, -8.147411905}, 287.0512249529787), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 25104.684) + X_liquid * Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.Medium.enthalpyOfWater_der(T, dT) + dX_liq * Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.Medium.enthalpyOfWater(T); +// h_der := X_steam * Modelica.Media.IdealGases.Common.Functions.h_Tlow_der(Modelica.Media.IdealGases.Common.DataRecord(\"H2O\", 0.01801528, -1.342338281725291e7, 549760.6476280135, 1000.0, {-39479.6083, 575.573102, 0.931782653, 0.00722271286, -7.34255737e-6, 4.95504349e-9, -1.336933246e-12}, {-33039.7431, 17.24205775}, {1.034972096e6, -2412.698562, 4.64611078, 0.002291998307, -6.836830479999999e-7, 9.426468930000001e-11, -4.82238053e-15}, {-13842.86509, -7.97814851}, 461.5233290850878), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 2.547494319e6, dT) + dX_steam * Modelica.Media.IdealGases.Common.Functions.h_Tlow(Modelica.Media.IdealGases.Common.DataRecord(\"H2O\", 0.01801528, -1.342338281725291e7, 549760.6476280135, 1000.0, {-39479.6083, 575.573102, 0.931782653, 0.00722271286, -7.34255737e-6, 4.95504349e-9, -1.336933246e-12}, {-33039.7431, 17.24205775}, {1.034972096e6, -2412.698562, 4.64611078, 0.002291998307, -6.836830479999999e-7, 9.426468930000001e-11, -4.82238053e-15}, {-13842.86509, -7.97814851}, 461.5233290850878), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 2.547494319e6) + X_air * Modelica.Media.IdealGases.Common.Functions.h_Tlow_der(Modelica.Media.IdealGases.Common.DataRecord(\"Air\", 0.0289651159, -4333.833858403446, 298609.6803431054, 1000.0, {10099.5016, -196.827561, 5.00915511, -0.00576101373, 1.06685993e-5, -7.94029797e-9, 2.18523191e-12}, {-176.796731, -3.921504225}, {241521.443, -1257.8746, 5.14455867, -2.13854179e-4, 7.06522784e-8, -1.07148349e-11, 6.57780015e-16}, {6462.26319, -8.147411905}, 287.0512249529787), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 25104.684, dT) + dX_air * Modelica.Media.IdealGases.Common.Functions.h_Tlow(Modelica.Media.IdealGases.Common.DataRecord(\"Air\", 0.0289651159, -4333.833858403446, 298609.6803431054, 1000.0, {10099.5016, -196.827561, 5.00915511, -0.00576101373, 1.06685993e-5, -7.94029797e-9, 2.18523191e-12}, {-176.796731, -3.921504225}, {241521.443, -1257.8746, 5.14455867, -2.13854179e-4, 7.06522784e-8, -1.07148349e-11, 6.57780015e-16}, {6462.26319, -8.147411905}, 287.0512249529787), T, true, Modelica.Media.Interfaces.Choices.ReferenceEnthalpy.UserDefined, 25104.684) + X_liquid * Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.Medium.enthalpyOfWater_der(T, dT) + dX_liq * Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.Medium.enthalpyOfWater(T); // end Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.Medium.h_pTX_der; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.Medium.saturationPressure \"Return saturation pressure of water as a function of temperature T between 190 and 647.096 K\" // input Real Tsat(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Saturation temperature\"; -// output Real psat(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) \"Saturation pressure\"; +// output Real psat(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Saturation pressure\"; // algorithm // psat := Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.Medium.Utilities.spliceFunction(Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.Medium.saturationPressureLiquid(Tsat), Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.Medium.sublimationPressureIce(Tsat), Tsat - 273.16, 1.0); // end Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.Medium.saturationPressure; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.Medium.saturationPressureLiquid \"Return saturation pressure of water as a function of temperature T in the range of 273.16 to 647.096 K\" // input Real Tsat(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) \"Saturation temperature\"; -// output Real psat(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 100000.0) \"Saturation pressure\"; +// output Real psat(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 1e5) \"Saturation pressure\"; // protected Real Tcritical(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) = 647.096 \"Critical temperature\"; -// protected Real pcritical(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 100000.0) = 22064000.0 \"Critical pressure\"; +// protected Real pcritical(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 1e5) = 2.2064e7 \"Critical pressure\"; // protected Real[:] a = {-7.85951783, 1.84408259, -11.7866497, 22.6807411, -15.9618719, 1.80122502} \"Coefficients a[:]\"; // protected Real[:] n = {1.0, 1.5, 3.0, 3.5, 4.0, 7.5} \"Coefficients n[:]\"; // protected Real r1 = 1.0 - Tsat / Tcritical \"Common subexpression\"; @@ -3290,7 +3290,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // input Real dTsat(unit = \"K/s\") \"Saturation temperature derivative\"; // output Real psat_der(unit = \"Pa/s\") \"Saturation pressure derivative\"; // protected Real Tcritical(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) = 647.096 \"Critical temperature\"; -// protected Real pcritical(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 100000.0) = 22064000.0 \"Critical pressure\"; +// protected Real pcritical(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 1e5) = 2.2064e7 \"Critical pressure\"; // protected Real[:] a = {-7.85951783, 1.84408259, -11.7866497, 22.6807411, -15.9618719, 1.80122502} \"Coefficients a[:]\"; // protected Real[:] n = {1.0, 1.5, 3.0, 3.5, 4.0, 7.5} \"Coefficients n[:]\"; // protected Real r1 = 1.0 - Tsat / Tcritical \"Common subexpression 1\"; @@ -3309,7 +3309,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // end Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.Medium.saturationPressure_der; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.Medium.setState_pTX \"Return thermodynamic state as function of pressure p, temperature T and composition X\" -// input Real p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) \"Pressure\"; +// input Real p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Pressure\"; // input Real T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature\"; // input Real[:] X(quantity = fill(\"MassFraction\", size(X, 1)), unit = fill(\"kg/kg\", size(X, 1)), min = fill(0.0, size(X, 1)), max = fill(1.0, size(X, 1)), nominal = fill(0.1, size(X, 1))) = {0.01, 0.99} \"Mass fractions\"; // output Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.Medium.ThermodynamicState state \"Thermodynamic state\"; @@ -3318,8 +3318,8 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // end Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.Medium.setState_pTX; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.Medium.setState_phX \"Return thermodynamic state as function of pressure p, specific enthalpy h and composition X\" -// input Real p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) \"Pressure\"; -// input Real h(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -10000000000.0, max = 10000000000.0, nominal = 1000000.0) \"Specific enthalpy\"; +// input Real p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Pressure\"; +// input Real h(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -1e10, max = 1e10, nominal = 1e6) \"Specific enthalpy\"; // input Real[:] X(quantity = fill(\"MassFraction\", size(X, 1)), unit = fill(\"kg/kg\", size(X, 1)), min = fill(0.0, size(X, 1)), max = fill(1.0, size(X, 1)), nominal = fill(0.1, size(X, 1))) = {0.01, 0.99} \"Mass fractions\"; // output Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.Medium.ThermodynamicState state \"Thermodynamic state\"; // algorithm @@ -3328,25 +3328,25 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // // function Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.Medium.specificEnthalpy \"Return specific enthalpy of moist air as a function of the thermodynamic state record\" // input Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.Medium.ThermodynamicState state \"Thermodynamic state record\"; -// output Real h(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -10000000000.0, max = 10000000000.0, nominal = 1000000.0) \"Specific enthalpy\"; +// output Real h(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -1e10, max = 1e10, nominal = 1e6) \"Specific enthalpy\"; // algorithm // h := Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.Medium.h_pTX(state.p, state.T, state.X); // end Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.Medium.specificEnthalpy; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.Medium.specificEnthalpy_pTX \"Return specific enthalpy from p, T, and X or Xi\" -// input Real p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) \"Pressure\"; +// input Real p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Pressure\"; // input Real T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature\"; // input Real[:] X(quantity = fill(\"MassFraction\", size(X, 1)), unit = fill(\"kg/kg\", size(X, 1)), min = fill(0.0, size(X, 1)), max = fill(1.0, size(X, 1)), nominal = fill(0.1, size(X, 1))) = {0.01, 0.99} \"Mass fractions\"; -// output Real h(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -10000000000.0, max = 10000000000.0, nominal = 1000000.0) \"Specific enthalpy\"; +// output Real h(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -1e10, max = 1e10, nominal = 1e6) \"Specific enthalpy\"; // algorithm // h := Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.Medium.specificEnthalpy(Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.Medium.setState_pTX(p, T, X)); // end Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.Medium.specificEnthalpy_pTX; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.Medium.sublimationPressureIce \"Return sublimation pressure of water as a function of temperature T between 190 and 273.16 K\" // input Real Tsat(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) \"Sublimation temperature\"; -// output Real psat(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 100000.0) \"Sublimation pressure\"; +// output Real psat(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 1e5) \"Sublimation pressure\"; // protected Real Ttriple(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) = 273.16 \"Triple point temperature\"; -// protected Real ptriple(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 100000.0) = 611.657 \"Triple point pressure\"; +// protected Real ptriple(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 1e5) = 611.657 \"Triple point pressure\"; // protected Real[:] a = {-13.928169, 34.7078238} \"Coefficients a[:]\"; // protected Real[:] n = {-1.5, -1.25} \"Coefficients n[:]\"; // protected Real r1 = Tsat / Ttriple \"Common subexpression\"; @@ -3359,7 +3359,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // input Real dTsat(unit = \"K/s\") \"Sublimation temperature derivative\"; // output Real psat_der(unit = \"Pa/s\") \"Sublimation pressure derivative\"; // protected Real Ttriple(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) = 273.16 \"Triple point temperature\"; -// protected Real ptriple(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 100000.0) = 611.657 \"Triple point pressure\"; +// protected Real ptriple(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 1e5) = 611.657 \"Triple point pressure\"; // protected Real[:] a = {-13.928169, 34.7078238} \"Coefficients a[:]\"; // protected Real[:] n = {-1.5, -1.25} \"Coefficients n[:]\"; // protected Real r1 = Tsat / Ttriple \"Common subexpression 1\"; @@ -3376,8 +3376,8 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // end Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.Medium.temperature; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.Medium.temperature_phX \"Return temperature from p, h, and X or Xi\" -// input Real p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) \"Pressure\"; -// input Real h(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -10000000000.0, max = 10000000000.0, nominal = 1000000.0) \"Specific enthalpy\"; +// input Real p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Pressure\"; +// input Real h(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -1e10, max = 1e10, nominal = 1e6) \"Specific enthalpy\"; // input Real[:] X(quantity = fill(\"MassFraction\", size(X, 1)), unit = fill(\"kg/kg\", size(X, 1)), min = fill(0.0, size(X, 1)), max = fill(1.0, size(X, 1)), nominal = fill(0.1, size(X, 1))) = {0.01, 0.99} \"Mass fractions\"; // output Real T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature\"; // algorithm @@ -3393,16 +3393,16 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // // function Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.flowModel.Medium.density \"Returns density of ideal gas as a function of the thermodynamic state record\" // input Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.flowModel.Medium.ThermodynamicState state \"Thermodynamic state record\"; -// output Real d(quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0) \"Density\"; +// output Real d(quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0) \"Density\"; // algorithm // d := state.p / (Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.flowModel.Medium.gasConstant(state) * state.T); // end Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.flowModel.Medium.density; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.flowModel.Medium.dynamicViscosity \"Return dynamic viscosity as a function of the thermodynamic state record, valid from 123.15 K to 1273.15 K\" // input Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.flowModel.Medium.ThermodynamicState state \"Thermodynamic state record\"; -// output Real eta(quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 100000000.0, start = 0.001, nominal = 0.001) \"Dynamic viscosity\"; +// output Real eta(quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 1e8, start = 0.001, nominal = 0.001) \"Dynamic viscosity\"; // algorithm -// eta := 1e-06 * Modelica.Media.Incompressible.TableBased.Polynomials_Temp.evaluateWithRange({9.739110288630587e-15, -3.135372487033391e-11, 4.300487659564222e-08, -3.822801629175824e-05, 0.05042787436718076, 17.23926013924253}, -150.0, 1000.0, Modelica.SIunits.Conversions.to_degC(state.T)); +// eta := 1e-6 * Modelica.Media.Incompressible.TableBased.Polynomials_Temp.evaluateWithRange({9.739110288630587e-15, -3.1353724870333906e-11, 4.3004876595642225e-8, -3.822801629175824e-5, 0.05042787436718076, 17.23926013924253}, -149.99999999999997, 1000.0000000000001, Modelica.SIunits.Conversions.to_degC(state.T)); // end Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.flowModel.Medium.dynamicViscosity; // // function Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.flowModel.Medium.gasConstant \"Return ideal gas constant as a function from thermodynamic state, only valid for phi<1\" @@ -3414,7 +3414,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // // function Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.flowModel.Medium.pressure \"Returns pressure of ideal gas as a function of the thermodynamic state record\" // input Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.flowModel.Medium.ThermodynamicState state \"Thermodynamic state record\"; -// output Real p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) \"Pressure\"; +// output Real p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Pressure\"; // algorithm // p := state.p; // end Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.flowModel.Medium.pressure; @@ -3455,7 +3455,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // if Re > Re1 then // Re := -2.0 * sqrt(lambda2) * log10(2.51 / sqrt(lambda2) + 0.27 * Delta) \"Colebrook-White\"; // aux2 := sqrt(aux1 * abs(dp_fric)); -// dRe_ddp := 0.4342944819032518 * ((-2.0 * log(2.51 / aux2 + 0.27 * Delta) * aux1 / (2.0 * aux2)) + 5.02 / (2.0 * abs(dp_fric) * (2.51 / aux2 + 0.27 * Delta))); +// dRe_ddp := 0.43429448190325176 * ((-2.0 * log(2.51 / aux2 + 0.27 * Delta) * aux1 / (2.0 * aux2)) + 5.02 / (2.0 * abs(dp_fric) * (2.51 / aux2 + 0.27 * Delta))); // if Re < Re2 then // (Re, dRe_ddp) := Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.flowModel.WallFriction.Internal.m_flow_of_dp_fric.interpolateInRegion2_withDerivative(lambda2, Re1, Re2, Delta, dp_fric); // end if; @@ -3485,7 +3485,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // protected Real x2 = log10(L2); // protected Real aux5 = -2.0 * sqrt(L2) * log10(aux4); // protected Real y2 = log10(aux5); -// protected Real y2d = 0.5 + 1.090079149577162 / (aux5 * aux4); +// protected Real y2d = 0.5 + 1.0900791495771618 / (aux5 * aux4); // algorithm // (y, dy_dx) := Modelica.Fluid.Utilities.cubicHermite_withDerivative(x, x1, x2, y1, y2, y1d, y2d); // Re := 10.0 ^ y; @@ -3502,8 +3502,8 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // input Real diameter(quantity = \"Length\", unit = \"m\", min = 0.0) \"Inner (hydraulic) diameter of pipe\"; // input Real g_times_height_ab(unit = \"m2/s2\") \"Gravity times (Height(port_b) - Height(port_a))\"; // input Real crossArea(quantity = \"Area\", unit = \"m2\") = 3.141592653589793 * diameter ^ 2.0 / 4.0 \"Inner cross section area\"; -// input Real roughness(quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) = 2.5e-05 \"Absolute roughness of pipe, with a default for a smooth steel pipe (dummy if use_roughness = false)\"; -// input Real dp_small(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 100000.0) = 1.0 \"Regularization of zero flow if |dp| < dp_small (dummy if use_dp_small = false)\"; +// input Real roughness(quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) = 2.5e-5 \"Absolute roughness of pipe, with a default for a smooth steel pipe (dummy if use_roughness = false)\"; +// input Real dp_small(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 1e5) = 1.0 \"Regularization of zero flow if |dp| < dp_small (dummy if use_dp_small = false)\"; // input Real Re_turbulent(quantity = \"ReynoldsNumber\", unit = \"1\") = 4000.0 \"Turbulent flow if Re >= Re_turbulent (dummy if use_Re_turbulent = false)\"; // output Real m_flow(quantity = \"MassFlowRate\", unit = \"kg/s\") \"Mass flow rate from port_a to port_b\"; // protected Real Delta(min = 0.0) = roughness / diameter \"Relative roughness\"; @@ -3549,7 +3549,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // input Real length(quantity = \"Length\", unit = \"m\") \"Length of pipe\"; // input Real diameter(quantity = \"Length\", unit = \"m\", min = 0.0) \"Inner (hydraulic) diameter of pipe\"; // input Real crossArea(quantity = \"Area\", unit = \"m2\") = 3.141592653589793 * diameter ^ 2.0 / 4.0 \"Inner cross section area\"; -// input Real roughness(quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) = 2.5e-05 \"Absolute roughness of pipe, with a default for a smooth steel pipe (dummy if use_roughness = false)\"; +// input Real roughness(quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) = 2.5e-5 \"Absolute roughness of pipe, with a default for a smooth steel pipe (dummy if use_roughness = false)\"; // input Real m_flow_small(quantity = \"MassFlowRate\", unit = \"kg/s\") = 0.01 \"Regularization of zero flow if |m_flow| < m_flow_small (dummy if use_m_flow_small = false)\"; // input Real Re_turbulent(quantity = \"ReynoldsNumber\", unit = \"1\") = 4000.0 \"Turbulent flow if Re >= Re_turbulent (dummy if use_Re_turbulent = false)\"; // output Real dp(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\") \"Pressure loss (dp = port_a.p - port_b.p)\"; @@ -3577,7 +3577,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // protected Real x1 = log10(Re1); // protected Real y1 = log10(64.0 * Re1); // protected Real yd1 = 1.0; -// protected Real aux1 = 1.121782646756099; +// protected Real aux1 = 1.1217826467560994; // protected Real aux2 = Delta / 3.7 + 5.74 / Re2 ^ 0.9; // protected Real x2 = log10(Re2); // protected Real dx; @@ -3704,7 +3704,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // dy_dx := y1 * h00d / h + y1d * h10d + y2 * h01d / h + y2d * h11d; // else // y := (y1 + y2) / 2.0; -// dy_dx := /*Real*/(sign(y2 - y1)) * 9.999999999999999e+59; +// dy_dx := /*Real*/(sign(y2 - y1)) * 1e60; // end if; // end Modelica.Fluid.Utilities.cubicHermite_withDerivative; // @@ -3764,7 +3764,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // useSingleCubicPolynomial := true; // end if; // elseif abs(y1d + y0d - 2.0 * Delta0) < 1e-13 then -// aux02 := (6.0 * Delta0 * (y1d + y0d - 1.5 * Delta0) - y1d * y0d - y1d ^ 2.0 - y0d ^ 2.0) * (if y1d + y0d - 2.0 * Delta0 >= 0.0 then 1.0 else -1.0) * 9.999999999999999e+59; +// aux02 := (6.0 * Delta0 * (y1d + y0d - 1.5 * Delta0) - y1d * y0d - y1d ^ 2.0 - y0d ^ 2.0) * (if y1d + y0d - 2.0 * Delta0 >= 0.0 then 1.0 else -1.0) * 1e60; // else // aux02 := (6.0 * Delta0 * (y1d + y0d - 1.5 * Delta0) - y1d * y0d - y1d ^ 2.0 - y0d ^ 2.0) / (3.0 * (y1d + y0d - 2.0 * Delta0)); // end if; @@ -3777,7 +3777,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // c := 0.1 * Delta0; // end if; // theta0 := (y0d * mu + y1d * eta) / h0; -// if abs(theta0 - c) < 1e-06 then +// if abs(theta0 - c) < 1e-6 then // c := 0.999999 * theta0; // end if; // rho := 3.0 * (Delta0 - c) / (theta0 - c); @@ -3815,7 +3815,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // protected Real y; // algorithm // scaledX1 := x / deltax; -// scaledX := scaledX1 * 1.570796326794897; +// scaledX := scaledX1 * 1.5707963267948966; // if scaledX1 <= -0.999999999 then // y := 0.0; // elseif scaledX1 >= 0.999999999 then @@ -3842,7 +3842,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // protected Real y; // algorithm // scaledX1 := x / deltax; -// scaledX := scaledX1 * 1.570796326794897; +// scaledX := scaledX1 * 1.5707963267948966; // dscaledX1 := (dx - scaledX1 * ddeltax) / deltax; // if scaledX1 <= -0.99999999999 then // y := 0.0; @@ -3853,7 +3853,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // end if; // out := dpos * y + (1.0 - y) * dneg; // if abs(scaledX1) < 1.0 then -// out := out + (pos - neg) * dscaledX1 * 1.570796326794897 / 2.0 / (cosh(tan(scaledX)) * cos(scaledX)) ^ 2.0; +// out := out + (pos - neg) * dscaledX1 * 1.5707963267948966 / 2.0 / (cosh(tan(scaledX)) * cos(scaledX)) ^ 2.0; // end if; // end Modelica.Media.Air.MoistAir.Utilities.spliceFunction_der; // @@ -3975,7 +3975,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // input Real Pa(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\") \"Pascal value\"; // output Real bar(quantity = \"Pressure\", unit = \"bar\") \"bar value\"; // algorithm -// bar := Pa / 100000.0; +// bar := Pa / 1e5; // end Modelica.SIunits.Conversions.to_bar; // // function Modelica.SIunits.Conversions.to_degC \"Convert from Kelvin to degCelsius\" @@ -3992,1251 +3992,1251 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // end Modelica.Utilities.Streams.error; // // class Modelica.Fluid.Examples.BranchingDynamicPipes \"Multi-way connections of pipes with dynamic momentum balance, pressure wave and flow reversal\" -// parameter Real system.p_ambient(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 100000.0) = 101325.0; -// parameter Real system.T_ambient(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) = 293.15; -// parameter Real system.g(quantity = \"Acceleration\", unit = \"m/s2\") = 9.806649999999999; -// final parameter Boolean system.allowFlowReversal = true; -// final parameter enumeration(DynamicFreeInitial, FixedInitial, SteadyStateInitial, SteadyState) system.energyDynamics = Modelica.Fluid.Types.Dynamics.SteadyStateInitial; -// final parameter enumeration(DynamicFreeInitial, FixedInitial, SteadyStateInitial, SteadyState) system.massDynamics = Modelica.Fluid.Types.Dynamics.SteadyStateInitial; -// final parameter enumeration(DynamicFreeInitial, FixedInitial, SteadyStateInitial, SteadyState) system.substanceDynamics = Modelica.Fluid.Types.Dynamics.SteadyStateInitial; -// final parameter enumeration(DynamicFreeInitial, FixedInitial, SteadyStateInitial, SteadyState) system.traceDynamics = Modelica.Fluid.Types.Dynamics.SteadyStateInitial; -// final parameter enumeration(DynamicFreeInitial, FixedInitial, SteadyStateInitial, SteadyState) system.momentumDynamics = Modelica.Fluid.Types.Dynamics.SteadyStateInitial; -// parameter Real system.m_flow_start(quantity = \"MassFlowRate\", unit = \"kg/s\") = 0.0; -// parameter Real system.p_start(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 100000.0) = system.p_ambient; -// parameter Real system.T_start(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) = system.T_ambient; -// final parameter Boolean system.use_eps_Re = false; -// parameter Real system.m_flow_nominal(quantity = \"MassFlowRate\", unit = \"kg/s\") = 100.0 * system.m_flow_small; -// parameter Real system.eps_m_flow(min = 0.0) = 0.0001; -// parameter Real system.dp_small(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 100000.0) = 1.0; -// parameter Real system.m_flow_small(quantity = \"MassFlowRate\", unit = \"kg/s\", min = 0.0) = 0.01; -// final parameter Integer boundary1.nPorts = 1; -// Real boundary1.medium.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 100000.0, stateSelect = StateSelect.default); -// Real boundary1.medium.Xi[1](quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0, start = 0.01, stateSelect = StateSelect.default); -// Real boundary1.medium.h(quantity = \"SpecificEnergy\", unit = \"J/kg\"); -// Real boundary1.medium.d(quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real boundary1.medium.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0, stateSelect = StateSelect.default); -// Real boundary1.medium.X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real boundary1.medium.X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// Real boundary1.medium.u(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -100000000.0, max = 100000000.0, nominal = 1000000.0); -// Real boundary1.medium.R(quantity = \"SpecificHeatCapacity\", unit = \"J/(kg.K)\", min = 0.0, max = 10000000.0, start = 1000.0, nominal = 1000.0); -// Real boundary1.medium.MM(quantity = \"MolarMass\", unit = \"kg/mol\", min = 0.001, max = 0.25, nominal = 0.032); -// Real boundary1.medium.state.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real boundary1.medium.state.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0); -// Real boundary1.medium.state.X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real boundary1.medium.state.X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final parameter Boolean boundary1.medium.preferredMediumStates = false; -// final parameter Boolean boundary1.medium.standardOrderComponents = true; -// Real boundary1.medium.T_degC(quantity = \"ThermodynamicTemperature\", unit = \"degC\") = Modelica.SIunits.Conversions.to_degC(boundary1.medium.T); -// Real boundary1.medium.p_bar(quantity = \"Pressure\", unit = \"bar\") = Modelica.SIunits.Conversions.to_bar(boundary1.medium.p); -// Real boundary1.medium.x_water(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// Real boundary1.medium.phi; -// protected Real boundary1.medium.n1(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real boundary1.medium.n2(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real boundary1.medium.n3(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real boundary1.medium.n4(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real boundary1.medium.n5(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real boundary1.medium.n6(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real boundary1.ports[1].m_flow(quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -9.999999999999999e+59, max = 9.999999999999999e+59); -// Real boundary1.ports[1].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real boundary1.ports[1].h_outflow(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -10000000000.0, max = 10000000000.0, nominal = 1000000.0); -// Real boundary1.ports[1].Xi_outflow[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected final parameter enumeration(Entering, Leaving, Bidirectional) boundary1.n7 = Modelica.Fluid.Types.PortFlowDirection.Bidirectional; -// final parameter Boolean boundary1.use_p_in = false; -// final parameter Boolean boundary1.use_T_in = false; -// final parameter Boolean boundary1.use_X_in = false; -// final parameter Boolean boundary1.use_C_in = false; -// parameter Real boundary1.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = 150000.0; -// parameter Real boundary1.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = 293.15; -// parameter Real boundary1.X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) = 0.01; -// parameter Real boundary1.X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) = 0.99; -// protected Real boundary1.n8; -// protected Real boundary1.n9; -// protected Real boundary1.n10[1]; -// protected Real boundary1.n10[2]; -// final parameter Boolean pipe1.allowFlowReversal = true; -// Real pipe1.port_a.m_flow(quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -9.999999999999999e+59, max = 100000.0); -// Real pipe1.port_a.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe1.port_a.h_outflow(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -10000000000.0, max = 10000000000.0, nominal = 1000000.0); -// Real pipe1.port_a.Xi_outflow[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// Real pipe1.port_b.m_flow(quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 9.999999999999999e+59); -// Real pipe1.port_b.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe1.port_b.h_outflow(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -10000000000.0, max = 10000000000.0, nominal = 1000000.0); -// Real pipe1.port_b.Xi_outflow[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected final parameter Boolean pipe1.n11 = false; -// protected final parameter Boolean pipe1.n12 = false; -// protected parameter Boolean pipe1.n13 = true; -// parameter Real pipe1.nParallel(min = 1.0) = 1.0; -// final parameter Real pipe1.length(quantity = \"Length\", unit = \"m\") = 50.0; -// parameter Boolean pipe1.isCircular = true; -// parameter Real pipe1.diameter(quantity = \"Length\", unit = \"m\", min = 0.0) = 0.0254; -// parameter Real pipe1.crossArea(quantity = \"Area\", unit = \"m2\") = 3.141592653589793 * pipe1.diameter * pipe1.diameter / 4.0; -// parameter Real pipe1.perimeter(quantity = \"Length\", unit = \"m\", min = 0.0) = 3.141592653589793 * pipe1.diameter; -// parameter Real pipe1.roughness(quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) = 2.5e-05; -// final parameter Real pipe1.V(quantity = \"Volume\", unit = \"m3\") = pipe1.crossArea * 50.0 * pipe1.nParallel; -// final parameter Real pipe1.height_ab(quantity = \"Length\", unit = \"m\") = 50.0; -// final parameter Integer pipe1.n = 5; -// final Real pipe1.fluidVolumes[1](quantity = \"Volume\", unit = \"m3\"); -// final Real pipe1.fluidVolumes[2](quantity = \"Volume\", unit = \"m3\"); -// final Real pipe1.fluidVolumes[3](quantity = \"Volume\", unit = \"m3\"); -// final Real pipe1.fluidVolumes[4](quantity = \"Volume\", unit = \"m3\"); -// final Real pipe1.fluidVolumes[5](quantity = \"Volume\", unit = \"m3\"); -// final parameter enumeration(DynamicFreeInitial, FixedInitial, SteadyStateInitial, SteadyState) pipe1.energyDynamics = Modelica.Fluid.Types.Dynamics.SteadyStateInitial; -// final parameter enumeration(DynamicFreeInitial, FixedInitial, SteadyStateInitial, SteadyState) pipe1.massDynamics = Modelica.Fluid.Types.Dynamics.SteadyStateInitial; -// final parameter enumeration(DynamicFreeInitial, FixedInitial, SteadyStateInitial, SteadyState) pipe1.substanceDynamics = Modelica.Fluid.Types.Dynamics.SteadyStateInitial; -// final parameter enumeration(DynamicFreeInitial, FixedInitial, SteadyStateInitial, SteadyState) pipe1.traceDynamics = Modelica.Fluid.Types.Dynamics.SteadyStateInitial; -// parameter Real pipe1.p_a_start(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = 150000.0; -// parameter Real pipe1.p_b_start(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = 130000.0; -// final parameter Real pipe1.ps_start[1](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe1.p_a_start; -// final parameter Real pipe1.ps_start[2](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe1.p_a_start + (pipe1.p_b_start - pipe1.p_a_start) / 4.0; -// final parameter Real pipe1.ps_start[3](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe1.p_a_start + (pipe1.p_b_start - pipe1.p_a_start) * 2.0 / 4.0; -// final parameter Real pipe1.ps_start[4](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe1.p_a_start + (pipe1.p_b_start - pipe1.p_a_start) * 3.0 / 4.0; -// final parameter Real pipe1.ps_start[5](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe1.p_a_start + (pipe1.p_b_start - pipe1.p_a_start) * 4.0 / 4.0; -// final parameter Boolean pipe1.use_T_start = true; -// parameter Real pipe1.T_start(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = system.T_start; -// parameter Real pipe1.h_start(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -10000000000.0, max = 10000000000.0, nominal = 1000000.0) = Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.Medium.specificEnthalpy_pTX((pipe1.p_a_start + pipe1.p_b_start) / 2.0, pipe1.T_start, pipe1.X_start); -// parameter Real pipe1.X_start[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) = 0.01; -// parameter Real pipe1.X_start[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) = 0.99; -// Real pipe1.Us[1](quantity = \"Energy\", unit = \"J\"); -// Real pipe1.Us[2](quantity = \"Energy\", unit = \"J\"); -// Real pipe1.Us[3](quantity = \"Energy\", unit = \"J\"); -// Real pipe1.Us[4](quantity = \"Energy\", unit = \"J\"); -// Real pipe1.Us[5](quantity = \"Energy\", unit = \"J\"); -// Real pipe1.ms[1](quantity = \"Mass\", unit = \"kg\", min = 0.0); -// Real pipe1.ms[2](quantity = \"Mass\", unit = \"kg\", min = 0.0); -// Real pipe1.ms[3](quantity = \"Mass\", unit = \"kg\", min = 0.0); -// Real pipe1.ms[4](quantity = \"Mass\", unit = \"kg\", min = 0.0); -// Real pipe1.ms[5](quantity = \"Mass\", unit = \"kg\", min = 0.0); -// Real pipe1.mXis[1,1](quantity = \"Mass\", unit = \"kg\", min = 0.0); -// Real pipe1.mXis[2,1](quantity = \"Mass\", unit = \"kg\", min = 0.0); -// Real pipe1.mXis[3,1](quantity = \"Mass\", unit = \"kg\", min = 0.0); -// Real pipe1.mXis[4,1](quantity = \"Mass\", unit = \"kg\", min = 0.0); -// Real pipe1.mXis[5,1](quantity = \"Mass\", unit = \"kg\", min = 0.0); -// Real pipe1.mediums[1].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, start = pipe1.ps_start[1], nominal = 100000.0, stateSelect = StateSelect.prefer); -// Real pipe1.mediums[1].Xi[1](quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0, start = pipe1.X_start[1], stateSelect = StateSelect.prefer); -// Real pipe1.mediums[1].h(quantity = \"SpecificEnergy\", unit = \"J/kg\", start = pipe1.h_start); -// Real pipe1.mediums[1].d(quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe1.mediums[1].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = pipe1.T_start, nominal = 300.0, stateSelect = StateSelect.prefer); -// Real pipe1.mediums[1].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe1.mediums[1].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// Real pipe1.mediums[1].u(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -100000000.0, max = 100000000.0, nominal = 1000000.0); -// Real pipe1.mediums[1].R(quantity = \"SpecificHeatCapacity\", unit = \"J/(kg.K)\", min = 0.0, max = 10000000.0, start = 1000.0, nominal = 1000.0); -// Real pipe1.mediums[1].MM(quantity = \"MolarMass\", unit = \"kg/mol\", min = 0.001, max = 0.25, nominal = 0.032); -// Real pipe1.mediums[1].state.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe1.mediums[1].state.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0); -// Real pipe1.mediums[1].state.X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe1.mediums[1].state.X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final parameter Boolean pipe1.mediums[1].preferredMediumStates = true; -// final parameter Boolean pipe1.mediums[1].standardOrderComponents = true; -// Real pipe1.mediums[1].T_degC(quantity = \"ThermodynamicTemperature\", unit = \"degC\") = Modelica.SIunits.Conversions.to_degC(pipe1.mediums[1].T); -// Real pipe1.mediums[1].p_bar(quantity = \"Pressure\", unit = \"bar\") = Modelica.SIunits.Conversions.to_bar(pipe1.mediums[1].p); -// Real pipe1.mediums[1].x_water(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// Real pipe1.mediums[1].phi; -// protected Real pipe1.mediums[1].n14(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe1.mediums[1].n15(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe1.mediums[1].n16(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe1.mediums[1].n17(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe1.mediums[1].n18(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe1.mediums[1].n19(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe1.mediums[2].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, start = pipe1.ps_start[2], nominal = 100000.0, stateSelect = StateSelect.prefer); -// Real pipe1.mediums[2].Xi[1](quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0, start = pipe1.X_start[1], stateSelect = StateSelect.prefer); -// Real pipe1.mediums[2].h(quantity = \"SpecificEnergy\", unit = \"J/kg\", start = pipe1.h_start); -// Real pipe1.mediums[2].d(quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe1.mediums[2].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = pipe1.T_start, nominal = 300.0, stateSelect = StateSelect.prefer); -// Real pipe1.mediums[2].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe1.mediums[2].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// Real pipe1.mediums[2].u(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -100000000.0, max = 100000000.0, nominal = 1000000.0); -// Real pipe1.mediums[2].R(quantity = \"SpecificHeatCapacity\", unit = \"J/(kg.K)\", min = 0.0, max = 10000000.0, start = 1000.0, nominal = 1000.0); -// Real pipe1.mediums[2].MM(quantity = \"MolarMass\", unit = \"kg/mol\", min = 0.001, max = 0.25, nominal = 0.032); -// Real pipe1.mediums[2].state.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe1.mediums[2].state.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0); -// Real pipe1.mediums[2].state.X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe1.mediums[2].state.X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final parameter Boolean pipe1.mediums[2].preferredMediumStates = true; -// final parameter Boolean pipe1.mediums[2].standardOrderComponents = true; -// Real pipe1.mediums[2].T_degC(quantity = \"ThermodynamicTemperature\", unit = \"degC\") = Modelica.SIunits.Conversions.to_degC(pipe1.mediums[2].T); -// Real pipe1.mediums[2].p_bar(quantity = \"Pressure\", unit = \"bar\") = Modelica.SIunits.Conversions.to_bar(pipe1.mediums[2].p); -// Real pipe1.mediums[2].x_water(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// Real pipe1.mediums[2].phi; -// protected Real pipe1.mediums[2].n14(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe1.mediums[2].n15(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe1.mediums[2].n16(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe1.mediums[2].n17(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe1.mediums[2].n18(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe1.mediums[2].n19(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe1.mediums[3].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, start = pipe1.ps_start[3], nominal = 100000.0, stateSelect = StateSelect.prefer); -// Real pipe1.mediums[3].Xi[1](quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0, start = pipe1.X_start[1], stateSelect = StateSelect.prefer); -// Real pipe1.mediums[3].h(quantity = \"SpecificEnergy\", unit = \"J/kg\", start = pipe1.h_start); -// Real pipe1.mediums[3].d(quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe1.mediums[3].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = pipe1.T_start, nominal = 300.0, stateSelect = StateSelect.prefer); -// Real pipe1.mediums[3].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe1.mediums[3].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// Real pipe1.mediums[3].u(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -100000000.0, max = 100000000.0, nominal = 1000000.0); -// Real pipe1.mediums[3].R(quantity = \"SpecificHeatCapacity\", unit = \"J/(kg.K)\", min = 0.0, max = 10000000.0, start = 1000.0, nominal = 1000.0); -// Real pipe1.mediums[3].MM(quantity = \"MolarMass\", unit = \"kg/mol\", min = 0.001, max = 0.25, nominal = 0.032); -// Real pipe1.mediums[3].state.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe1.mediums[3].state.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0); -// Real pipe1.mediums[3].state.X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe1.mediums[3].state.X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final parameter Boolean pipe1.mediums[3].preferredMediumStates = true; -// final parameter Boolean pipe1.mediums[3].standardOrderComponents = true; -// Real pipe1.mediums[3].T_degC(quantity = \"ThermodynamicTemperature\", unit = \"degC\") = Modelica.SIunits.Conversions.to_degC(pipe1.mediums[3].T); -// Real pipe1.mediums[3].p_bar(quantity = \"Pressure\", unit = \"bar\") = Modelica.SIunits.Conversions.to_bar(pipe1.mediums[3].p); -// Real pipe1.mediums[3].x_water(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// Real pipe1.mediums[3].phi; -// protected Real pipe1.mediums[3].n14(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe1.mediums[3].n15(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe1.mediums[3].n16(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe1.mediums[3].n17(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe1.mediums[3].n18(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe1.mediums[3].n19(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe1.mediums[4].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, start = pipe1.ps_start[4], nominal = 100000.0, stateSelect = StateSelect.prefer); -// Real pipe1.mediums[4].Xi[1](quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0, start = pipe1.X_start[1], stateSelect = StateSelect.prefer); -// Real pipe1.mediums[4].h(quantity = \"SpecificEnergy\", unit = \"J/kg\", start = pipe1.h_start); -// Real pipe1.mediums[4].d(quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe1.mediums[4].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = pipe1.T_start, nominal = 300.0, stateSelect = StateSelect.prefer); -// Real pipe1.mediums[4].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe1.mediums[4].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// Real pipe1.mediums[4].u(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -100000000.0, max = 100000000.0, nominal = 1000000.0); -// Real pipe1.mediums[4].R(quantity = \"SpecificHeatCapacity\", unit = \"J/(kg.K)\", min = 0.0, max = 10000000.0, start = 1000.0, nominal = 1000.0); -// Real pipe1.mediums[4].MM(quantity = \"MolarMass\", unit = \"kg/mol\", min = 0.001, max = 0.25, nominal = 0.032); -// Real pipe1.mediums[4].state.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe1.mediums[4].state.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0); -// Real pipe1.mediums[4].state.X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe1.mediums[4].state.X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final parameter Boolean pipe1.mediums[4].preferredMediumStates = true; -// final parameter Boolean pipe1.mediums[4].standardOrderComponents = true; -// Real pipe1.mediums[4].T_degC(quantity = \"ThermodynamicTemperature\", unit = \"degC\") = Modelica.SIunits.Conversions.to_degC(pipe1.mediums[4].T); -// Real pipe1.mediums[4].p_bar(quantity = \"Pressure\", unit = \"bar\") = Modelica.SIunits.Conversions.to_bar(pipe1.mediums[4].p); -// Real pipe1.mediums[4].x_water(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// Real pipe1.mediums[4].phi; -// protected Real pipe1.mediums[4].n14(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe1.mediums[4].n15(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe1.mediums[4].n16(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe1.mediums[4].n17(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe1.mediums[4].n18(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe1.mediums[4].n19(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe1.mediums[5].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, start = pipe1.ps_start[5], nominal = 100000.0, stateSelect = StateSelect.prefer); -// Real pipe1.mediums[5].Xi[1](quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0, start = pipe1.X_start[1], stateSelect = StateSelect.prefer); -// Real pipe1.mediums[5].h(quantity = \"SpecificEnergy\", unit = \"J/kg\", start = pipe1.h_start); -// Real pipe1.mediums[5].d(quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe1.mediums[5].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = pipe1.T_start, nominal = 300.0, stateSelect = StateSelect.prefer); -// Real pipe1.mediums[5].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe1.mediums[5].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// Real pipe1.mediums[5].u(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -100000000.0, max = 100000000.0, nominal = 1000000.0); -// Real pipe1.mediums[5].R(quantity = \"SpecificHeatCapacity\", unit = \"J/(kg.K)\", min = 0.0, max = 10000000.0, start = 1000.0, nominal = 1000.0); -// Real pipe1.mediums[5].MM(quantity = \"MolarMass\", unit = \"kg/mol\", min = 0.001, max = 0.25, nominal = 0.032); -// Real pipe1.mediums[5].state.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe1.mediums[5].state.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0); -// Real pipe1.mediums[5].state.X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe1.mediums[5].state.X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final parameter Boolean pipe1.mediums[5].preferredMediumStates = true; -// final parameter Boolean pipe1.mediums[5].standardOrderComponents = true; -// Real pipe1.mediums[5].T_degC(quantity = \"ThermodynamicTemperature\", unit = \"degC\") = Modelica.SIunits.Conversions.to_degC(pipe1.mediums[5].T); -// Real pipe1.mediums[5].p_bar(quantity = \"Pressure\", unit = \"bar\") = Modelica.SIunits.Conversions.to_bar(pipe1.mediums[5].p); -// Real pipe1.mediums[5].x_water(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// Real pipe1.mediums[5].phi; -// protected Real pipe1.mediums[5].n14(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe1.mediums[5].n15(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe1.mediums[5].n16(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe1.mediums[5].n17(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe1.mediums[5].n18(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe1.mediums[5].n19(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe1.mb_flows[1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0); -// Real pipe1.mb_flows[2](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0); -// Real pipe1.mb_flows[3](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0); -// Real pipe1.mb_flows[4](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0); -// Real pipe1.mb_flows[5](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0); -// Real pipe1.mbXi_flows[1,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0); -// Real pipe1.mbXi_flows[2,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0); -// Real pipe1.mbXi_flows[3,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0); -// Real pipe1.mbXi_flows[4,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0); -// Real pipe1.mbXi_flows[5,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0); -// Real pipe1.Hb_flows[1](quantity = \"EnthalpyFlowRate\", unit = \"W\"); -// Real pipe1.Hb_flows[2](quantity = \"EnthalpyFlowRate\", unit = \"W\"); -// Real pipe1.Hb_flows[3](quantity = \"EnthalpyFlowRate\", unit = \"W\"); -// Real pipe1.Hb_flows[4](quantity = \"EnthalpyFlowRate\", unit = \"W\"); -// Real pipe1.Hb_flows[5](quantity = \"EnthalpyFlowRate\", unit = \"W\"); -// Real pipe1.Qb_flows[1](quantity = \"Power\", unit = \"W\"); -// Real pipe1.Qb_flows[2](quantity = \"Power\", unit = \"W\"); -// Real pipe1.Qb_flows[3](quantity = \"Power\", unit = \"W\"); -// Real pipe1.Qb_flows[4](quantity = \"Power\", unit = \"W\"); -// Real pipe1.Qb_flows[5](quantity = \"Power\", unit = \"W\"); -// Real pipe1.Wb_flows[1](quantity = \"Power\", unit = \"W\"); -// Real pipe1.Wb_flows[2](quantity = \"Power\", unit = \"W\"); -// Real pipe1.Wb_flows[3](quantity = \"Power\", unit = \"W\"); -// Real pipe1.Wb_flows[4](quantity = \"Power\", unit = \"W\"); -// Real pipe1.Wb_flows[5](quantity = \"Power\", unit = \"W\"); -// protected final parameter Boolean pipe1.n20 = true; -// final parameter Real pipe1.lengths[1](quantity = \"Length\", unit = \"m\") = 10.0; -// final parameter Real pipe1.lengths[2](quantity = \"Length\", unit = \"m\") = 10.0; -// final parameter Real pipe1.lengths[3](quantity = \"Length\", unit = \"m\") = 10.0; -// final parameter Real pipe1.lengths[4](quantity = \"Length\", unit = \"m\") = 10.0; -// final parameter Real pipe1.lengths[5](quantity = \"Length\", unit = \"m\") = 10.0; -// final parameter Real pipe1.crossAreas[1](quantity = \"Area\", unit = \"m2\") = pipe1.crossArea; -// final parameter Real pipe1.crossAreas[2](quantity = \"Area\", unit = \"m2\") = pipe1.crossArea; -// final parameter Real pipe1.crossAreas[3](quantity = \"Area\", unit = \"m2\") = pipe1.crossArea; -// final parameter Real pipe1.crossAreas[4](quantity = \"Area\", unit = \"m2\") = pipe1.crossArea; -// final parameter Real pipe1.crossAreas[5](quantity = \"Area\", unit = \"m2\") = pipe1.crossArea; -// final parameter Real pipe1.dimensions[1](quantity = \"Length\", unit = \"m\") = 4.0 * pipe1.crossArea / pipe1.perimeter; -// final parameter Real pipe1.dimensions[2](quantity = \"Length\", unit = \"m\") = 4.0 * pipe1.crossArea / pipe1.perimeter; -// final parameter Real pipe1.dimensions[3](quantity = \"Length\", unit = \"m\") = 4.0 * pipe1.crossArea / pipe1.perimeter; -// final parameter Real pipe1.dimensions[4](quantity = \"Length\", unit = \"m\") = 4.0 * pipe1.crossArea / pipe1.perimeter; -// final parameter Real pipe1.dimensions[5](quantity = \"Length\", unit = \"m\") = 4.0 * pipe1.crossArea / pipe1.perimeter; -// final parameter Real pipe1.roughnesses[1](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) = pipe1.roughness; -// final parameter Real pipe1.roughnesses[2](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) = pipe1.roughness; -// final parameter Real pipe1.roughnesses[3](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) = pipe1.roughness; -// final parameter Real pipe1.roughnesses[4](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) = pipe1.roughness; -// final parameter Real pipe1.roughnesses[5](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) = pipe1.roughness; -// final parameter Real pipe1.dheights[1](quantity = \"Length\", unit = \"m\") = 10.0; -// final parameter Real pipe1.dheights[2](quantity = \"Length\", unit = \"m\") = 10.0; -// final parameter Real pipe1.dheights[3](quantity = \"Length\", unit = \"m\") = 10.0; -// final parameter Real pipe1.dheights[4](quantity = \"Length\", unit = \"m\") = 10.0; -// final parameter Real pipe1.dheights[5](quantity = \"Length\", unit = \"m\") = 10.0; -// final parameter enumeration(DynamicFreeInitial, FixedInitial, SteadyStateInitial, SteadyState) pipe1.momentumDynamics = Modelica.Fluid.Types.Dynamics.SteadyStateInitial; -// final parameter Real pipe1.m_flow_start(quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0) = 0.02; -// final parameter Integer pipe1.nNodes(min = 1) = 5; -// final parameter enumeration(av_vb, a_v_b, av_b, a_vb) pipe1.modelStructure = Modelica.Fluid.Types.ModelStructure.a_v_b; -// final parameter Boolean pipe1.useLumpedPressure = false; -// final parameter Integer pipe1.nFM = 6; +// parameter Real system.p_ambient(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 1e5) = 101325.0 \"Default ambient pressure\"; +// parameter Real system.T_ambient(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) = 293.15 \"Default ambient temperature\"; +// parameter Real system.g(quantity = \"Acceleration\", unit = \"m/s2\") = 9.80665 \"Constant gravity acceleration\"; +// final parameter Boolean system.allowFlowReversal = true \"= false to restrict to design flow direction (port_a -> port_b)\"; +// final parameter enumeration(DynamicFreeInitial, FixedInitial, SteadyStateInitial, SteadyState) system.energyDynamics = Modelica.Fluid.Types.Dynamics.SteadyStateInitial \"Default formulation of energy balances\"; +// final parameter enumeration(DynamicFreeInitial, FixedInitial, SteadyStateInitial, SteadyState) system.massDynamics = Modelica.Fluid.Types.Dynamics.SteadyStateInitial \"Default formulation of mass balances\"; +// final parameter enumeration(DynamicFreeInitial, FixedInitial, SteadyStateInitial, SteadyState) system.substanceDynamics = Modelica.Fluid.Types.Dynamics.SteadyStateInitial \"Default formulation of substance balances\"; +// final parameter enumeration(DynamicFreeInitial, FixedInitial, SteadyStateInitial, SteadyState) system.traceDynamics = Modelica.Fluid.Types.Dynamics.SteadyStateInitial \"Default formulation of trace substance balances\"; +// final parameter enumeration(DynamicFreeInitial, FixedInitial, SteadyStateInitial, SteadyState) system.momentumDynamics = Modelica.Fluid.Types.Dynamics.SteadyStateInitial \"Default formulation of momentum balances, if options available\"; +// parameter Real system.m_flow_start(quantity = \"MassFlowRate\", unit = \"kg/s\") = 0.0 \"Default start value for mass flow rates\"; +// parameter Real system.p_start(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 1e5) = system.p_ambient \"Default start value for pressures\"; +// parameter Real system.T_start(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) = system.T_ambient \"Default start value for temperatures\"; +// final parameter Boolean system.use_eps_Re = false \"= true to determine turbulent region automatically using Reynolds number\"; +// parameter Real system.m_flow_nominal(quantity = \"MassFlowRate\", unit = \"kg/s\") = 100.0 * system.m_flow_small \"Default nominal mass flow rate\"; +// parameter Real system.eps_m_flow(min = 0.0) = 1e-4 \"Regularization of zero flow for |m_flow| < eps_m_flow*m_flow_nominal\"; +// parameter Real system.dp_small(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 1e5) = 1.0 \"Default small pressure drop for regularization of laminar and zero flow\"; +// parameter Real system.m_flow_small(quantity = \"MassFlowRate\", unit = \"kg/s\", min = 0.0) = 0.01 \"Default small mass flow rate for regularization of laminar and zero flow\"; +// final parameter Integer boundary1.nPorts = 1 \"Number of ports\"; +// Real boundary1.medium.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 1e5, stateSelect = StateSelect.default) \"Absolute pressure of medium\"; +// Real boundary1.medium.Xi[1](quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0, start = 0.01, stateSelect = StateSelect.default) \"Structurally independent mass fractions\"; +// Real boundary1.medium.h(quantity = \"SpecificEnergy\", unit = \"J/kg\") \"Specific enthalpy of medium\"; +// Real boundary1.medium.d(quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0) \"Density of medium\"; +// Real boundary1.medium.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0, stateSelect = StateSelect.default) \"Temperature of medium\"; +// Real boundary1.medium.X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real boundary1.medium.X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real boundary1.medium.u(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -1e8, max = 1e8, nominal = 1e6) \"Specific internal energy of medium\"; +// Real boundary1.medium.R(quantity = \"SpecificHeatCapacity\", unit = \"J/(kg.K)\", min = 0.0, max = 1e7, start = 1000.0, nominal = 1000.0) \"Gas constant (of mixture if applicable)\"; +// Real boundary1.medium.MM(quantity = \"MolarMass\", unit = \"kg/mol\", min = 0.001, max = 0.25, nominal = 0.032) \"Molar mass (of mixture or single fluid)\"; +// Real boundary1.medium.state.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Absolute pressure of medium\"; +// Real boundary1.medium.state.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature of medium\"; +// Real boundary1.medium.state.X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real boundary1.medium.state.X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final parameter Boolean boundary1.medium.preferredMediumStates = false \"= true if StateSelect.prefer shall be used for the independent property variables of the medium\"; +// final parameter Boolean boundary1.medium.standardOrderComponents = true \"If true, and reducedX = true, the last element of X will be computed from the other ones\"; +// Real boundary1.medium.T_degC(quantity = \"ThermodynamicTemperature\", unit = \"degC\") = Modelica.SIunits.Conversions.to_degC(boundary1.medium.T) \"Temperature of medium in [degC]\"; +// Real boundary1.medium.p_bar(quantity = \"Pressure\", unit = \"bar\") = Modelica.SIunits.Conversions.to_bar(boundary1.medium.p) \"Absolute pressure of medium in [bar]\"; +// Real boundary1.medium.x_water(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass of total water/mass of dry air\"; +// Real boundary1.medium.phi \"Relative humidity\"; +// protected Real boundary1.medium.n1(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass fraction of liquid or solid water\"; +// protected Real boundary1.medium.n2(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass fraction of steam water\"; +// protected Real boundary1.medium.n3(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass fraction of air\"; +// protected Real boundary1.medium.n4(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Steam water mass fraction of saturation boundary in kg_water/kg_moistair\"; +// protected Real boundary1.medium.n5(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Steam water mass content of saturation boundary in kg_water/kg_dryair\"; +// protected Real boundary1.medium.n6(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"partial saturation pressure of steam\"; +// Real boundary1.ports[1].m_flow(quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e60, max = 1e60) \"Mass flow rate from the connection point into the component\"; +// Real boundary1.ports[1].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Thermodynamic pressure in the connection point\"; +// Real boundary1.ports[1].h_outflow(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -1e10, max = 1e10, nominal = 1e6) \"Specific thermodynamic enthalpy close to the connection point if m_flow < 0\"; +// Real boundary1.ports[1].Xi_outflow[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Independent mixture mass fractions m_i/m close to the connection point if m_flow < 0\"; +// protected final parameter enumeration(Entering, Leaving, Bidirectional) boundary1.n7 = Modelica.Fluid.Types.PortFlowDirection.Bidirectional \"Allowed flow direction\"; +// final parameter Boolean boundary1.use_p_in = false \"Get the pressure from the input connector\"; +// final parameter Boolean boundary1.use_T_in = false \"Get the temperature from the input connector\"; +// final parameter Boolean boundary1.use_X_in = false \"Get the composition from the input connector\"; +// final parameter Boolean boundary1.use_C_in = false \"Get the trace substances from the input connector\"; +// parameter Real boundary1.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = 1.5e5 \"Fixed value of pressure\"; +// parameter Real boundary1.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = 293.15 \"Fixed value of temperature\"; +// parameter Real boundary1.X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) = 0.01 \"Fixed value of composition\"; +// parameter Real boundary1.X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) = 0.99 \"Fixed value of composition\"; +// protected Real boundary1.n8 \"Needed to connect to conditional connector\"; +// protected Real boundary1.n9 \"Needed to connect to conditional connector\"; +// protected Real boundary1.n10[1] \"Needed to connect to conditional connector\"; +// protected Real boundary1.n10[2] \"Needed to connect to conditional connector\"; +// final parameter Boolean pipe1.allowFlowReversal = true \"= true to allow flow reversal, false restricts to design direction (port_a -> port_b)\"; +// Real pipe1.port_a.m_flow(quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e60, max = 1e5) \"Mass flow rate from the connection point into the component\"; +// Real pipe1.port_a.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Thermodynamic pressure in the connection point\"; +// Real pipe1.port_a.h_outflow(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -1e10, max = 1e10, nominal = 1e6) \"Specific thermodynamic enthalpy close to the connection point if m_flow < 0\"; +// Real pipe1.port_a.Xi_outflow[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Independent mixture mass fractions m_i/m close to the connection point if m_flow < 0\"; +// Real pipe1.port_b.m_flow(quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e60) \"Mass flow rate from the connection point into the component\"; +// Real pipe1.port_b.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Thermodynamic pressure in the connection point\"; +// Real pipe1.port_b.h_outflow(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -1e10, max = 1e10, nominal = 1e6) \"Specific thermodynamic enthalpy close to the connection point if m_flow < 0\"; +// Real pipe1.port_b.Xi_outflow[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Independent mixture mass fractions m_i/m close to the connection point if m_flow < 0\"; +// protected final parameter Boolean pipe1.n11 = false \"= true if port_a exposes the state of a fluid volume\"; +// protected final parameter Boolean pipe1.n12 = false \"= true if port_b.p exposes the state of a fluid volume\"; +// protected parameter Boolean pipe1.n13 = true \"= false to hide the arrow in the model icon\"; +// parameter Real pipe1.nParallel(min = 1.0) = 1.0 \"Number of identical parallel pipes\"; +// final parameter Real pipe1.length(quantity = \"Length\", unit = \"m\") = 50.0 \"Length\"; +// parameter Boolean pipe1.isCircular = true \"= true if cross sectional area is circular\"; +// parameter Real pipe1.diameter(quantity = \"Length\", unit = \"m\", min = 0.0) = 0.0254 \"Diameter of circular pipe\"; +// parameter Real pipe1.crossArea(quantity = \"Area\", unit = \"m2\") = 3.141592653589793 * pipe1.diameter * pipe1.diameter / 4.0 \"Inner cross section area\"; +// parameter Real pipe1.perimeter(quantity = \"Length\", unit = \"m\", min = 0.0) = 3.141592653589793 * pipe1.diameter \"Inner perimeter\"; +// parameter Real pipe1.roughness(quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) = 2.5e-5 \"Average height of surface asperities (default: smooth steel pipe)\"; +// final parameter Real pipe1.V(quantity = \"Volume\", unit = \"m3\") = pipe1.crossArea * 50.0 * pipe1.nParallel \"volume size\"; +// final parameter Real pipe1.height_ab(quantity = \"Length\", unit = \"m\") = 50.0 \"Height(port_b) - Height(port_a)\"; +// final parameter Integer pipe1.n = 5 \"Number of discrete volumes\"; +// final Real pipe1.fluidVolumes[1](quantity = \"Volume\", unit = \"m3\") \"Discretized volume, determine in inheriting class\"; +// final Real pipe1.fluidVolumes[2](quantity = \"Volume\", unit = \"m3\") \"Discretized volume, determine in inheriting class\"; +// final Real pipe1.fluidVolumes[3](quantity = \"Volume\", unit = \"m3\") \"Discretized volume, determine in inheriting class\"; +// final Real pipe1.fluidVolumes[4](quantity = \"Volume\", unit = \"m3\") \"Discretized volume, determine in inheriting class\"; +// final Real pipe1.fluidVolumes[5](quantity = \"Volume\", unit = \"m3\") \"Discretized volume, determine in inheriting class\"; +// final parameter enumeration(DynamicFreeInitial, FixedInitial, SteadyStateInitial, SteadyState) pipe1.energyDynamics = Modelica.Fluid.Types.Dynamics.SteadyStateInitial \"Formulation of energy balances\"; +// final parameter enumeration(DynamicFreeInitial, FixedInitial, SteadyStateInitial, SteadyState) pipe1.massDynamics = Modelica.Fluid.Types.Dynamics.SteadyStateInitial \"Formulation of mass balances\"; +// final parameter enumeration(DynamicFreeInitial, FixedInitial, SteadyStateInitial, SteadyState) pipe1.substanceDynamics = Modelica.Fluid.Types.Dynamics.SteadyStateInitial \"Formulation of substance balances\"; +// final parameter enumeration(DynamicFreeInitial, FixedInitial, SteadyStateInitial, SteadyState) pipe1.traceDynamics = Modelica.Fluid.Types.Dynamics.SteadyStateInitial \"Formulation of trace substance balances\"; +// parameter Real pipe1.p_a_start(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = 1.5e5 \"Start value of pressure at port a\"; +// parameter Real pipe1.p_b_start(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = 1.3e5 \"Start value of pressure at port b\"; +// final parameter Real pipe1.ps_start[1](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe1.p_a_start \"Start value of pressure\"; +// final parameter Real pipe1.ps_start[2](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe1.p_a_start + (pipe1.p_b_start - pipe1.p_a_start) / 4.0 \"Start value of pressure\"; +// final parameter Real pipe1.ps_start[3](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe1.p_a_start + (pipe1.p_b_start - pipe1.p_a_start) * 2.0 / 4.0 \"Start value of pressure\"; +// final parameter Real pipe1.ps_start[4](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe1.p_a_start + (pipe1.p_b_start - pipe1.p_a_start) * 3.0 / 4.0 \"Start value of pressure\"; +// final parameter Real pipe1.ps_start[5](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe1.p_a_start + (pipe1.p_b_start - pipe1.p_a_start) * 4.0 / 4.0 \"Start value of pressure\"; +// final parameter Boolean pipe1.use_T_start = true \"Use T_start if true, otherwise h_start\"; +// parameter Real pipe1.T_start(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = system.T_start \"Start value of temperature\"; +// parameter Real pipe1.h_start(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -1e10, max = 1e10, nominal = 1e6) = Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.Medium.specificEnthalpy_pTX((pipe1.p_a_start + pipe1.p_b_start) / 2.0, pipe1.T_start, pipe1.X_start) \"Start value of specific enthalpy\"; +// parameter Real pipe1.X_start[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) = 0.01 \"Start value of mass fractions m_i/m\"; +// parameter Real pipe1.X_start[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) = 0.99 \"Start value of mass fractions m_i/m\"; +// Real pipe1.Us[1](quantity = \"Energy\", unit = \"J\") \"Internal energy of fluid\"; +// Real pipe1.Us[2](quantity = \"Energy\", unit = \"J\") \"Internal energy of fluid\"; +// Real pipe1.Us[3](quantity = \"Energy\", unit = \"J\") \"Internal energy of fluid\"; +// Real pipe1.Us[4](quantity = \"Energy\", unit = \"J\") \"Internal energy of fluid\"; +// Real pipe1.Us[5](quantity = \"Energy\", unit = \"J\") \"Internal energy of fluid\"; +// Real pipe1.ms[1](quantity = \"Mass\", unit = \"kg\", min = 0.0) \"Fluid mass\"; +// Real pipe1.ms[2](quantity = \"Mass\", unit = \"kg\", min = 0.0) \"Fluid mass\"; +// Real pipe1.ms[3](quantity = \"Mass\", unit = \"kg\", min = 0.0) \"Fluid mass\"; +// Real pipe1.ms[4](quantity = \"Mass\", unit = \"kg\", min = 0.0) \"Fluid mass\"; +// Real pipe1.ms[5](quantity = \"Mass\", unit = \"kg\", min = 0.0) \"Fluid mass\"; +// Real pipe1.mXis[1,1](quantity = \"Mass\", unit = \"kg\", min = 0.0) \"Substance mass\"; +// Real pipe1.mXis[2,1](quantity = \"Mass\", unit = \"kg\", min = 0.0) \"Substance mass\"; +// Real pipe1.mXis[3,1](quantity = \"Mass\", unit = \"kg\", min = 0.0) \"Substance mass\"; +// Real pipe1.mXis[4,1](quantity = \"Mass\", unit = \"kg\", min = 0.0) \"Substance mass\"; +// Real pipe1.mXis[5,1](quantity = \"Mass\", unit = \"kg\", min = 0.0) \"Substance mass\"; +// Real pipe1.mediums[1].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, start = pipe1.ps_start[1], nominal = 1e5, stateSelect = StateSelect.prefer) \"Absolute pressure of medium\"; +// Real pipe1.mediums[1].Xi[1](quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0, start = pipe1.X_start[1], stateSelect = StateSelect.prefer) \"Structurally independent mass fractions\"; +// Real pipe1.mediums[1].h(quantity = \"SpecificEnergy\", unit = \"J/kg\", start = pipe1.h_start) \"Specific enthalpy of medium\"; +// Real pipe1.mediums[1].d(quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0) \"Density of medium\"; +// Real pipe1.mediums[1].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = pipe1.T_start, nominal = 300.0, stateSelect = StateSelect.prefer) \"Temperature of medium\"; +// Real pipe1.mediums[1].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe1.mediums[1].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe1.mediums[1].u(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -1e8, max = 1e8, nominal = 1e6) \"Specific internal energy of medium\"; +// Real pipe1.mediums[1].R(quantity = \"SpecificHeatCapacity\", unit = \"J/(kg.K)\", min = 0.0, max = 1e7, start = 1000.0, nominal = 1000.0) \"Gas constant (of mixture if applicable)\"; +// Real pipe1.mediums[1].MM(quantity = \"MolarMass\", unit = \"kg/mol\", min = 0.001, max = 0.25, nominal = 0.032) \"Molar mass (of mixture or single fluid)\"; +// Real pipe1.mediums[1].state.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Absolute pressure of medium\"; +// Real pipe1.mediums[1].state.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature of medium\"; +// Real pipe1.mediums[1].state.X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe1.mediums[1].state.X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final parameter Boolean pipe1.mediums[1].preferredMediumStates = true \"= true if StateSelect.prefer shall be used for the independent property variables of the medium\"; +// final parameter Boolean pipe1.mediums[1].standardOrderComponents = true \"If true, and reducedX = true, the last element of X will be computed from the other ones\"; +// Real pipe1.mediums[1].T_degC(quantity = \"ThermodynamicTemperature\", unit = \"degC\") = Modelica.SIunits.Conversions.to_degC(pipe1.mediums[1].T) \"Temperature of medium in [degC]\"; +// Real pipe1.mediums[1].p_bar(quantity = \"Pressure\", unit = \"bar\") = Modelica.SIunits.Conversions.to_bar(pipe1.mediums[1].p) \"Absolute pressure of medium in [bar]\"; +// Real pipe1.mediums[1].x_water(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass of total water/mass of dry air\"; +// Real pipe1.mediums[1].phi \"Relative humidity\"; +// protected Real pipe1.mediums[1].n14(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass fraction of liquid or solid water\"; +// protected Real pipe1.mediums[1].n15(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass fraction of steam water\"; +// protected Real pipe1.mediums[1].n16(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass fraction of air\"; +// protected Real pipe1.mediums[1].n17(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Steam water mass fraction of saturation boundary in kg_water/kg_moistair\"; +// protected Real pipe1.mediums[1].n18(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Steam water mass content of saturation boundary in kg_water/kg_dryair\"; +// protected Real pipe1.mediums[1].n19(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"partial saturation pressure of steam\"; +// Real pipe1.mediums[2].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, start = pipe1.ps_start[2], nominal = 1e5, stateSelect = StateSelect.prefer) \"Absolute pressure of medium\"; +// Real pipe1.mediums[2].Xi[1](quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0, start = pipe1.X_start[1], stateSelect = StateSelect.prefer) \"Structurally independent mass fractions\"; +// Real pipe1.mediums[2].h(quantity = \"SpecificEnergy\", unit = \"J/kg\", start = pipe1.h_start) \"Specific enthalpy of medium\"; +// Real pipe1.mediums[2].d(quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0) \"Density of medium\"; +// Real pipe1.mediums[2].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = pipe1.T_start, nominal = 300.0, stateSelect = StateSelect.prefer) \"Temperature of medium\"; +// Real pipe1.mediums[2].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe1.mediums[2].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe1.mediums[2].u(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -1e8, max = 1e8, nominal = 1e6) \"Specific internal energy of medium\"; +// Real pipe1.mediums[2].R(quantity = \"SpecificHeatCapacity\", unit = \"J/(kg.K)\", min = 0.0, max = 1e7, start = 1000.0, nominal = 1000.0) \"Gas constant (of mixture if applicable)\"; +// Real pipe1.mediums[2].MM(quantity = \"MolarMass\", unit = \"kg/mol\", min = 0.001, max = 0.25, nominal = 0.032) \"Molar mass (of mixture or single fluid)\"; +// Real pipe1.mediums[2].state.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Absolute pressure of medium\"; +// Real pipe1.mediums[2].state.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature of medium\"; +// Real pipe1.mediums[2].state.X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe1.mediums[2].state.X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final parameter Boolean pipe1.mediums[2].preferredMediumStates = true \"= true if StateSelect.prefer shall be used for the independent property variables of the medium\"; +// final parameter Boolean pipe1.mediums[2].standardOrderComponents = true \"If true, and reducedX = true, the last element of X will be computed from the other ones\"; +// Real pipe1.mediums[2].T_degC(quantity = \"ThermodynamicTemperature\", unit = \"degC\") = Modelica.SIunits.Conversions.to_degC(pipe1.mediums[2].T) \"Temperature of medium in [degC]\"; +// Real pipe1.mediums[2].p_bar(quantity = \"Pressure\", unit = \"bar\") = Modelica.SIunits.Conversions.to_bar(pipe1.mediums[2].p) \"Absolute pressure of medium in [bar]\"; +// Real pipe1.mediums[2].x_water(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass of total water/mass of dry air\"; +// Real pipe1.mediums[2].phi \"Relative humidity\"; +// protected Real pipe1.mediums[2].n14(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass fraction of liquid or solid water\"; +// protected Real pipe1.mediums[2].n15(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass fraction of steam water\"; +// protected Real pipe1.mediums[2].n16(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass fraction of air\"; +// protected Real pipe1.mediums[2].n17(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Steam water mass fraction of saturation boundary in kg_water/kg_moistair\"; +// protected Real pipe1.mediums[2].n18(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Steam water mass content of saturation boundary in kg_water/kg_dryair\"; +// protected Real pipe1.mediums[2].n19(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"partial saturation pressure of steam\"; +// Real pipe1.mediums[3].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, start = pipe1.ps_start[3], nominal = 1e5, stateSelect = StateSelect.prefer) \"Absolute pressure of medium\"; +// Real pipe1.mediums[3].Xi[1](quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0, start = pipe1.X_start[1], stateSelect = StateSelect.prefer) \"Structurally independent mass fractions\"; +// Real pipe1.mediums[3].h(quantity = \"SpecificEnergy\", unit = \"J/kg\", start = pipe1.h_start) \"Specific enthalpy of medium\"; +// Real pipe1.mediums[3].d(quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0) \"Density of medium\"; +// Real pipe1.mediums[3].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = pipe1.T_start, nominal = 300.0, stateSelect = StateSelect.prefer) \"Temperature of medium\"; +// Real pipe1.mediums[3].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe1.mediums[3].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe1.mediums[3].u(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -1e8, max = 1e8, nominal = 1e6) \"Specific internal energy of medium\"; +// Real pipe1.mediums[3].R(quantity = \"SpecificHeatCapacity\", unit = \"J/(kg.K)\", min = 0.0, max = 1e7, start = 1000.0, nominal = 1000.0) \"Gas constant (of mixture if applicable)\"; +// Real pipe1.mediums[3].MM(quantity = \"MolarMass\", unit = \"kg/mol\", min = 0.001, max = 0.25, nominal = 0.032) \"Molar mass (of mixture or single fluid)\"; +// Real pipe1.mediums[3].state.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Absolute pressure of medium\"; +// Real pipe1.mediums[3].state.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature of medium\"; +// Real pipe1.mediums[3].state.X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe1.mediums[3].state.X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final parameter Boolean pipe1.mediums[3].preferredMediumStates = true \"= true if StateSelect.prefer shall be used for the independent property variables of the medium\"; +// final parameter Boolean pipe1.mediums[3].standardOrderComponents = true \"If true, and reducedX = true, the last element of X will be computed from the other ones\"; +// Real pipe1.mediums[3].T_degC(quantity = \"ThermodynamicTemperature\", unit = \"degC\") = Modelica.SIunits.Conversions.to_degC(pipe1.mediums[3].T) \"Temperature of medium in [degC]\"; +// Real pipe1.mediums[3].p_bar(quantity = \"Pressure\", unit = \"bar\") = Modelica.SIunits.Conversions.to_bar(pipe1.mediums[3].p) \"Absolute pressure of medium in [bar]\"; +// Real pipe1.mediums[3].x_water(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass of total water/mass of dry air\"; +// Real pipe1.mediums[3].phi \"Relative humidity\"; +// protected Real pipe1.mediums[3].n14(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass fraction of liquid or solid water\"; +// protected Real pipe1.mediums[3].n15(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass fraction of steam water\"; +// protected Real pipe1.mediums[3].n16(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass fraction of air\"; +// protected Real pipe1.mediums[3].n17(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Steam water mass fraction of saturation boundary in kg_water/kg_moistair\"; +// protected Real pipe1.mediums[3].n18(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Steam water mass content of saturation boundary in kg_water/kg_dryair\"; +// protected Real pipe1.mediums[3].n19(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"partial saturation pressure of steam\"; +// Real pipe1.mediums[4].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, start = pipe1.ps_start[4], nominal = 1e5, stateSelect = StateSelect.prefer) \"Absolute pressure of medium\"; +// Real pipe1.mediums[4].Xi[1](quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0, start = pipe1.X_start[1], stateSelect = StateSelect.prefer) \"Structurally independent mass fractions\"; +// Real pipe1.mediums[4].h(quantity = \"SpecificEnergy\", unit = \"J/kg\", start = pipe1.h_start) \"Specific enthalpy of medium\"; +// Real pipe1.mediums[4].d(quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0) \"Density of medium\"; +// Real pipe1.mediums[4].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = pipe1.T_start, nominal = 300.0, stateSelect = StateSelect.prefer) \"Temperature of medium\"; +// Real pipe1.mediums[4].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe1.mediums[4].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe1.mediums[4].u(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -1e8, max = 1e8, nominal = 1e6) \"Specific internal energy of medium\"; +// Real pipe1.mediums[4].R(quantity = \"SpecificHeatCapacity\", unit = \"J/(kg.K)\", min = 0.0, max = 1e7, start = 1000.0, nominal = 1000.0) \"Gas constant (of mixture if applicable)\"; +// Real pipe1.mediums[4].MM(quantity = \"MolarMass\", unit = \"kg/mol\", min = 0.001, max = 0.25, nominal = 0.032) \"Molar mass (of mixture or single fluid)\"; +// Real pipe1.mediums[4].state.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Absolute pressure of medium\"; +// Real pipe1.mediums[4].state.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature of medium\"; +// Real pipe1.mediums[4].state.X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe1.mediums[4].state.X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final parameter Boolean pipe1.mediums[4].preferredMediumStates = true \"= true if StateSelect.prefer shall be used for the independent property variables of the medium\"; +// final parameter Boolean pipe1.mediums[4].standardOrderComponents = true \"If true, and reducedX = true, the last element of X will be computed from the other ones\"; +// Real pipe1.mediums[4].T_degC(quantity = \"ThermodynamicTemperature\", unit = \"degC\") = Modelica.SIunits.Conversions.to_degC(pipe1.mediums[4].T) \"Temperature of medium in [degC]\"; +// Real pipe1.mediums[4].p_bar(quantity = \"Pressure\", unit = \"bar\") = Modelica.SIunits.Conversions.to_bar(pipe1.mediums[4].p) \"Absolute pressure of medium in [bar]\"; +// Real pipe1.mediums[4].x_water(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass of total water/mass of dry air\"; +// Real pipe1.mediums[4].phi \"Relative humidity\"; +// protected Real pipe1.mediums[4].n14(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass fraction of liquid or solid water\"; +// protected Real pipe1.mediums[4].n15(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass fraction of steam water\"; +// protected Real pipe1.mediums[4].n16(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass fraction of air\"; +// protected Real pipe1.mediums[4].n17(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Steam water mass fraction of saturation boundary in kg_water/kg_moistair\"; +// protected Real pipe1.mediums[4].n18(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Steam water mass content of saturation boundary in kg_water/kg_dryair\"; +// protected Real pipe1.mediums[4].n19(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"partial saturation pressure of steam\"; +// Real pipe1.mediums[5].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, start = pipe1.ps_start[5], nominal = 1e5, stateSelect = StateSelect.prefer) \"Absolute pressure of medium\"; +// Real pipe1.mediums[5].Xi[1](quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0, start = pipe1.X_start[1], stateSelect = StateSelect.prefer) \"Structurally independent mass fractions\"; +// Real pipe1.mediums[5].h(quantity = \"SpecificEnergy\", unit = \"J/kg\", start = pipe1.h_start) \"Specific enthalpy of medium\"; +// Real pipe1.mediums[5].d(quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0) \"Density of medium\"; +// Real pipe1.mediums[5].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = pipe1.T_start, nominal = 300.0, stateSelect = StateSelect.prefer) \"Temperature of medium\"; +// Real pipe1.mediums[5].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe1.mediums[5].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe1.mediums[5].u(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -1e8, max = 1e8, nominal = 1e6) \"Specific internal energy of medium\"; +// Real pipe1.mediums[5].R(quantity = \"SpecificHeatCapacity\", unit = \"J/(kg.K)\", min = 0.0, max = 1e7, start = 1000.0, nominal = 1000.0) \"Gas constant (of mixture if applicable)\"; +// Real pipe1.mediums[5].MM(quantity = \"MolarMass\", unit = \"kg/mol\", min = 0.001, max = 0.25, nominal = 0.032) \"Molar mass (of mixture or single fluid)\"; +// Real pipe1.mediums[5].state.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Absolute pressure of medium\"; +// Real pipe1.mediums[5].state.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature of medium\"; +// Real pipe1.mediums[5].state.X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe1.mediums[5].state.X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final parameter Boolean pipe1.mediums[5].preferredMediumStates = true \"= true if StateSelect.prefer shall be used for the independent property variables of the medium\"; +// final parameter Boolean pipe1.mediums[5].standardOrderComponents = true \"If true, and reducedX = true, the last element of X will be computed from the other ones\"; +// Real pipe1.mediums[5].T_degC(quantity = \"ThermodynamicTemperature\", unit = \"degC\") = Modelica.SIunits.Conversions.to_degC(pipe1.mediums[5].T) \"Temperature of medium in [degC]\"; +// Real pipe1.mediums[5].p_bar(quantity = \"Pressure\", unit = \"bar\") = Modelica.SIunits.Conversions.to_bar(pipe1.mediums[5].p) \"Absolute pressure of medium in [bar]\"; +// Real pipe1.mediums[5].x_water(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass of total water/mass of dry air\"; +// Real pipe1.mediums[5].phi \"Relative humidity\"; +// protected Real pipe1.mediums[5].n14(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass fraction of liquid or solid water\"; +// protected Real pipe1.mediums[5].n15(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass fraction of steam water\"; +// protected Real pipe1.mediums[5].n16(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass fraction of air\"; +// protected Real pipe1.mediums[5].n17(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Steam water mass fraction of saturation boundary in kg_water/kg_moistair\"; +// protected Real pipe1.mediums[5].n18(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Steam water mass content of saturation boundary in kg_water/kg_dryair\"; +// protected Real pipe1.mediums[5].n19(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"partial saturation pressure of steam\"; +// Real pipe1.mb_flows[1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) \"Mass flow rate, source or sink\"; +// Real pipe1.mb_flows[2](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) \"Mass flow rate, source or sink\"; +// Real pipe1.mb_flows[3](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) \"Mass flow rate, source or sink\"; +// Real pipe1.mb_flows[4](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) \"Mass flow rate, source or sink\"; +// Real pipe1.mb_flows[5](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) \"Mass flow rate, source or sink\"; +// Real pipe1.mbXi_flows[1,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) \"Independent mass flow rates, source or sink\"; +// Real pipe1.mbXi_flows[2,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) \"Independent mass flow rates, source or sink\"; +// Real pipe1.mbXi_flows[3,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) \"Independent mass flow rates, source or sink\"; +// Real pipe1.mbXi_flows[4,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) \"Independent mass flow rates, source or sink\"; +// Real pipe1.mbXi_flows[5,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) \"Independent mass flow rates, source or sink\"; +// Real pipe1.Hb_flows[1](quantity = \"EnthalpyFlowRate\", unit = \"W\") \"Enthalpy flow rate, source or sink\"; +// Real pipe1.Hb_flows[2](quantity = \"EnthalpyFlowRate\", unit = \"W\") \"Enthalpy flow rate, source or sink\"; +// Real pipe1.Hb_flows[3](quantity = \"EnthalpyFlowRate\", unit = \"W\") \"Enthalpy flow rate, source or sink\"; +// Real pipe1.Hb_flows[4](quantity = \"EnthalpyFlowRate\", unit = \"W\") \"Enthalpy flow rate, source or sink\"; +// Real pipe1.Hb_flows[5](quantity = \"EnthalpyFlowRate\", unit = \"W\") \"Enthalpy flow rate, source or sink\"; +// Real pipe1.Qb_flows[1](quantity = \"Power\", unit = \"W\") \"Heat flow rate, source or sink\"; +// Real pipe1.Qb_flows[2](quantity = \"Power\", unit = \"W\") \"Heat flow rate, source or sink\"; +// Real pipe1.Qb_flows[3](quantity = \"Power\", unit = \"W\") \"Heat flow rate, source or sink\"; +// Real pipe1.Qb_flows[4](quantity = \"Power\", unit = \"W\") \"Heat flow rate, source or sink\"; +// Real pipe1.Qb_flows[5](quantity = \"Power\", unit = \"W\") \"Heat flow rate, source or sink\"; +// Real pipe1.Wb_flows[1](quantity = \"Power\", unit = \"W\") \"Mechanical power, p*der(V) etc.\"; +// Real pipe1.Wb_flows[2](quantity = \"Power\", unit = \"W\") \"Mechanical power, p*der(V) etc.\"; +// Real pipe1.Wb_flows[3](quantity = \"Power\", unit = \"W\") \"Mechanical power, p*der(V) etc.\"; +// Real pipe1.Wb_flows[4](quantity = \"Power\", unit = \"W\") \"Mechanical power, p*der(V) etc.\"; +// Real pipe1.Wb_flows[5](quantity = \"Power\", unit = \"W\") \"Mechanical power, p*der(V) etc.\"; +// protected final parameter Boolean pipe1.n20 = true \"= true to set up initial equations for pressure\"; +// final parameter Real pipe1.lengths[1](quantity = \"Length\", unit = \"m\") = 10.0 \"lengths of flow segments\"; +// final parameter Real pipe1.lengths[2](quantity = \"Length\", unit = \"m\") = 10.0 \"lengths of flow segments\"; +// final parameter Real pipe1.lengths[3](quantity = \"Length\", unit = \"m\") = 10.0 \"lengths of flow segments\"; +// final parameter Real pipe1.lengths[4](quantity = \"Length\", unit = \"m\") = 10.0 \"lengths of flow segments\"; +// final parameter Real pipe1.lengths[5](quantity = \"Length\", unit = \"m\") = 10.0 \"lengths of flow segments\"; +// final parameter Real pipe1.crossAreas[1](quantity = \"Area\", unit = \"m2\") = pipe1.crossArea \"cross flow areas of flow segments\"; +// final parameter Real pipe1.crossAreas[2](quantity = \"Area\", unit = \"m2\") = pipe1.crossArea \"cross flow areas of flow segments\"; +// final parameter Real pipe1.crossAreas[3](quantity = \"Area\", unit = \"m2\") = pipe1.crossArea \"cross flow areas of flow segments\"; +// final parameter Real pipe1.crossAreas[4](quantity = \"Area\", unit = \"m2\") = pipe1.crossArea \"cross flow areas of flow segments\"; +// final parameter Real pipe1.crossAreas[5](quantity = \"Area\", unit = \"m2\") = pipe1.crossArea \"cross flow areas of flow segments\"; +// final parameter Real pipe1.dimensions[1](quantity = \"Length\", unit = \"m\") = 4.0 * pipe1.crossArea / pipe1.perimeter \"hydraulic diameters of flow segments\"; +// final parameter Real pipe1.dimensions[2](quantity = \"Length\", unit = \"m\") = 4.0 * pipe1.crossArea / pipe1.perimeter \"hydraulic diameters of flow segments\"; +// final parameter Real pipe1.dimensions[3](quantity = \"Length\", unit = \"m\") = 4.0 * pipe1.crossArea / pipe1.perimeter \"hydraulic diameters of flow segments\"; +// final parameter Real pipe1.dimensions[4](quantity = \"Length\", unit = \"m\") = 4.0 * pipe1.crossArea / pipe1.perimeter \"hydraulic diameters of flow segments\"; +// final parameter Real pipe1.dimensions[5](quantity = \"Length\", unit = \"m\") = 4.0 * pipe1.crossArea / pipe1.perimeter \"hydraulic diameters of flow segments\"; +// final parameter Real pipe1.roughnesses[1](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) = pipe1.roughness \"Average heights of surface asperities\"; +// final parameter Real pipe1.roughnesses[2](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) = pipe1.roughness \"Average heights of surface asperities\"; +// final parameter Real pipe1.roughnesses[3](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) = pipe1.roughness \"Average heights of surface asperities\"; +// final parameter Real pipe1.roughnesses[4](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) = pipe1.roughness \"Average heights of surface asperities\"; +// final parameter Real pipe1.roughnesses[5](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) = pipe1.roughness \"Average heights of surface asperities\"; +// final parameter Real pipe1.dheights[1](quantity = \"Length\", unit = \"m\") = 10.0 \"Differences in heights of flow segments\"; +// final parameter Real pipe1.dheights[2](quantity = \"Length\", unit = \"m\") = 10.0 \"Differences in heights of flow segments\"; +// final parameter Real pipe1.dheights[3](quantity = \"Length\", unit = \"m\") = 10.0 \"Differences in heights of flow segments\"; +// final parameter Real pipe1.dheights[4](quantity = \"Length\", unit = \"m\") = 10.0 \"Differences in heights of flow segments\"; +// final parameter Real pipe1.dheights[5](quantity = \"Length\", unit = \"m\") = 10.0 \"Differences in heights of flow segments\"; +// final parameter enumeration(DynamicFreeInitial, FixedInitial, SteadyStateInitial, SteadyState) pipe1.momentumDynamics = Modelica.Fluid.Types.Dynamics.SteadyStateInitial \"Formulation of momentum balances\"; +// final parameter Real pipe1.m_flow_start(quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) = 0.02 \"Start value for mass flow rate\"; +// final parameter Integer pipe1.nNodes(min = 1) = 5 \"Number of discrete flow volumes\"; +// final parameter enumeration(av_vb, a_v_b, av_b, a_vb) pipe1.modelStructure = Modelica.Fluid.Types.ModelStructure.a_v_b \"Determines whether flow or volume models are present at the ports\"; +// final parameter Boolean pipe1.useLumpedPressure = false \"=true to lump pressure states together\"; +// final parameter Integer pipe1.nFM = 6 \"number of flow models in flowModel\"; // final parameter Integer pipe1.nFMDistributed = 6; // final parameter Integer pipe1.nFMLumped = 2; -// final parameter Integer pipe1.iLumped = 3; -// final parameter Boolean pipe1.useInnerPortProperties = false; -// Real pipe1.state_a.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe1.state_a.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0); -// Real pipe1.state_a.X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe1.state_a.X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// Real pipe1.state_b.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe1.state_b.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0); -// Real pipe1.state_b.X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe1.state_b.X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// Real pipe1.statesFM[1].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe1.statesFM[1].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0); -// Real pipe1.statesFM[1].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe1.statesFM[1].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// Real pipe1.statesFM[2].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe1.statesFM[2].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0); -// Real pipe1.statesFM[2].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe1.statesFM[2].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// Real pipe1.statesFM[3].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe1.statesFM[3].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0); -// Real pipe1.statesFM[3].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe1.statesFM[3].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// Real pipe1.statesFM[4].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe1.statesFM[4].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0); -// Real pipe1.statesFM[4].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe1.statesFM[4].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// Real pipe1.statesFM[5].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe1.statesFM[5].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0); -// Real pipe1.statesFM[5].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe1.statesFM[5].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// Real pipe1.statesFM[6].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe1.statesFM[6].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0); -// Real pipe1.statesFM[6].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe1.statesFM[6].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// Real pipe1.statesFM[7].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe1.statesFM[7].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0); -// Real pipe1.statesFM[7].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe1.statesFM[7].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final parameter Boolean pipe1.flowModel.from_dp = true; -// final parameter Integer pipe1.flowModel.n = 7; -// final Real pipe1.flowModel.states[1].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe1.statesFM[1].p; -// final Real pipe1.flowModel.states[1].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe1.statesFM[1].T; -// final Real pipe1.flowModel.states[1].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// final Real pipe1.flowModel.states[1].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final Real pipe1.flowModel.states[2].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe1.statesFM[2].p; -// final Real pipe1.flowModel.states[2].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe1.statesFM[2].T; -// final Real pipe1.flowModel.states[2].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// final Real pipe1.flowModel.states[2].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final Real pipe1.flowModel.states[3].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe1.statesFM[3].p; -// final Real pipe1.flowModel.states[3].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe1.statesFM[3].T; -// final Real pipe1.flowModel.states[3].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// final Real pipe1.flowModel.states[3].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final Real pipe1.flowModel.states[4].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe1.statesFM[4].p; -// final Real pipe1.flowModel.states[4].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe1.statesFM[4].T; -// final Real pipe1.flowModel.states[4].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// final Real pipe1.flowModel.states[4].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final Real pipe1.flowModel.states[5].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe1.statesFM[5].p; -// final Real pipe1.flowModel.states[5].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe1.statesFM[5].T; -// final Real pipe1.flowModel.states[5].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// final Real pipe1.flowModel.states[5].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final Real pipe1.flowModel.states[6].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe1.statesFM[6].p; -// final Real pipe1.flowModel.states[6].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe1.statesFM[6].T; -// final Real pipe1.flowModel.states[6].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// final Real pipe1.flowModel.states[6].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final Real pipe1.flowModel.states[7].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe1.statesFM[7].p; -// final Real pipe1.flowModel.states[7].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe1.statesFM[7].T; -// final Real pipe1.flowModel.states[7].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// final Real pipe1.flowModel.states[7].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final Real pipe1.flowModel.vs[1](quantity = \"Velocity\", unit = \"m/s\"); -// final Real pipe1.flowModel.vs[2](quantity = \"Velocity\", unit = \"m/s\"); -// final Real pipe1.flowModel.vs[3](quantity = \"Velocity\", unit = \"m/s\"); -// final Real pipe1.flowModel.vs[4](quantity = \"Velocity\", unit = \"m/s\"); -// final Real pipe1.flowModel.vs[5](quantity = \"Velocity\", unit = \"m/s\"); -// final Real pipe1.flowModel.vs[6](quantity = \"Velocity\", unit = \"m/s\"); -// final Real pipe1.flowModel.vs[7](quantity = \"Velocity\", unit = \"m/s\"); -// final parameter Real pipe1.flowModel.nParallel = pipe1.nParallel; -// final Real pipe1.flowModel.crossAreas[1](quantity = \"Area\", unit = \"m2\"); -// final Real pipe1.flowModel.crossAreas[2](quantity = \"Area\", unit = \"m2\"); -// final Real pipe1.flowModel.crossAreas[3](quantity = \"Area\", unit = \"m2\"); -// final Real pipe1.flowModel.crossAreas[4](quantity = \"Area\", unit = \"m2\"); -// final Real pipe1.flowModel.crossAreas[5](quantity = \"Area\", unit = \"m2\"); -// final Real pipe1.flowModel.crossAreas[6](quantity = \"Area\", unit = \"m2\"); -// final Real pipe1.flowModel.crossAreas[7](quantity = \"Area\", unit = \"m2\"); -// final Real pipe1.flowModel.dimensions[1](quantity = \"Length\", unit = \"m\"); -// final Real pipe1.flowModel.dimensions[2](quantity = \"Length\", unit = \"m\"); -// final Real pipe1.flowModel.dimensions[3](quantity = \"Length\", unit = \"m\"); -// final Real pipe1.flowModel.dimensions[4](quantity = \"Length\", unit = \"m\"); -// final Real pipe1.flowModel.dimensions[5](quantity = \"Length\", unit = \"m\"); -// final Real pipe1.flowModel.dimensions[6](quantity = \"Length\", unit = \"m\"); -// final Real pipe1.flowModel.dimensions[7](quantity = \"Length\", unit = \"m\"); -// final Real pipe1.flowModel.roughnesses[1](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); -// final Real pipe1.flowModel.roughnesses[2](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); -// final Real pipe1.flowModel.roughnesses[3](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); -// final Real pipe1.flowModel.roughnesses[4](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); -// final Real pipe1.flowModel.roughnesses[5](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); -// final Real pipe1.flowModel.roughnesses[6](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); -// final Real pipe1.flowModel.roughnesses[7](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); -// final Real pipe1.flowModel.dheights[1](quantity = \"Length\", unit = \"m\"); -// final Real pipe1.flowModel.dheights[2](quantity = \"Length\", unit = \"m\"); -// final Real pipe1.flowModel.dheights[3](quantity = \"Length\", unit = \"m\"); -// final Real pipe1.flowModel.dheights[4](quantity = \"Length\", unit = \"m\"); -// final Real pipe1.flowModel.dheights[5](quantity = \"Length\", unit = \"m\"); -// final Real pipe1.flowModel.dheights[6](quantity = \"Length\", unit = \"m\"); -// final parameter Real pipe1.flowModel.g(quantity = \"Acceleration\", unit = \"m/s2\") = system.g; -// final parameter Boolean pipe1.flowModel.allowFlowReversal = true; -// final parameter enumeration(DynamicFreeInitial, FixedInitial, SteadyStateInitial, SteadyState) pipe1.flowModel.momentumDynamics = Modelica.Fluid.Types.Dynamics.SteadyStateInitial; -// final parameter Real pipe1.flowModel.m_flow_start(quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0) = 0.02; -// final parameter Real pipe1.flowModel.p_a_start(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe1.p_a_start; -// final parameter Real pipe1.flowModel.p_b_start(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe1.p_b_start; -// final parameter Integer pipe1.flowModel.m = 6; -// final Real pipe1.flowModel.pathLengths[1](quantity = \"Length\", unit = \"m\"); -// final Real pipe1.flowModel.pathLengths[2](quantity = \"Length\", unit = \"m\"); -// final Real pipe1.flowModel.pathLengths[3](quantity = \"Length\", unit = \"m\"); -// final Real pipe1.flowModel.pathLengths[4](quantity = \"Length\", unit = \"m\"); -// final Real pipe1.flowModel.pathLengths[5](quantity = \"Length\", unit = \"m\"); -// final Real pipe1.flowModel.pathLengths[6](quantity = \"Length\", unit = \"m\"); -// Real pipe1.flowModel.m_flows[1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -9.999999999999999e+59, max = 100000.0, start = 0.02, stateSelect = StateSelect.prefer); -// Real pipe1.flowModel.m_flows[2](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -9.999999999999999e+59, max = 100000.0, start = 0.02, stateSelect = StateSelect.prefer); -// Real pipe1.flowModel.m_flows[3](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -9.999999999999999e+59, max = 100000.0, start = 0.02, stateSelect = StateSelect.prefer); -// Real pipe1.flowModel.m_flows[4](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -9.999999999999999e+59, max = 100000.0, start = 0.02, stateSelect = StateSelect.prefer); -// Real pipe1.flowModel.m_flows[5](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -9.999999999999999e+59, max = 100000.0, start = 0.02, stateSelect = StateSelect.prefer); -// Real pipe1.flowModel.m_flows[6](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -9.999999999999999e+59, max = 100000.0, start = 0.02, stateSelect = StateSelect.prefer); -// Real pipe1.flowModel.Is[1](quantity = \"Momentum\", unit = \"kg.m/s\"); -// Real pipe1.flowModel.Is[2](quantity = \"Momentum\", unit = \"kg.m/s\"); -// Real pipe1.flowModel.Is[3](quantity = \"Momentum\", unit = \"kg.m/s\"); -// Real pipe1.flowModel.Is[4](quantity = \"Momentum\", unit = \"kg.m/s\"); -// Real pipe1.flowModel.Is[5](quantity = \"Momentum\", unit = \"kg.m/s\"); -// Real pipe1.flowModel.Is[6](quantity = \"Momentum\", unit = \"kg.m/s\"); -// Real pipe1.flowModel.Ib_flows[1](quantity = \"Force\", unit = \"N\"); -// Real pipe1.flowModel.Ib_flows[2](quantity = \"Force\", unit = \"N\"); -// Real pipe1.flowModel.Ib_flows[3](quantity = \"Force\", unit = \"N\"); -// Real pipe1.flowModel.Ib_flows[4](quantity = \"Force\", unit = \"N\"); -// Real pipe1.flowModel.Ib_flows[5](quantity = \"Force\", unit = \"N\"); -// Real pipe1.flowModel.Ib_flows[6](quantity = \"Force\", unit = \"N\"); -// Real pipe1.flowModel.Fs_p[1](quantity = \"Force\", unit = \"N\"); -// Real pipe1.flowModel.Fs_p[2](quantity = \"Force\", unit = \"N\"); -// Real pipe1.flowModel.Fs_p[3](quantity = \"Force\", unit = \"N\"); -// Real pipe1.flowModel.Fs_p[4](quantity = \"Force\", unit = \"N\"); -// Real pipe1.flowModel.Fs_p[5](quantity = \"Force\", unit = \"N\"); -// Real pipe1.flowModel.Fs_p[6](quantity = \"Force\", unit = \"N\"); -// Real pipe1.flowModel.Fs_fg[1](quantity = \"Force\", unit = \"N\"); -// Real pipe1.flowModel.Fs_fg[2](quantity = \"Force\", unit = \"N\"); -// Real pipe1.flowModel.Fs_fg[3](quantity = \"Force\", unit = \"N\"); -// Real pipe1.flowModel.Fs_fg[4](quantity = \"Force\", unit = \"N\"); -// Real pipe1.flowModel.Fs_fg[5](quantity = \"Force\", unit = \"N\"); -// Real pipe1.flowModel.Fs_fg[6](quantity = \"Force\", unit = \"N\"); -// final parameter Boolean pipe1.flowModel.useUpstreamScheme = true; -// final parameter Boolean pipe1.flowModel.use_Ib_flows = true; -// Real pipe1.flowModel.rhos[1](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe1.flowModel.rhos[2](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe1.flowModel.rhos[3](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe1.flowModel.rhos[4](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe1.flowModel.rhos[5](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe1.flowModel.rhos[6](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe1.flowModel.rhos[7](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe1.flowModel.rhos_act[1](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe1.flowModel.rhos_act[2](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe1.flowModel.rhos_act[3](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe1.flowModel.rhos_act[4](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe1.flowModel.rhos_act[5](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe1.flowModel.rhos_act[6](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe1.flowModel.mus[1](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 100000000.0, start = 0.001, nominal = 0.001); -// Real pipe1.flowModel.mus[2](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 100000000.0, start = 0.001, nominal = 0.001); -// Real pipe1.flowModel.mus[3](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 100000000.0, start = 0.001, nominal = 0.001); -// Real pipe1.flowModel.mus[4](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 100000000.0, start = 0.001, nominal = 0.001); -// Real pipe1.flowModel.mus[5](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 100000000.0, start = 0.001, nominal = 0.001); -// Real pipe1.flowModel.mus[6](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 100000000.0, start = 0.001, nominal = 0.001); -// Real pipe1.flowModel.mus[7](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 100000000.0, start = 0.001, nominal = 0.001); -// Real pipe1.flowModel.mus_act[1](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 100000000.0, start = 0.001, nominal = 0.001); -// Real pipe1.flowModel.mus_act[2](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 100000000.0, start = 0.001, nominal = 0.001); -// Real pipe1.flowModel.mus_act[3](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 100000000.0, start = 0.001, nominal = 0.001); -// Real pipe1.flowModel.mus_act[4](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 100000000.0, start = 0.001, nominal = 0.001); -// Real pipe1.flowModel.mus_act[5](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 100000000.0, start = 0.001, nominal = 0.001); -// Real pipe1.flowModel.mus_act[6](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 100000000.0, start = 0.001, nominal = 0.001); -// Real pipe1.flowModel.dps_fg[1](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", start = (pipe1.flowModel.p_a_start - pipe1.flowModel.p_b_start) / 6.0); -// Real pipe1.flowModel.dps_fg[2](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", start = (pipe1.flowModel.p_a_start - pipe1.flowModel.p_b_start) / 6.0); -// Real pipe1.flowModel.dps_fg[3](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", start = (pipe1.flowModel.p_a_start - pipe1.flowModel.p_b_start) / 6.0); -// Real pipe1.flowModel.dps_fg[4](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", start = (pipe1.flowModel.p_a_start - pipe1.flowModel.p_b_start) / 6.0); -// Real pipe1.flowModel.dps_fg[5](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", start = (pipe1.flowModel.p_a_start - pipe1.flowModel.p_b_start) / 6.0); -// Real pipe1.flowModel.dps_fg[6](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", start = (pipe1.flowModel.p_a_start - pipe1.flowModel.p_b_start) / 6.0); -// final parameter Real pipe1.flowModel.Re_turbulent(quantity = \"ReynoldsNumber\", unit = \"1\") = 4000.0; -// final parameter Boolean pipe1.flowModel.show_Res = false; -// protected final parameter Boolean pipe1.flowModel.n21 = false; -// protected parameter Real pipe1.flowModel.n22(quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0) = 1.196838693581092; -// protected final parameter Boolean pipe1.flowModel.n23 = false; -// protected parameter Real pipe1.flowModel.n24(quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0) = 1.823286547365138e-05; -// Real pipe1.flowModel.pathLengths_internal[1](quantity = \"Length\", unit = \"m\"); -// Real pipe1.flowModel.pathLengths_internal[2](quantity = \"Length\", unit = \"m\"); -// Real pipe1.flowModel.pathLengths_internal[3](quantity = \"Length\", unit = \"m\"); -// Real pipe1.flowModel.pathLengths_internal[4](quantity = \"Length\", unit = \"m\"); -// Real pipe1.flowModel.pathLengths_internal[5](quantity = \"Length\", unit = \"m\"); -// Real pipe1.flowModel.pathLengths_internal[6](quantity = \"Length\", unit = \"m\"); -// Real pipe1.flowModel.Res_turbulent_internal[1](quantity = \"ReynoldsNumber\", unit = \"1\"); -// Real pipe1.flowModel.Res_turbulent_internal[2](quantity = \"ReynoldsNumber\", unit = \"1\"); -// Real pipe1.flowModel.Res_turbulent_internal[3](quantity = \"ReynoldsNumber\", unit = \"1\"); -// Real pipe1.flowModel.Res_turbulent_internal[4](quantity = \"ReynoldsNumber\", unit = \"1\"); -// Real pipe1.flowModel.Res_turbulent_internal[5](quantity = \"ReynoldsNumber\", unit = \"1\"); -// Real pipe1.flowModel.Res_turbulent_internal[6](quantity = \"ReynoldsNumber\", unit = \"1\"); -// parameter Real pipe1.flowModel.dp_nominal(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, start = 1.0, fixed = false, nominal = 100000.0); -// parameter Real pipe1.flowModel.m_flow_nominal(quantity = \"MassFlowRate\", unit = \"kg/s\") = 100.0 * pipe1.flowModel.m_flow_small; -// parameter Real pipe1.flowModel.m_flow_small(quantity = \"MassFlowRate\", unit = \"kg/s\") = system.m_flow_small; -// protected parameter Real pipe1.flowModel.n25(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, start = 1.0, fixed = false, nominal = 100000.0); -// protected final parameter Boolean pipe1.flowModel.n26 = false; -// protected final parameter Boolean pipe1.flowModel.n27 = false; -// protected Real pipe1.flowModel.n28[1](quantity = \"Length\", unit = \"m\"); -// protected Real pipe1.flowModel.n28[2](quantity = \"Length\", unit = \"m\"); -// protected Real pipe1.flowModel.n28[3](quantity = \"Length\", unit = \"m\"); -// protected Real pipe1.flowModel.n28[4](quantity = \"Length\", unit = \"m\"); -// protected Real pipe1.flowModel.n28[5](quantity = \"Length\", unit = \"m\"); -// protected Real pipe1.flowModel.n28[6](quantity = \"Length\", unit = \"m\"); -// protected Real pipe1.flowModel.n29(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 100000.0) = Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.flowModel.WallFriction.pressureLoss_m_flow(pipe1.flowModel.m_flow_nominal / pipe1.flowModel.nParallel, pipe1.flowModel.n22, pipe1.flowModel.n22, pipe1.flowModel.n24, pipe1.flowModel.n24, pipe1.flowModel.pathLengths_internal[1], pipe1.flowModel.n28[1], (pipe1.flowModel.crossAreas[1] + pipe1.flowModel.crossAreas[2]) / 2.0, (pipe1.flowModel.roughnesses[1] + pipe1.flowModel.roughnesses[2]) / 2.0, pipe1.flowModel.m_flow_small / pipe1.flowModel.nParallel, pipe1.flowModel.Res_turbulent_internal[1]) + Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.flowModel.WallFriction.pressureLoss_m_flow(pipe1.flowModel.m_flow_nominal / pipe1.flowModel.nParallel, pipe1.flowModel.n22, pipe1.flowModel.n22, pipe1.flowModel.n24, pipe1.flowModel.n24, pipe1.flowModel.pathLengths_internal[2], pipe1.flowModel.n28[2], (pipe1.flowModel.crossAreas[2] + pipe1.flowModel.crossAreas[3]) / 2.0, (pipe1.flowModel.roughnesses[2] + pipe1.flowModel.roughnesses[3]) / 2.0, pipe1.flowModel.m_flow_small / pipe1.flowModel.nParallel, pipe1.flowModel.Res_turbulent_internal[2]) + Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.flowModel.WallFriction.pressureLoss_m_flow(pipe1.flowModel.m_flow_nominal / pipe1.flowModel.nParallel, pipe1.flowModel.n22, pipe1.flowModel.n22, pipe1.flowModel.n24, pipe1.flowModel.n24, pipe1.flowModel.pathLengths_internal[3], pipe1.flowModel.n28[3], (pipe1.flowModel.crossAreas[3] + pipe1.flowModel.crossAreas[4]) / 2.0, (pipe1.flowModel.roughnesses[3] + pipe1.flowModel.roughnesses[4]) / 2.0, pipe1.flowModel.m_flow_small / pipe1.flowModel.nParallel, pipe1.flowModel.Res_turbulent_internal[3]) + Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.flowModel.WallFriction.pressureLoss_m_flow(pipe1.flowModel.m_flow_nominal / pipe1.flowModel.nParallel, pipe1.flowModel.n22, pipe1.flowModel.n22, pipe1.flowModel.n24, pipe1.flowModel.n24, pipe1.flowModel.pathLengths_internal[4], pipe1.flowModel.n28[4], (pipe1.flowModel.crossAreas[4] + pipe1.flowModel.crossAreas[5]) / 2.0, (pipe1.flowModel.roughnesses[4] + pipe1.flowModel.roughnesses[5]) / 2.0, pipe1.flowModel.m_flow_small / pipe1.flowModel.nParallel, pipe1.flowModel.Res_turbulent_internal[4]) + Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.flowModel.WallFriction.pressureLoss_m_flow(pipe1.flowModel.m_flow_nominal / pipe1.flowModel.nParallel, pipe1.flowModel.n22, pipe1.flowModel.n22, pipe1.flowModel.n24, pipe1.flowModel.n24, pipe1.flowModel.pathLengths_internal[5], pipe1.flowModel.n28[5], (pipe1.flowModel.crossAreas[5] + pipe1.flowModel.crossAreas[6]) / 2.0, (pipe1.flowModel.roughnesses[5] + pipe1.flowModel.roughnesses[6]) / 2.0, pipe1.flowModel.m_flow_small / pipe1.flowModel.nParallel, pipe1.flowModel.Res_turbulent_internal[5]) + Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.flowModel.WallFriction.pressureLoss_m_flow(pipe1.flowModel.m_flow_nominal / pipe1.flowModel.nParallel, pipe1.flowModel.n22, pipe1.flowModel.n22, pipe1.flowModel.n24, pipe1.flowModel.n24, pipe1.flowModel.pathLengths_internal[6], pipe1.flowModel.n28[6], (pipe1.flowModel.crossAreas[6] + pipe1.flowModel.crossAreas[7]) / 2.0, (pipe1.flowModel.roughnesses[6] + pipe1.flowModel.roughnesses[7]) / 2.0, pipe1.flowModel.m_flow_small / pipe1.flowModel.nParallel, pipe1.flowModel.Res_turbulent_internal[6]); -// Real pipe1.m_flows[1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -9.999999999999999e+59, max = 100000.0, start = 0.02); -// Real pipe1.m_flows[2](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -9.999999999999999e+59, max = 100000.0, start = 0.02); -// Real pipe1.m_flows[3](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -9.999999999999999e+59, max = 100000.0, start = 0.02); -// Real pipe1.m_flows[4](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -9.999999999999999e+59, max = 100000.0, start = 0.02); -// Real pipe1.m_flows[5](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -9.999999999999999e+59, max = 100000.0, start = 0.02); -// Real pipe1.m_flows[6](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -9.999999999999999e+59, max = 100000.0, start = 0.02); -// Real pipe1.mXi_flows[1,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0); -// Real pipe1.mXi_flows[2,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0); -// Real pipe1.mXi_flows[3,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0); -// Real pipe1.mXi_flows[4,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0); -// Real pipe1.mXi_flows[5,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0); -// Real pipe1.mXi_flows[6,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0); -// Real pipe1.H_flows[1](quantity = \"EnthalpyFlowRate\", unit = \"W\", min = -100000000.0, max = 100000000.0, nominal = 1000.0); -// Real pipe1.H_flows[2](quantity = \"EnthalpyFlowRate\", unit = \"W\", min = -100000000.0, max = 100000000.0, nominal = 1000.0); -// Real pipe1.H_flows[3](quantity = \"EnthalpyFlowRate\", unit = \"W\", min = -100000000.0, max = 100000000.0, nominal = 1000.0); -// Real pipe1.H_flows[4](quantity = \"EnthalpyFlowRate\", unit = \"W\", min = -100000000.0, max = 100000000.0, nominal = 1000.0); -// Real pipe1.H_flows[5](quantity = \"EnthalpyFlowRate\", unit = \"W\", min = -100000000.0, max = 100000000.0, nominal = 1000.0); -// Real pipe1.H_flows[6](quantity = \"EnthalpyFlowRate\", unit = \"W\", min = -100000000.0, max = 100000000.0, nominal = 1000.0); -// Real pipe1.vs[1](quantity = \"Velocity\", unit = \"m/s\"); -// Real pipe1.vs[2](quantity = \"Velocity\", unit = \"m/s\"); -// Real pipe1.vs[3](quantity = \"Velocity\", unit = \"m/s\"); -// Real pipe1.vs[4](quantity = \"Velocity\", unit = \"m/s\"); -// Real pipe1.vs[5](quantity = \"Velocity\", unit = \"m/s\"); -// protected Real pipe1.n30[1](quantity = \"Length\", unit = \"m\"); -// protected Real pipe1.n30[2](quantity = \"Length\", unit = \"m\"); -// protected Real pipe1.n30[3](quantity = \"Length\", unit = \"m\"); -// protected Real pipe1.n30[4](quantity = \"Length\", unit = \"m\"); -// protected Real pipe1.n30[5](quantity = \"Length\", unit = \"m\"); -// protected Real pipe1.n30[6](quantity = \"Length\", unit = \"m\"); -// protected Real pipe1.n31[1](quantity = \"Length\", unit = \"m\"); -// protected Real pipe1.n31[2](quantity = \"Length\", unit = \"m\"); -// protected Real pipe1.n31[3](quantity = \"Length\", unit = \"m\"); -// protected Real pipe1.n31[4](quantity = \"Length\", unit = \"m\"); -// protected Real pipe1.n31[5](quantity = \"Length\", unit = \"m\"); -// protected Real pipe1.n31[6](quantity = \"Length\", unit = \"m\"); -// protected Real pipe1.n32[1](quantity = \"Area\", unit = \"m2\"); -// protected Real pipe1.n32[2](quantity = \"Area\", unit = \"m2\"); -// protected Real pipe1.n32[3](quantity = \"Area\", unit = \"m2\"); -// protected Real pipe1.n32[4](quantity = \"Area\", unit = \"m2\"); -// protected Real pipe1.n32[5](quantity = \"Area\", unit = \"m2\"); -// protected Real pipe1.n32[6](quantity = \"Area\", unit = \"m2\"); -// protected Real pipe1.n32[7](quantity = \"Area\", unit = \"m2\"); -// protected Real pipe1.n33[1](quantity = \"Velocity\", unit = \"m/s\"); -// protected Real pipe1.n33[2](quantity = \"Velocity\", unit = \"m/s\"); -// protected Real pipe1.n33[3](quantity = \"Velocity\", unit = \"m/s\"); -// protected Real pipe1.n33[4](quantity = \"Velocity\", unit = \"m/s\"); -// protected Real pipe1.n33[5](quantity = \"Velocity\", unit = \"m/s\"); -// protected Real pipe1.n33[6](quantity = \"Velocity\", unit = \"m/s\"); -// protected Real pipe1.n33[7](quantity = \"Velocity\", unit = \"m/s\"); -// protected Real pipe1.n34[1](quantity = \"Length\", unit = \"m\"); -// protected Real pipe1.n34[2](quantity = \"Length\", unit = \"m\"); -// protected Real pipe1.n34[3](quantity = \"Length\", unit = \"m\"); -// protected Real pipe1.n34[4](quantity = \"Length\", unit = \"m\"); -// protected Real pipe1.n34[5](quantity = \"Length\", unit = \"m\"); -// protected Real pipe1.n34[6](quantity = \"Length\", unit = \"m\"); -// protected Real pipe1.n34[7](quantity = \"Length\", unit = \"m\"); -// protected Real pipe1.n35[1](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); -// protected Real pipe1.n35[2](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); -// protected Real pipe1.n35[3](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); -// protected Real pipe1.n35[4](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); -// protected Real pipe1.n35[5](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); -// protected Real pipe1.n35[6](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); -// protected Real pipe1.n35[7](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); -// final parameter Boolean pipe1.use_HeatTransfer = false; -// final parameter Integer pipe1.heatTransfer.n = 5; -// final Real pipe1.heatTransfer.states[1].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe1.mediums[1].state.p; -// final Real pipe1.heatTransfer.states[1].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe1.mediums[1].state.T; -// final Real pipe1.heatTransfer.states[1].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// final Real pipe1.heatTransfer.states[1].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final Real pipe1.heatTransfer.states[2].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe1.mediums[2].state.p; -// final Real pipe1.heatTransfer.states[2].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe1.mediums[2].state.T; -// final Real pipe1.heatTransfer.states[2].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// final Real pipe1.heatTransfer.states[2].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final Real pipe1.heatTransfer.states[3].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe1.mediums[3].state.p; -// final Real pipe1.heatTransfer.states[3].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe1.mediums[3].state.T; -// final Real pipe1.heatTransfer.states[3].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// final Real pipe1.heatTransfer.states[3].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final Real pipe1.heatTransfer.states[4].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe1.mediums[4].state.p; -// final Real pipe1.heatTransfer.states[4].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe1.mediums[4].state.T; -// final Real pipe1.heatTransfer.states[4].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// final Real pipe1.heatTransfer.states[4].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final Real pipe1.heatTransfer.states[5].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe1.mediums[5].state.p; -// final Real pipe1.heatTransfer.states[5].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe1.mediums[5].state.T; -// final Real pipe1.heatTransfer.states[5].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// final Real pipe1.heatTransfer.states[5].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final Real pipe1.heatTransfer.surfaceAreas[1](quantity = \"Area\", unit = \"m2\"); -// final Real pipe1.heatTransfer.surfaceAreas[2](quantity = \"Area\", unit = \"m2\"); -// final Real pipe1.heatTransfer.surfaceAreas[3](quantity = \"Area\", unit = \"m2\"); -// final Real pipe1.heatTransfer.surfaceAreas[4](quantity = \"Area\", unit = \"m2\"); -// final Real pipe1.heatTransfer.surfaceAreas[5](quantity = \"Area\", unit = \"m2\"); -// Real pipe1.heatTransfer.Q_flows[1](quantity = \"Power\", unit = \"W\"); -// Real pipe1.heatTransfer.Q_flows[2](quantity = \"Power\", unit = \"W\"); -// Real pipe1.heatTransfer.Q_flows[3](quantity = \"Power\", unit = \"W\"); -// Real pipe1.heatTransfer.Q_flows[4](quantity = \"Power\", unit = \"W\"); -// Real pipe1.heatTransfer.Q_flows[5](quantity = \"Power\", unit = \"W\"); -// final parameter Boolean pipe1.heatTransfer.use_k = false; -// final parameter Real pipe1.heatTransfer.k(quantity = \"CoefficientOfHeatTransfer\", unit = \"W/(m2.K)\") = 0.0; -// parameter Real pipe1.heatTransfer.T_ambient(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) = system.T_ambient; -// Real pipe1.heatTransfer.heatPorts[1].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0); -// Real pipe1.heatTransfer.heatPorts[1].Q_flow(quantity = \"Power\", unit = \"W\"); -// Real pipe1.heatTransfer.heatPorts[2].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0); -// Real pipe1.heatTransfer.heatPorts[2].Q_flow(quantity = \"Power\", unit = \"W\"); -// Real pipe1.heatTransfer.heatPorts[3].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0); -// Real pipe1.heatTransfer.heatPorts[3].Q_flow(quantity = \"Power\", unit = \"W\"); -// Real pipe1.heatTransfer.heatPorts[4].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0); -// Real pipe1.heatTransfer.heatPorts[4].Q_flow(quantity = \"Power\", unit = \"W\"); -// Real pipe1.heatTransfer.heatPorts[5].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0); -// Real pipe1.heatTransfer.heatPorts[5].Q_flow(quantity = \"Power\", unit = \"W\"); -// Real pipe1.heatTransfer.Ts[1](quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0); -// Real pipe1.heatTransfer.Ts[2](quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0); -// Real pipe1.heatTransfer.Ts[3](quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0); -// Real pipe1.heatTransfer.Ts[4](quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0); -// Real pipe1.heatTransfer.Ts[5](quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0); -// final Real pipe1.heatTransfer.vs[1](quantity = \"Velocity\", unit = \"m/s\"); -// final Real pipe1.heatTransfer.vs[2](quantity = \"Velocity\", unit = \"m/s\"); -// final Real pipe1.heatTransfer.vs[3](quantity = \"Velocity\", unit = \"m/s\"); -// final Real pipe1.heatTransfer.vs[4](quantity = \"Velocity\", unit = \"m/s\"); -// final Real pipe1.heatTransfer.vs[5](quantity = \"Velocity\", unit = \"m/s\"); -// final parameter Real pipe1.heatTransfer.nParallel = pipe1.nParallel; -// final Real pipe1.heatTransfer.lengths[1](quantity = \"Length\", unit = \"m\"); -// final Real pipe1.heatTransfer.lengths[2](quantity = \"Length\", unit = \"m\"); -// final Real pipe1.heatTransfer.lengths[3](quantity = \"Length\", unit = \"m\"); -// final Real pipe1.heatTransfer.lengths[4](quantity = \"Length\", unit = \"m\"); -// final Real pipe1.heatTransfer.lengths[5](quantity = \"Length\", unit = \"m\"); -// final Real pipe1.heatTransfer.dimensions[1](quantity = \"Length\", unit = \"m\"); -// final Real pipe1.heatTransfer.dimensions[2](quantity = \"Length\", unit = \"m\"); -// final Real pipe1.heatTransfer.dimensions[3](quantity = \"Length\", unit = \"m\"); -// final Real pipe1.heatTransfer.dimensions[4](quantity = \"Length\", unit = \"m\"); -// final Real pipe1.heatTransfer.dimensions[5](quantity = \"Length\", unit = \"m\"); -// final Real pipe1.heatTransfer.roughnesses[1](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); -// final Real pipe1.heatTransfer.roughnesses[2](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); -// final Real pipe1.heatTransfer.roughnesses[3](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); -// final Real pipe1.heatTransfer.roughnesses[4](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); -// final Real pipe1.heatTransfer.roughnesses[5](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); +// final parameter Integer pipe1.iLumped = 3 \"Index of control volume with representative state if useLumpedPressure\"; +// final parameter Boolean pipe1.useInnerPortProperties = false \"=true to take port properties for flow models from internal control volumes\"; +// Real pipe1.state_a.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Absolute pressure of medium\"; +// Real pipe1.state_a.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature of medium\"; +// Real pipe1.state_a.X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe1.state_a.X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe1.state_b.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Absolute pressure of medium\"; +// Real pipe1.state_b.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature of medium\"; +// Real pipe1.state_b.X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe1.state_b.X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe1.statesFM[1].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Absolute pressure of medium\"; +// Real pipe1.statesFM[1].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature of medium\"; +// Real pipe1.statesFM[1].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe1.statesFM[1].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe1.statesFM[2].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Absolute pressure of medium\"; +// Real pipe1.statesFM[2].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature of medium\"; +// Real pipe1.statesFM[2].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe1.statesFM[2].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe1.statesFM[3].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Absolute pressure of medium\"; +// Real pipe1.statesFM[3].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature of medium\"; +// Real pipe1.statesFM[3].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe1.statesFM[3].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe1.statesFM[4].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Absolute pressure of medium\"; +// Real pipe1.statesFM[4].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature of medium\"; +// Real pipe1.statesFM[4].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe1.statesFM[4].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe1.statesFM[5].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Absolute pressure of medium\"; +// Real pipe1.statesFM[5].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature of medium\"; +// Real pipe1.statesFM[5].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe1.statesFM[5].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe1.statesFM[6].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Absolute pressure of medium\"; +// Real pipe1.statesFM[6].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature of medium\"; +// Real pipe1.statesFM[6].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe1.statesFM[6].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe1.statesFM[7].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Absolute pressure of medium\"; +// Real pipe1.statesFM[7].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature of medium\"; +// Real pipe1.statesFM[7].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe1.statesFM[7].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final parameter Boolean pipe1.flowModel.from_dp = true \"= true, use m_flow = f(dp), otherwise dp = f(m_flow)\"; +// final parameter Integer pipe1.flowModel.n = 7 \"Number of discrete flow volumes\"; +// final Real pipe1.flowModel.states[1].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe1.statesFM[1].p \"Absolute pressure of medium\"; +// final Real pipe1.flowModel.states[1].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe1.statesFM[1].T \"Temperature of medium\"; +// final Real pipe1.flowModel.states[1].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe1.flowModel.states[1].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe1.flowModel.states[2].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe1.statesFM[2].p \"Absolute pressure of medium\"; +// final Real pipe1.flowModel.states[2].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe1.statesFM[2].T \"Temperature of medium\"; +// final Real pipe1.flowModel.states[2].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe1.flowModel.states[2].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe1.flowModel.states[3].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe1.statesFM[3].p \"Absolute pressure of medium\"; +// final Real pipe1.flowModel.states[3].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe1.statesFM[3].T \"Temperature of medium\"; +// final Real pipe1.flowModel.states[3].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe1.flowModel.states[3].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe1.flowModel.states[4].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe1.statesFM[4].p \"Absolute pressure of medium\"; +// final Real pipe1.flowModel.states[4].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe1.statesFM[4].T \"Temperature of medium\"; +// final Real pipe1.flowModel.states[4].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe1.flowModel.states[4].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe1.flowModel.states[5].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe1.statesFM[5].p \"Absolute pressure of medium\"; +// final Real pipe1.flowModel.states[5].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe1.statesFM[5].T \"Temperature of medium\"; +// final Real pipe1.flowModel.states[5].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe1.flowModel.states[5].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe1.flowModel.states[6].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe1.statesFM[6].p \"Absolute pressure of medium\"; +// final Real pipe1.flowModel.states[6].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe1.statesFM[6].T \"Temperature of medium\"; +// final Real pipe1.flowModel.states[6].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe1.flowModel.states[6].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe1.flowModel.states[7].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe1.statesFM[7].p \"Absolute pressure of medium\"; +// final Real pipe1.flowModel.states[7].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe1.statesFM[7].T \"Temperature of medium\"; +// final Real pipe1.flowModel.states[7].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe1.flowModel.states[7].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe1.flowModel.vs[1](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities of fluid flow\"; +// final Real pipe1.flowModel.vs[2](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities of fluid flow\"; +// final Real pipe1.flowModel.vs[3](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities of fluid flow\"; +// final Real pipe1.flowModel.vs[4](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities of fluid flow\"; +// final Real pipe1.flowModel.vs[5](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities of fluid flow\"; +// final Real pipe1.flowModel.vs[6](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities of fluid flow\"; +// final Real pipe1.flowModel.vs[7](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities of fluid flow\"; +// final parameter Real pipe1.flowModel.nParallel = pipe1.nParallel \"number of identical parallel flow devices\"; +// final Real pipe1.flowModel.crossAreas[1](quantity = \"Area\", unit = \"m2\") \"Cross flow areas at segment boundaries\"; +// final Real pipe1.flowModel.crossAreas[2](quantity = \"Area\", unit = \"m2\") \"Cross flow areas at segment boundaries\"; +// final Real pipe1.flowModel.crossAreas[3](quantity = \"Area\", unit = \"m2\") \"Cross flow areas at segment boundaries\"; +// final Real pipe1.flowModel.crossAreas[4](quantity = \"Area\", unit = \"m2\") \"Cross flow areas at segment boundaries\"; +// final Real pipe1.flowModel.crossAreas[5](quantity = \"Area\", unit = \"m2\") \"Cross flow areas at segment boundaries\"; +// final Real pipe1.flowModel.crossAreas[6](quantity = \"Area\", unit = \"m2\") \"Cross flow areas at segment boundaries\"; +// final Real pipe1.flowModel.crossAreas[7](quantity = \"Area\", unit = \"m2\") \"Cross flow areas at segment boundaries\"; +// final Real pipe1.flowModel.dimensions[1](quantity = \"Length\", unit = \"m\") \"Characteristic dimensions for fluid flow (diameters for pipe flow)\"; +// final Real pipe1.flowModel.dimensions[2](quantity = \"Length\", unit = \"m\") \"Characteristic dimensions for fluid flow (diameters for pipe flow)\"; +// final Real pipe1.flowModel.dimensions[3](quantity = \"Length\", unit = \"m\") \"Characteristic dimensions for fluid flow (diameters for pipe flow)\"; +// final Real pipe1.flowModel.dimensions[4](quantity = \"Length\", unit = \"m\") \"Characteristic dimensions for fluid flow (diameters for pipe flow)\"; +// final Real pipe1.flowModel.dimensions[5](quantity = \"Length\", unit = \"m\") \"Characteristic dimensions for fluid flow (diameters for pipe flow)\"; +// final Real pipe1.flowModel.dimensions[6](quantity = \"Length\", unit = \"m\") \"Characteristic dimensions for fluid flow (diameters for pipe flow)\"; +// final Real pipe1.flowModel.dimensions[7](quantity = \"Length\", unit = \"m\") \"Characteristic dimensions for fluid flow (diameters for pipe flow)\"; +// final Real pipe1.flowModel.roughnesses[1](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average height of surface asperities\"; +// final Real pipe1.flowModel.roughnesses[2](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average height of surface asperities\"; +// final Real pipe1.flowModel.roughnesses[3](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average height of surface asperities\"; +// final Real pipe1.flowModel.roughnesses[4](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average height of surface asperities\"; +// final Real pipe1.flowModel.roughnesses[5](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average height of surface asperities\"; +// final Real pipe1.flowModel.roughnesses[6](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average height of surface asperities\"; +// final Real pipe1.flowModel.roughnesses[7](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average height of surface asperities\"; +// final Real pipe1.flowModel.dheights[1](quantity = \"Length\", unit = \"m\") \"Height(states[2:n]) - Height(states[1:n-1])\"; +// final Real pipe1.flowModel.dheights[2](quantity = \"Length\", unit = \"m\") \"Height(states[2:n]) - Height(states[1:n-1])\"; +// final Real pipe1.flowModel.dheights[3](quantity = \"Length\", unit = \"m\") \"Height(states[2:n]) - Height(states[1:n-1])\"; +// final Real pipe1.flowModel.dheights[4](quantity = \"Length\", unit = \"m\") \"Height(states[2:n]) - Height(states[1:n-1])\"; +// final Real pipe1.flowModel.dheights[5](quantity = \"Length\", unit = \"m\") \"Height(states[2:n]) - Height(states[1:n-1])\"; +// final Real pipe1.flowModel.dheights[6](quantity = \"Length\", unit = \"m\") \"Height(states[2:n]) - Height(states[1:n-1])\"; +// final parameter Real pipe1.flowModel.g(quantity = \"Acceleration\", unit = \"m/s2\") = system.g \"Constant gravity acceleration\"; +// final parameter Boolean pipe1.flowModel.allowFlowReversal = true \"= true to allow flow reversal, false restricts to design direction (states[1] -> states[n+1])\"; +// final parameter enumeration(DynamicFreeInitial, FixedInitial, SteadyStateInitial, SteadyState) pipe1.flowModel.momentumDynamics = Modelica.Fluid.Types.Dynamics.SteadyStateInitial \"Formulation of momentum balance\"; +// final parameter Real pipe1.flowModel.m_flow_start(quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) = 0.02 \"Start value of mass flow rates\"; +// final parameter Real pipe1.flowModel.p_a_start(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe1.p_a_start \"Start value for p[1] at design inflow\"; +// final parameter Real pipe1.flowModel.p_b_start(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe1.p_b_start \"Start value for p[n+1] at design outflow\"; +// final parameter Integer pipe1.flowModel.m = 6 \"Number of flow segments\"; +// final Real pipe1.flowModel.pathLengths[1](quantity = \"Length\", unit = \"m\") \"Lengths along flow path\"; +// final Real pipe1.flowModel.pathLengths[2](quantity = \"Length\", unit = \"m\") \"Lengths along flow path\"; +// final Real pipe1.flowModel.pathLengths[3](quantity = \"Length\", unit = \"m\") \"Lengths along flow path\"; +// final Real pipe1.flowModel.pathLengths[4](quantity = \"Length\", unit = \"m\") \"Lengths along flow path\"; +// final Real pipe1.flowModel.pathLengths[5](quantity = \"Length\", unit = \"m\") \"Lengths along flow path\"; +// final Real pipe1.flowModel.pathLengths[6](quantity = \"Length\", unit = \"m\") \"Lengths along flow path\"; +// Real pipe1.flowModel.m_flows[1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e60, max = 1e5, start = 0.02, stateSelect = StateSelect.prefer) \"mass flow rates between states\"; +// Real pipe1.flowModel.m_flows[2](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e60, max = 1e5, start = 0.02, stateSelect = StateSelect.prefer) \"mass flow rates between states\"; +// Real pipe1.flowModel.m_flows[3](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e60, max = 1e5, start = 0.02, stateSelect = StateSelect.prefer) \"mass flow rates between states\"; +// Real pipe1.flowModel.m_flows[4](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e60, max = 1e5, start = 0.02, stateSelect = StateSelect.prefer) \"mass flow rates between states\"; +// Real pipe1.flowModel.m_flows[5](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e60, max = 1e5, start = 0.02, stateSelect = StateSelect.prefer) \"mass flow rates between states\"; +// Real pipe1.flowModel.m_flows[6](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e60, max = 1e5, start = 0.02, stateSelect = StateSelect.prefer) \"mass flow rates between states\"; +// Real pipe1.flowModel.Is[1](quantity = \"Momentum\", unit = \"kg.m/s\") \"Momenta of flow segments\"; +// Real pipe1.flowModel.Is[2](quantity = \"Momentum\", unit = \"kg.m/s\") \"Momenta of flow segments\"; +// Real pipe1.flowModel.Is[3](quantity = \"Momentum\", unit = \"kg.m/s\") \"Momenta of flow segments\"; +// Real pipe1.flowModel.Is[4](quantity = \"Momentum\", unit = \"kg.m/s\") \"Momenta of flow segments\"; +// Real pipe1.flowModel.Is[5](quantity = \"Momentum\", unit = \"kg.m/s\") \"Momenta of flow segments\"; +// Real pipe1.flowModel.Is[6](quantity = \"Momentum\", unit = \"kg.m/s\") \"Momenta of flow segments\"; +// Real pipe1.flowModel.Ib_flows[1](quantity = \"Force\", unit = \"N\") \"Flow of momentum across boundaries\"; +// Real pipe1.flowModel.Ib_flows[2](quantity = \"Force\", unit = \"N\") \"Flow of momentum across boundaries\"; +// Real pipe1.flowModel.Ib_flows[3](quantity = \"Force\", unit = \"N\") \"Flow of momentum across boundaries\"; +// Real pipe1.flowModel.Ib_flows[4](quantity = \"Force\", unit = \"N\") \"Flow of momentum across boundaries\"; +// Real pipe1.flowModel.Ib_flows[5](quantity = \"Force\", unit = \"N\") \"Flow of momentum across boundaries\"; +// Real pipe1.flowModel.Ib_flows[6](quantity = \"Force\", unit = \"N\") \"Flow of momentum across boundaries\"; +// Real pipe1.flowModel.Fs_p[1](quantity = \"Force\", unit = \"N\") \"Pressure forces\"; +// Real pipe1.flowModel.Fs_p[2](quantity = \"Force\", unit = \"N\") \"Pressure forces\"; +// Real pipe1.flowModel.Fs_p[3](quantity = \"Force\", unit = \"N\") \"Pressure forces\"; +// Real pipe1.flowModel.Fs_p[4](quantity = \"Force\", unit = \"N\") \"Pressure forces\"; +// Real pipe1.flowModel.Fs_p[5](quantity = \"Force\", unit = \"N\") \"Pressure forces\"; +// Real pipe1.flowModel.Fs_p[6](quantity = \"Force\", unit = \"N\") \"Pressure forces\"; +// Real pipe1.flowModel.Fs_fg[1](quantity = \"Force\", unit = \"N\") \"Friction and gravity forces\"; +// Real pipe1.flowModel.Fs_fg[2](quantity = \"Force\", unit = \"N\") \"Friction and gravity forces\"; +// Real pipe1.flowModel.Fs_fg[3](quantity = \"Force\", unit = \"N\") \"Friction and gravity forces\"; +// Real pipe1.flowModel.Fs_fg[4](quantity = \"Force\", unit = \"N\") \"Friction and gravity forces\"; +// Real pipe1.flowModel.Fs_fg[5](quantity = \"Force\", unit = \"N\") \"Friction and gravity forces\"; +// Real pipe1.flowModel.Fs_fg[6](quantity = \"Force\", unit = \"N\") \"Friction and gravity forces\"; +// final parameter Boolean pipe1.flowModel.useUpstreamScheme = true \"= false to average upstream and downstream properties across flow segments\"; +// final parameter Boolean pipe1.flowModel.use_Ib_flows = true \"= true to consider differences in flow of momentum through boundaries\"; +// Real pipe1.flowModel.rhos[1](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0); +// Real pipe1.flowModel.rhos[2](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0); +// Real pipe1.flowModel.rhos[3](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0); +// Real pipe1.flowModel.rhos[4](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0); +// Real pipe1.flowModel.rhos[5](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0); +// Real pipe1.flowModel.rhos[6](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0); +// Real pipe1.flowModel.rhos[7](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0); +// Real pipe1.flowModel.rhos_act[1](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0) \"Actual density per segment\"; +// Real pipe1.flowModel.rhos_act[2](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0) \"Actual density per segment\"; +// Real pipe1.flowModel.rhos_act[3](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0) \"Actual density per segment\"; +// Real pipe1.flowModel.rhos_act[4](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0) \"Actual density per segment\"; +// Real pipe1.flowModel.rhos_act[5](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0) \"Actual density per segment\"; +// Real pipe1.flowModel.rhos_act[6](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0) \"Actual density per segment\"; +// Real pipe1.flowModel.mus[1](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 1e8, start = 0.001, nominal = 0.001); +// Real pipe1.flowModel.mus[2](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 1e8, start = 0.001, nominal = 0.001); +// Real pipe1.flowModel.mus[3](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 1e8, start = 0.001, nominal = 0.001); +// Real pipe1.flowModel.mus[4](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 1e8, start = 0.001, nominal = 0.001); +// Real pipe1.flowModel.mus[5](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 1e8, start = 0.001, nominal = 0.001); +// Real pipe1.flowModel.mus[6](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 1e8, start = 0.001, nominal = 0.001); +// Real pipe1.flowModel.mus[7](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 1e8, start = 0.001, nominal = 0.001); +// Real pipe1.flowModel.mus_act[1](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 1e8, start = 0.001, nominal = 0.001) \"Actual viscosity per segment\"; +// Real pipe1.flowModel.mus_act[2](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 1e8, start = 0.001, nominal = 0.001) \"Actual viscosity per segment\"; +// Real pipe1.flowModel.mus_act[3](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 1e8, start = 0.001, nominal = 0.001) \"Actual viscosity per segment\"; +// Real pipe1.flowModel.mus_act[4](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 1e8, start = 0.001, nominal = 0.001) \"Actual viscosity per segment\"; +// Real pipe1.flowModel.mus_act[5](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 1e8, start = 0.001, nominal = 0.001) \"Actual viscosity per segment\"; +// Real pipe1.flowModel.mus_act[6](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 1e8, start = 0.001, nominal = 0.001) \"Actual viscosity per segment\"; +// Real pipe1.flowModel.dps_fg[1](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", start = (pipe1.flowModel.p_a_start - pipe1.flowModel.p_b_start) / 6.0) \"pressure drop between states\"; +// Real pipe1.flowModel.dps_fg[2](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", start = (pipe1.flowModel.p_a_start - pipe1.flowModel.p_b_start) / 6.0) \"pressure drop between states\"; +// Real pipe1.flowModel.dps_fg[3](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", start = (pipe1.flowModel.p_a_start - pipe1.flowModel.p_b_start) / 6.0) \"pressure drop between states\"; +// Real pipe1.flowModel.dps_fg[4](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", start = (pipe1.flowModel.p_a_start - pipe1.flowModel.p_b_start) / 6.0) \"pressure drop between states\"; +// Real pipe1.flowModel.dps_fg[5](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", start = (pipe1.flowModel.p_a_start - pipe1.flowModel.p_b_start) / 6.0) \"pressure drop between states\"; +// Real pipe1.flowModel.dps_fg[6](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", start = (pipe1.flowModel.p_a_start - pipe1.flowModel.p_b_start) / 6.0) \"pressure drop between states\"; +// final parameter Real pipe1.flowModel.Re_turbulent(quantity = \"ReynoldsNumber\", unit = \"1\") = 4000.0 \"Start of turbulent regime, depending on type of flow device\"; +// final parameter Boolean pipe1.flowModel.show_Res = false \"= true, if Reynolds numbers are included for plotting\"; +// protected final parameter Boolean pipe1.flowModel.n21 = false \"= true, if rho_nominal is used, otherwise computed from medium\"; +// protected parameter Real pipe1.flowModel.n22(quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0) = 1.1968386935810924 \"Nominal density (e.g., rho_liquidWater = 995, rho_air = 1.2)\"; +// protected final parameter Boolean pipe1.flowModel.n23 = false \"= true, if mu_nominal is used, otherwise computed from medium\"; +// protected parameter Real pipe1.flowModel.n24(quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0) = 1.823286547365138e-5 \"Nominal dynamic viscosity (e.g., mu_liquidWater = 1e-3, mu_air = 1.8e-5)\"; +// Real pipe1.flowModel.pathLengths_internal[1](quantity = \"Length\", unit = \"m\") \"pathLengths used internally; to be defined by extending class\"; +// Real pipe1.flowModel.pathLengths_internal[2](quantity = \"Length\", unit = \"m\") \"pathLengths used internally; to be defined by extending class\"; +// Real pipe1.flowModel.pathLengths_internal[3](quantity = \"Length\", unit = \"m\") \"pathLengths used internally; to be defined by extending class\"; +// Real pipe1.flowModel.pathLengths_internal[4](quantity = \"Length\", unit = \"m\") \"pathLengths used internally; to be defined by extending class\"; +// Real pipe1.flowModel.pathLengths_internal[5](quantity = \"Length\", unit = \"m\") \"pathLengths used internally; to be defined by extending class\"; +// Real pipe1.flowModel.pathLengths_internal[6](quantity = \"Length\", unit = \"m\") \"pathLengths used internally; to be defined by extending class\"; +// Real pipe1.flowModel.Res_turbulent_internal[1](quantity = \"ReynoldsNumber\", unit = \"1\") \"Re_turbulent used internally; to be defined by extending class\"; +// Real pipe1.flowModel.Res_turbulent_internal[2](quantity = \"ReynoldsNumber\", unit = \"1\") \"Re_turbulent used internally; to be defined by extending class\"; +// Real pipe1.flowModel.Res_turbulent_internal[3](quantity = \"ReynoldsNumber\", unit = \"1\") \"Re_turbulent used internally; to be defined by extending class\"; +// Real pipe1.flowModel.Res_turbulent_internal[4](quantity = \"ReynoldsNumber\", unit = \"1\") \"Re_turbulent used internally; to be defined by extending class\"; +// Real pipe1.flowModel.Res_turbulent_internal[5](quantity = \"ReynoldsNumber\", unit = \"1\") \"Re_turbulent used internally; to be defined by extending class\"; +// Real pipe1.flowModel.Res_turbulent_internal[6](quantity = \"ReynoldsNumber\", unit = \"1\") \"Re_turbulent used internally; to be defined by extending class\"; +// parameter Real pipe1.flowModel.dp_nominal(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, start = 1.0, fixed = false, nominal = 1e5) \"Nominal pressure loss (only for nominal models)\"; +// parameter Real pipe1.flowModel.m_flow_nominal(quantity = \"MassFlowRate\", unit = \"kg/s\") = 100.0 * pipe1.flowModel.m_flow_small \"Nominal mass flow rate\"; +// parameter Real pipe1.flowModel.m_flow_small(quantity = \"MassFlowRate\", unit = \"kg/s\") = system.m_flow_small \"Within regularization if |m_flows| < m_flow_small (may be wider for large discontinuities in static head)\"; +// protected parameter Real pipe1.flowModel.n25(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, start = 1.0, fixed = false, nominal = 1e5) \"Within regularization if |dp| < dp_small (may be wider for large discontinuities in static head)\"; +// protected final parameter Boolean pipe1.flowModel.n26 = false \"= true if the pressure loss does not depend on fluid states\"; +// protected final parameter Boolean pipe1.flowModel.n27 = false \"= true if the pressure loss is continuous around zero flow\"; +// protected Real pipe1.flowModel.n28[1](quantity = \"Length\", unit = \"m\") \"mean diameters between segments\"; +// protected Real pipe1.flowModel.n28[2](quantity = \"Length\", unit = \"m\") \"mean diameters between segments\"; +// protected Real pipe1.flowModel.n28[3](quantity = \"Length\", unit = \"m\") \"mean diameters between segments\"; +// protected Real pipe1.flowModel.n28[4](quantity = \"Length\", unit = \"m\") \"mean diameters between segments\"; +// protected Real pipe1.flowModel.n28[5](quantity = \"Length\", unit = \"m\") \"mean diameters between segments\"; +// protected Real pipe1.flowModel.n28[6](quantity = \"Length\", unit = \"m\") \"mean diameters between segments\"; +// protected Real pipe1.flowModel.n29(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 1e5) = Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.flowModel.WallFriction.pressureLoss_m_flow(pipe1.flowModel.m_flow_nominal / pipe1.flowModel.nParallel, pipe1.flowModel.n22, pipe1.flowModel.n22, pipe1.flowModel.n24, pipe1.flowModel.n24, pipe1.flowModel.pathLengths_internal[1], pipe1.flowModel.n28[1], (pipe1.flowModel.crossAreas[1] + pipe1.flowModel.crossAreas[2]) / 2.0, (pipe1.flowModel.roughnesses[1] + pipe1.flowModel.roughnesses[2]) / 2.0, pipe1.flowModel.m_flow_small / pipe1.flowModel.nParallel, pipe1.flowModel.Res_turbulent_internal[1]) + Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.flowModel.WallFriction.pressureLoss_m_flow(pipe1.flowModel.m_flow_nominal / pipe1.flowModel.nParallel, pipe1.flowModel.n22, pipe1.flowModel.n22, pipe1.flowModel.n24, pipe1.flowModel.n24, pipe1.flowModel.pathLengths_internal[2], pipe1.flowModel.n28[2], (pipe1.flowModel.crossAreas[2] + pipe1.flowModel.crossAreas[3]) / 2.0, (pipe1.flowModel.roughnesses[2] + pipe1.flowModel.roughnesses[3]) / 2.0, pipe1.flowModel.m_flow_small / pipe1.flowModel.nParallel, pipe1.flowModel.Res_turbulent_internal[2]) + Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.flowModel.WallFriction.pressureLoss_m_flow(pipe1.flowModel.m_flow_nominal / pipe1.flowModel.nParallel, pipe1.flowModel.n22, pipe1.flowModel.n22, pipe1.flowModel.n24, pipe1.flowModel.n24, pipe1.flowModel.pathLengths_internal[3], pipe1.flowModel.n28[3], (pipe1.flowModel.crossAreas[3] + pipe1.flowModel.crossAreas[4]) / 2.0, (pipe1.flowModel.roughnesses[3] + pipe1.flowModel.roughnesses[4]) / 2.0, pipe1.flowModel.m_flow_small / pipe1.flowModel.nParallel, pipe1.flowModel.Res_turbulent_internal[3]) + Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.flowModel.WallFriction.pressureLoss_m_flow(pipe1.flowModel.m_flow_nominal / pipe1.flowModel.nParallel, pipe1.flowModel.n22, pipe1.flowModel.n22, pipe1.flowModel.n24, pipe1.flowModel.n24, pipe1.flowModel.pathLengths_internal[4], pipe1.flowModel.n28[4], (pipe1.flowModel.crossAreas[4] + pipe1.flowModel.crossAreas[5]) / 2.0, (pipe1.flowModel.roughnesses[4] + pipe1.flowModel.roughnesses[5]) / 2.0, pipe1.flowModel.m_flow_small / pipe1.flowModel.nParallel, pipe1.flowModel.Res_turbulent_internal[4]) + Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.flowModel.WallFriction.pressureLoss_m_flow(pipe1.flowModel.m_flow_nominal / pipe1.flowModel.nParallel, pipe1.flowModel.n22, pipe1.flowModel.n22, pipe1.flowModel.n24, pipe1.flowModel.n24, pipe1.flowModel.pathLengths_internal[5], pipe1.flowModel.n28[5], (pipe1.flowModel.crossAreas[5] + pipe1.flowModel.crossAreas[6]) / 2.0, (pipe1.flowModel.roughnesses[5] + pipe1.flowModel.roughnesses[6]) / 2.0, pipe1.flowModel.m_flow_small / pipe1.flowModel.nParallel, pipe1.flowModel.Res_turbulent_internal[5]) + Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.flowModel.WallFriction.pressureLoss_m_flow(pipe1.flowModel.m_flow_nominal / pipe1.flowModel.nParallel, pipe1.flowModel.n22, pipe1.flowModel.n22, pipe1.flowModel.n24, pipe1.flowModel.n24, pipe1.flowModel.pathLengths_internal[6], pipe1.flowModel.n28[6], (pipe1.flowModel.crossAreas[6] + pipe1.flowModel.crossAreas[7]) / 2.0, (pipe1.flowModel.roughnesses[6] + pipe1.flowModel.roughnesses[7]) / 2.0, pipe1.flowModel.m_flow_small / pipe1.flowModel.nParallel, pipe1.flowModel.Res_turbulent_internal[6]) \"pressure loss for nominal conditions\"; +// Real pipe1.m_flows[1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e60, max = 1e5, start = 0.02) \"Mass flow rates of fluid across segment boundaries\"; +// Real pipe1.m_flows[2](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e60, max = 1e5, start = 0.02) \"Mass flow rates of fluid across segment boundaries\"; +// Real pipe1.m_flows[3](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e60, max = 1e5, start = 0.02) \"Mass flow rates of fluid across segment boundaries\"; +// Real pipe1.m_flows[4](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e60, max = 1e5, start = 0.02) \"Mass flow rates of fluid across segment boundaries\"; +// Real pipe1.m_flows[5](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e60, max = 1e5, start = 0.02) \"Mass flow rates of fluid across segment boundaries\"; +// Real pipe1.m_flows[6](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e60, max = 1e5, start = 0.02) \"Mass flow rates of fluid across segment boundaries\"; +// Real pipe1.mXi_flows[1,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) \"Independent mass flow rates across segment boundaries\"; +// Real pipe1.mXi_flows[2,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) \"Independent mass flow rates across segment boundaries\"; +// Real pipe1.mXi_flows[3,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) \"Independent mass flow rates across segment boundaries\"; +// Real pipe1.mXi_flows[4,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) \"Independent mass flow rates across segment boundaries\"; +// Real pipe1.mXi_flows[5,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) \"Independent mass flow rates across segment boundaries\"; +// Real pipe1.mXi_flows[6,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) \"Independent mass flow rates across segment boundaries\"; +// Real pipe1.H_flows[1](quantity = \"EnthalpyFlowRate\", unit = \"W\", min = -1e8, max = 1e8, nominal = 1000.0) \"Enthalpy flow rates of fluid across segment boundaries\"; +// Real pipe1.H_flows[2](quantity = \"EnthalpyFlowRate\", unit = \"W\", min = -1e8, max = 1e8, nominal = 1000.0) \"Enthalpy flow rates of fluid across segment boundaries\"; +// Real pipe1.H_flows[3](quantity = \"EnthalpyFlowRate\", unit = \"W\", min = -1e8, max = 1e8, nominal = 1000.0) \"Enthalpy flow rates of fluid across segment boundaries\"; +// Real pipe1.H_flows[4](quantity = \"EnthalpyFlowRate\", unit = \"W\", min = -1e8, max = 1e8, nominal = 1000.0) \"Enthalpy flow rates of fluid across segment boundaries\"; +// Real pipe1.H_flows[5](quantity = \"EnthalpyFlowRate\", unit = \"W\", min = -1e8, max = 1e8, nominal = 1000.0) \"Enthalpy flow rates of fluid across segment boundaries\"; +// Real pipe1.H_flows[6](quantity = \"EnthalpyFlowRate\", unit = \"W\", min = -1e8, max = 1e8, nominal = 1000.0) \"Enthalpy flow rates of fluid across segment boundaries\"; +// Real pipe1.vs[1](quantity = \"Velocity\", unit = \"m/s\") \"mean velocities in flow segments\"; +// Real pipe1.vs[2](quantity = \"Velocity\", unit = \"m/s\") \"mean velocities in flow segments\"; +// Real pipe1.vs[3](quantity = \"Velocity\", unit = \"m/s\") \"mean velocities in flow segments\"; +// Real pipe1.vs[4](quantity = \"Velocity\", unit = \"m/s\") \"mean velocities in flow segments\"; +// Real pipe1.vs[5](quantity = \"Velocity\", unit = \"m/s\") \"mean velocities in flow segments\"; +// protected Real pipe1.n30[1](quantity = \"Length\", unit = \"m\") \"Lengths along flow path\"; +// protected Real pipe1.n30[2](quantity = \"Length\", unit = \"m\") \"Lengths along flow path\"; +// protected Real pipe1.n30[3](quantity = \"Length\", unit = \"m\") \"Lengths along flow path\"; +// protected Real pipe1.n30[4](quantity = \"Length\", unit = \"m\") \"Lengths along flow path\"; +// protected Real pipe1.n30[5](quantity = \"Length\", unit = \"m\") \"Lengths along flow path\"; +// protected Real pipe1.n30[6](quantity = \"Length\", unit = \"m\") \"Lengths along flow path\"; +// protected Real pipe1.n31[1](quantity = \"Length\", unit = \"m\") \"Differences in heights between flow segments\"; +// protected Real pipe1.n31[2](quantity = \"Length\", unit = \"m\") \"Differences in heights between flow segments\"; +// protected Real pipe1.n31[3](quantity = \"Length\", unit = \"m\") \"Differences in heights between flow segments\"; +// protected Real pipe1.n31[4](quantity = \"Length\", unit = \"m\") \"Differences in heights between flow segments\"; +// protected Real pipe1.n31[5](quantity = \"Length\", unit = \"m\") \"Differences in heights between flow segments\"; +// protected Real pipe1.n31[6](quantity = \"Length\", unit = \"m\") \"Differences in heights between flow segments\"; +// protected Real pipe1.n32[1](quantity = \"Area\", unit = \"m2\") \"Cross flow areas of flow segments\"; +// protected Real pipe1.n32[2](quantity = \"Area\", unit = \"m2\") \"Cross flow areas of flow segments\"; +// protected Real pipe1.n32[3](quantity = \"Area\", unit = \"m2\") \"Cross flow areas of flow segments\"; +// protected Real pipe1.n32[4](quantity = \"Area\", unit = \"m2\") \"Cross flow areas of flow segments\"; +// protected Real pipe1.n32[5](quantity = \"Area\", unit = \"m2\") \"Cross flow areas of flow segments\"; +// protected Real pipe1.n32[6](quantity = \"Area\", unit = \"m2\") \"Cross flow areas of flow segments\"; +// protected Real pipe1.n32[7](quantity = \"Area\", unit = \"m2\") \"Cross flow areas of flow segments\"; +// protected Real pipe1.n33[1](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities in flow segments\"; +// protected Real pipe1.n33[2](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities in flow segments\"; +// protected Real pipe1.n33[3](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities in flow segments\"; +// protected Real pipe1.n33[4](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities in flow segments\"; +// protected Real pipe1.n33[5](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities in flow segments\"; +// protected Real pipe1.n33[6](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities in flow segments\"; +// protected Real pipe1.n33[7](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities in flow segments\"; +// protected Real pipe1.n34[1](quantity = \"Length\", unit = \"m\") \"Hydraulic diameters of flow segments\"; +// protected Real pipe1.n34[2](quantity = \"Length\", unit = \"m\") \"Hydraulic diameters of flow segments\"; +// protected Real pipe1.n34[3](quantity = \"Length\", unit = \"m\") \"Hydraulic diameters of flow segments\"; +// protected Real pipe1.n34[4](quantity = \"Length\", unit = \"m\") \"Hydraulic diameters of flow segments\"; +// protected Real pipe1.n34[5](quantity = \"Length\", unit = \"m\") \"Hydraulic diameters of flow segments\"; +// protected Real pipe1.n34[6](quantity = \"Length\", unit = \"m\") \"Hydraulic diameters of flow segments\"; +// protected Real pipe1.n34[7](quantity = \"Length\", unit = \"m\") \"Hydraulic diameters of flow segments\"; +// protected Real pipe1.n35[1](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average heights of surface asperities\"; +// protected Real pipe1.n35[2](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average heights of surface asperities\"; +// protected Real pipe1.n35[3](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average heights of surface asperities\"; +// protected Real pipe1.n35[4](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average heights of surface asperities\"; +// protected Real pipe1.n35[5](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average heights of surface asperities\"; +// protected Real pipe1.n35[6](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average heights of surface asperities\"; +// protected Real pipe1.n35[7](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average heights of surface asperities\"; +// final parameter Boolean pipe1.use_HeatTransfer = false \"= true to use the HeatTransfer model\"; +// final parameter Integer pipe1.heatTransfer.n = 5 \"Number of heat transfer segments\"; +// final Real pipe1.heatTransfer.states[1].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe1.mediums[1].state.p \"Absolute pressure of medium\"; +// final Real pipe1.heatTransfer.states[1].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe1.mediums[1].state.T \"Temperature of medium\"; +// final Real pipe1.heatTransfer.states[1].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe1.heatTransfer.states[1].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe1.heatTransfer.states[2].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe1.mediums[2].state.p \"Absolute pressure of medium\"; +// final Real pipe1.heatTransfer.states[2].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe1.mediums[2].state.T \"Temperature of medium\"; +// final Real pipe1.heatTransfer.states[2].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe1.heatTransfer.states[2].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe1.heatTransfer.states[3].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe1.mediums[3].state.p \"Absolute pressure of medium\"; +// final Real pipe1.heatTransfer.states[3].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe1.mediums[3].state.T \"Temperature of medium\"; +// final Real pipe1.heatTransfer.states[3].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe1.heatTransfer.states[3].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe1.heatTransfer.states[4].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe1.mediums[4].state.p \"Absolute pressure of medium\"; +// final Real pipe1.heatTransfer.states[4].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe1.mediums[4].state.T \"Temperature of medium\"; +// final Real pipe1.heatTransfer.states[4].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe1.heatTransfer.states[4].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe1.heatTransfer.states[5].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe1.mediums[5].state.p \"Absolute pressure of medium\"; +// final Real pipe1.heatTransfer.states[5].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe1.mediums[5].state.T \"Temperature of medium\"; +// final Real pipe1.heatTransfer.states[5].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe1.heatTransfer.states[5].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe1.heatTransfer.surfaceAreas[1](quantity = \"Area\", unit = \"m2\") \"Heat transfer areas\"; +// final Real pipe1.heatTransfer.surfaceAreas[2](quantity = \"Area\", unit = \"m2\") \"Heat transfer areas\"; +// final Real pipe1.heatTransfer.surfaceAreas[3](quantity = \"Area\", unit = \"m2\") \"Heat transfer areas\"; +// final Real pipe1.heatTransfer.surfaceAreas[4](quantity = \"Area\", unit = \"m2\") \"Heat transfer areas\"; +// final Real pipe1.heatTransfer.surfaceAreas[5](quantity = \"Area\", unit = \"m2\") \"Heat transfer areas\"; +// Real pipe1.heatTransfer.Q_flows[1](quantity = \"Power\", unit = \"W\") \"Heat flow rates\"; +// Real pipe1.heatTransfer.Q_flows[2](quantity = \"Power\", unit = \"W\") \"Heat flow rates\"; +// Real pipe1.heatTransfer.Q_flows[3](quantity = \"Power\", unit = \"W\") \"Heat flow rates\"; +// Real pipe1.heatTransfer.Q_flows[4](quantity = \"Power\", unit = \"W\") \"Heat flow rates\"; +// Real pipe1.heatTransfer.Q_flows[5](quantity = \"Power\", unit = \"W\") \"Heat flow rates\"; +// final parameter Boolean pipe1.heatTransfer.use_k = false \"= true to use k value for thermal isolation\"; +// final parameter Real pipe1.heatTransfer.k(quantity = \"CoefficientOfHeatTransfer\", unit = \"W/(m2.K)\") = 0.0 \"Heat transfer coefficient to ambient\"; +// parameter Real pipe1.heatTransfer.T_ambient(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) = system.T_ambient \"Ambient temperature\"; +// Real pipe1.heatTransfer.heatPorts[1].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) \"Port temperature\"; +// Real pipe1.heatTransfer.heatPorts[1].Q_flow(quantity = \"Power\", unit = \"W\") \"Heat flow rate (positive if flowing from outside into the component)\"; +// Real pipe1.heatTransfer.heatPorts[2].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) \"Port temperature\"; +// Real pipe1.heatTransfer.heatPorts[2].Q_flow(quantity = \"Power\", unit = \"W\") \"Heat flow rate (positive if flowing from outside into the component)\"; +// Real pipe1.heatTransfer.heatPorts[3].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) \"Port temperature\"; +// Real pipe1.heatTransfer.heatPorts[3].Q_flow(quantity = \"Power\", unit = \"W\") \"Heat flow rate (positive if flowing from outside into the component)\"; +// Real pipe1.heatTransfer.heatPorts[4].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) \"Port temperature\"; +// Real pipe1.heatTransfer.heatPorts[4].Q_flow(quantity = \"Power\", unit = \"W\") \"Heat flow rate (positive if flowing from outside into the component)\"; +// Real pipe1.heatTransfer.heatPorts[5].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) \"Port temperature\"; +// Real pipe1.heatTransfer.heatPorts[5].Q_flow(quantity = \"Power\", unit = \"W\") \"Heat flow rate (positive if flowing from outside into the component)\"; +// Real pipe1.heatTransfer.Ts[1](quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) \"Temperatures defined by fluid states\"; +// Real pipe1.heatTransfer.Ts[2](quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) \"Temperatures defined by fluid states\"; +// Real pipe1.heatTransfer.Ts[3](quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) \"Temperatures defined by fluid states\"; +// Real pipe1.heatTransfer.Ts[4](quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) \"Temperatures defined by fluid states\"; +// Real pipe1.heatTransfer.Ts[5](quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) \"Temperatures defined by fluid states\"; +// final Real pipe1.heatTransfer.vs[1](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities of fluid flow in segments\"; +// final Real pipe1.heatTransfer.vs[2](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities of fluid flow in segments\"; +// final Real pipe1.heatTransfer.vs[3](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities of fluid flow in segments\"; +// final Real pipe1.heatTransfer.vs[4](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities of fluid flow in segments\"; +// final Real pipe1.heatTransfer.vs[5](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities of fluid flow in segments\"; +// final parameter Real pipe1.heatTransfer.nParallel = pipe1.nParallel \"number of identical parallel flow devices\"; +// final Real pipe1.heatTransfer.lengths[1](quantity = \"Length\", unit = \"m\") \"Lengths along flow path\"; +// final Real pipe1.heatTransfer.lengths[2](quantity = \"Length\", unit = \"m\") \"Lengths along flow path\"; +// final Real pipe1.heatTransfer.lengths[3](quantity = \"Length\", unit = \"m\") \"Lengths along flow path\"; +// final Real pipe1.heatTransfer.lengths[4](quantity = \"Length\", unit = \"m\") \"Lengths along flow path\"; +// final Real pipe1.heatTransfer.lengths[5](quantity = \"Length\", unit = \"m\") \"Lengths along flow path\"; +// final Real pipe1.heatTransfer.dimensions[1](quantity = \"Length\", unit = \"m\") \"Characteristic dimensions for fluid flow (diameter for pipe flow)\"; +// final Real pipe1.heatTransfer.dimensions[2](quantity = \"Length\", unit = \"m\") \"Characteristic dimensions for fluid flow (diameter for pipe flow)\"; +// final Real pipe1.heatTransfer.dimensions[3](quantity = \"Length\", unit = \"m\") \"Characteristic dimensions for fluid flow (diameter for pipe flow)\"; +// final Real pipe1.heatTransfer.dimensions[4](quantity = \"Length\", unit = \"m\") \"Characteristic dimensions for fluid flow (diameter for pipe flow)\"; +// final Real pipe1.heatTransfer.dimensions[5](quantity = \"Length\", unit = \"m\") \"Characteristic dimensions for fluid flow (diameter for pipe flow)\"; +// final Real pipe1.heatTransfer.roughnesses[1](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average heights of surface asperities\"; +// final Real pipe1.heatTransfer.roughnesses[2](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average heights of surface asperities\"; +// final Real pipe1.heatTransfer.roughnesses[3](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average heights of surface asperities\"; +// final Real pipe1.heatTransfer.roughnesses[4](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average heights of surface asperities\"; +// final Real pipe1.heatTransfer.roughnesses[5](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average heights of surface asperities\"; // final parameter Real pipe1.dxs[1] = 0.2; // final parameter Real pipe1.dxs[2] = 0.2; // final parameter Real pipe1.dxs[3] = 0.2; // final parameter Real pipe1.dxs[4] = 0.2; // final parameter Real pipe1.dxs[5] = 0.2; -// final parameter Boolean pipe2.allowFlowReversal = true; -// Real pipe2.port_a.m_flow(quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -9.999999999999999e+59, max = 100000.0); -// Real pipe2.port_a.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe2.port_a.h_outflow(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -10000000000.0, max = 10000000000.0, nominal = 1000000.0); -// Real pipe2.port_a.Xi_outflow[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// Real pipe2.port_b.m_flow(quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 9.999999999999999e+59); -// Real pipe2.port_b.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe2.port_b.h_outflow(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -10000000000.0, max = 10000000000.0, nominal = 1000000.0); -// Real pipe2.port_b.Xi_outflow[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected final parameter Boolean pipe2.n36 = true; -// protected final parameter Boolean pipe2.n37 = true; -// protected parameter Boolean pipe2.n38 = true; -// parameter Real pipe2.nParallel(min = 1.0) = 1.0; -// final parameter Real pipe2.length(quantity = \"Length\", unit = \"m\") = 50.0; -// parameter Boolean pipe2.isCircular = true; -// parameter Real pipe2.diameter(quantity = \"Length\", unit = \"m\", min = 0.0) = 0.0254; -// parameter Real pipe2.crossArea(quantity = \"Area\", unit = \"m2\") = 3.141592653589793 * pipe2.diameter * pipe2.diameter / 4.0; -// parameter Real pipe2.perimeter(quantity = \"Length\", unit = \"m\", min = 0.0) = 3.141592653589793 * pipe2.diameter; -// parameter Real pipe2.roughness(quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) = 2.5e-05; -// final parameter Real pipe2.V(quantity = \"Volume\", unit = \"m3\") = pipe2.crossArea * 50.0 * pipe2.nParallel; -// final parameter Real pipe2.height_ab(quantity = \"Length\", unit = \"m\") = 25.0; -// final parameter Integer pipe2.n = 5; -// final Real pipe2.fluidVolumes[1](quantity = \"Volume\", unit = \"m3\"); -// final Real pipe2.fluidVolumes[2](quantity = \"Volume\", unit = \"m3\"); -// final Real pipe2.fluidVolumes[3](quantity = \"Volume\", unit = \"m3\"); -// final Real pipe2.fluidVolumes[4](quantity = \"Volume\", unit = \"m3\"); -// final Real pipe2.fluidVolumes[5](quantity = \"Volume\", unit = \"m3\"); -// final parameter enumeration(DynamicFreeInitial, FixedInitial, SteadyStateInitial, SteadyState) pipe2.energyDynamics = Modelica.Fluid.Types.Dynamics.SteadyStateInitial; -// final parameter enumeration(DynamicFreeInitial, FixedInitial, SteadyStateInitial, SteadyState) pipe2.massDynamics = Modelica.Fluid.Types.Dynamics.SteadyStateInitial; -// final parameter enumeration(DynamicFreeInitial, FixedInitial, SteadyStateInitial, SteadyState) pipe2.substanceDynamics = Modelica.Fluid.Types.Dynamics.SteadyStateInitial; -// final parameter enumeration(DynamicFreeInitial, FixedInitial, SteadyStateInitial, SteadyState) pipe2.traceDynamics = Modelica.Fluid.Types.Dynamics.SteadyStateInitial; -// parameter Real pipe2.p_a_start(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = 130000.0; -// parameter Real pipe2.p_b_start(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = 120000.0; -// final parameter Real pipe2.ps_start[1](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe2.p_a_start; -// final parameter Real pipe2.ps_start[2](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe2.p_a_start + (pipe2.p_b_start - pipe2.p_a_start) / 4.0; -// final parameter Real pipe2.ps_start[3](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe2.p_a_start + (pipe2.p_b_start - pipe2.p_a_start) * 2.0 / 4.0; -// final parameter Real pipe2.ps_start[4](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe2.p_a_start + (pipe2.p_b_start - pipe2.p_a_start) * 3.0 / 4.0; -// final parameter Real pipe2.ps_start[5](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe2.p_a_start + (pipe2.p_b_start - pipe2.p_a_start) * 4.0 / 4.0; -// final parameter Boolean pipe2.use_T_start = true; -// parameter Real pipe2.T_start(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = system.T_start; -// parameter Real pipe2.h_start(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -10000000000.0, max = 10000000000.0, nominal = 1000000.0) = Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.Medium.specificEnthalpy_pTX((pipe2.p_a_start + pipe2.p_b_start) / 2.0, pipe2.T_start, pipe2.X_start); -// parameter Real pipe2.X_start[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) = 0.01; -// parameter Real pipe2.X_start[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) = 0.99; -// Real pipe2.Us[1](quantity = \"Energy\", unit = \"J\"); -// Real pipe2.Us[2](quantity = \"Energy\", unit = \"J\"); -// Real pipe2.Us[3](quantity = \"Energy\", unit = \"J\"); -// Real pipe2.Us[4](quantity = \"Energy\", unit = \"J\"); -// Real pipe2.Us[5](quantity = \"Energy\", unit = \"J\"); -// Real pipe2.ms[1](quantity = \"Mass\", unit = \"kg\", min = 0.0); -// Real pipe2.ms[2](quantity = \"Mass\", unit = \"kg\", min = 0.0); -// Real pipe2.ms[3](quantity = \"Mass\", unit = \"kg\", min = 0.0); -// Real pipe2.ms[4](quantity = \"Mass\", unit = \"kg\", min = 0.0); -// Real pipe2.ms[5](quantity = \"Mass\", unit = \"kg\", min = 0.0); -// Real pipe2.mXis[1,1](quantity = \"Mass\", unit = \"kg\", min = 0.0); -// Real pipe2.mXis[2,1](quantity = \"Mass\", unit = \"kg\", min = 0.0); -// Real pipe2.mXis[3,1](quantity = \"Mass\", unit = \"kg\", min = 0.0); -// Real pipe2.mXis[4,1](quantity = \"Mass\", unit = \"kg\", min = 0.0); -// Real pipe2.mXis[5,1](quantity = \"Mass\", unit = \"kg\", min = 0.0); -// Real pipe2.mediums[1].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, start = pipe2.ps_start[1], nominal = 100000.0, stateSelect = StateSelect.prefer); -// Real pipe2.mediums[1].Xi[1](quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0, start = pipe2.X_start[1], stateSelect = StateSelect.prefer); -// Real pipe2.mediums[1].h(quantity = \"SpecificEnergy\", unit = \"J/kg\", start = pipe2.h_start); -// Real pipe2.mediums[1].d(quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe2.mediums[1].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = pipe2.T_start, nominal = 300.0, stateSelect = StateSelect.prefer); -// Real pipe2.mediums[1].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe2.mediums[1].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// Real pipe2.mediums[1].u(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -100000000.0, max = 100000000.0, nominal = 1000000.0); -// Real pipe2.mediums[1].R(quantity = \"SpecificHeatCapacity\", unit = \"J/(kg.K)\", min = 0.0, max = 10000000.0, start = 1000.0, nominal = 1000.0); -// Real pipe2.mediums[1].MM(quantity = \"MolarMass\", unit = \"kg/mol\", min = 0.001, max = 0.25, nominal = 0.032); -// Real pipe2.mediums[1].state.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe2.mediums[1].state.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0); -// Real pipe2.mediums[1].state.X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe2.mediums[1].state.X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final parameter Boolean pipe2.mediums[1].preferredMediumStates = true; -// final parameter Boolean pipe2.mediums[1].standardOrderComponents = true; -// Real pipe2.mediums[1].T_degC(quantity = \"ThermodynamicTemperature\", unit = \"degC\") = Modelica.SIunits.Conversions.to_degC(pipe2.mediums[1].T); -// Real pipe2.mediums[1].p_bar(quantity = \"Pressure\", unit = \"bar\") = Modelica.SIunits.Conversions.to_bar(pipe2.mediums[1].p); -// Real pipe2.mediums[1].x_water(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// Real pipe2.mediums[1].phi; -// protected Real pipe2.mediums[1].n39(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe2.mediums[1].n40(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe2.mediums[1].n41(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe2.mediums[1].n42(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe2.mediums[1].n43(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe2.mediums[1].n44(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe2.mediums[2].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, start = pipe2.ps_start[2], nominal = 100000.0, stateSelect = StateSelect.prefer); -// Real pipe2.mediums[2].Xi[1](quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0, start = pipe2.X_start[1], stateSelect = StateSelect.prefer); -// Real pipe2.mediums[2].h(quantity = \"SpecificEnergy\", unit = \"J/kg\", start = pipe2.h_start); -// Real pipe2.mediums[2].d(quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe2.mediums[2].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = pipe2.T_start, nominal = 300.0, stateSelect = StateSelect.prefer); -// Real pipe2.mediums[2].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe2.mediums[2].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// Real pipe2.mediums[2].u(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -100000000.0, max = 100000000.0, nominal = 1000000.0); -// Real pipe2.mediums[2].R(quantity = \"SpecificHeatCapacity\", unit = \"J/(kg.K)\", min = 0.0, max = 10000000.0, start = 1000.0, nominal = 1000.0); -// Real pipe2.mediums[2].MM(quantity = \"MolarMass\", unit = \"kg/mol\", min = 0.001, max = 0.25, nominal = 0.032); -// Real pipe2.mediums[2].state.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe2.mediums[2].state.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0); -// Real pipe2.mediums[2].state.X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe2.mediums[2].state.X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final parameter Boolean pipe2.mediums[2].preferredMediumStates = true; -// final parameter Boolean pipe2.mediums[2].standardOrderComponents = true; -// Real pipe2.mediums[2].T_degC(quantity = \"ThermodynamicTemperature\", unit = \"degC\") = Modelica.SIunits.Conversions.to_degC(pipe2.mediums[2].T); -// Real pipe2.mediums[2].p_bar(quantity = \"Pressure\", unit = \"bar\") = Modelica.SIunits.Conversions.to_bar(pipe2.mediums[2].p); -// Real pipe2.mediums[2].x_water(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// Real pipe2.mediums[2].phi; -// protected Real pipe2.mediums[2].n39(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe2.mediums[2].n40(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe2.mediums[2].n41(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe2.mediums[2].n42(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe2.mediums[2].n43(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe2.mediums[2].n44(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe2.mediums[3].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, start = pipe2.ps_start[3], nominal = 100000.0, stateSelect = StateSelect.prefer); -// Real pipe2.mediums[3].Xi[1](quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0, start = pipe2.X_start[1], stateSelect = StateSelect.prefer); -// Real pipe2.mediums[3].h(quantity = \"SpecificEnergy\", unit = \"J/kg\", start = pipe2.h_start); -// Real pipe2.mediums[3].d(quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe2.mediums[3].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = pipe2.T_start, nominal = 300.0, stateSelect = StateSelect.prefer); -// Real pipe2.mediums[3].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe2.mediums[3].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// Real pipe2.mediums[3].u(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -100000000.0, max = 100000000.0, nominal = 1000000.0); -// Real pipe2.mediums[3].R(quantity = \"SpecificHeatCapacity\", unit = \"J/(kg.K)\", min = 0.0, max = 10000000.0, start = 1000.0, nominal = 1000.0); -// Real pipe2.mediums[3].MM(quantity = \"MolarMass\", unit = \"kg/mol\", min = 0.001, max = 0.25, nominal = 0.032); -// Real pipe2.mediums[3].state.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe2.mediums[3].state.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0); -// Real pipe2.mediums[3].state.X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe2.mediums[3].state.X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final parameter Boolean pipe2.mediums[3].preferredMediumStates = true; -// final parameter Boolean pipe2.mediums[3].standardOrderComponents = true; -// Real pipe2.mediums[3].T_degC(quantity = \"ThermodynamicTemperature\", unit = \"degC\") = Modelica.SIunits.Conversions.to_degC(pipe2.mediums[3].T); -// Real pipe2.mediums[3].p_bar(quantity = \"Pressure\", unit = \"bar\") = Modelica.SIunits.Conversions.to_bar(pipe2.mediums[3].p); -// Real pipe2.mediums[3].x_water(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// Real pipe2.mediums[3].phi; -// protected Real pipe2.mediums[3].n39(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe2.mediums[3].n40(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe2.mediums[3].n41(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe2.mediums[3].n42(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe2.mediums[3].n43(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe2.mediums[3].n44(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe2.mediums[4].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, start = pipe2.ps_start[4], nominal = 100000.0, stateSelect = StateSelect.prefer); -// Real pipe2.mediums[4].Xi[1](quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0, start = pipe2.X_start[1], stateSelect = StateSelect.prefer); -// Real pipe2.mediums[4].h(quantity = \"SpecificEnergy\", unit = \"J/kg\", start = pipe2.h_start); -// Real pipe2.mediums[4].d(quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe2.mediums[4].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = pipe2.T_start, nominal = 300.0, stateSelect = StateSelect.prefer); -// Real pipe2.mediums[4].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe2.mediums[4].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// Real pipe2.mediums[4].u(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -100000000.0, max = 100000000.0, nominal = 1000000.0); -// Real pipe2.mediums[4].R(quantity = \"SpecificHeatCapacity\", unit = \"J/(kg.K)\", min = 0.0, max = 10000000.0, start = 1000.0, nominal = 1000.0); -// Real pipe2.mediums[4].MM(quantity = \"MolarMass\", unit = \"kg/mol\", min = 0.001, max = 0.25, nominal = 0.032); -// Real pipe2.mediums[4].state.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe2.mediums[4].state.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0); -// Real pipe2.mediums[4].state.X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe2.mediums[4].state.X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final parameter Boolean pipe2.mediums[4].preferredMediumStates = true; -// final parameter Boolean pipe2.mediums[4].standardOrderComponents = true; -// Real pipe2.mediums[4].T_degC(quantity = \"ThermodynamicTemperature\", unit = \"degC\") = Modelica.SIunits.Conversions.to_degC(pipe2.mediums[4].T); -// Real pipe2.mediums[4].p_bar(quantity = \"Pressure\", unit = \"bar\") = Modelica.SIunits.Conversions.to_bar(pipe2.mediums[4].p); -// Real pipe2.mediums[4].x_water(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// Real pipe2.mediums[4].phi; -// protected Real pipe2.mediums[4].n39(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe2.mediums[4].n40(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe2.mediums[4].n41(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe2.mediums[4].n42(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe2.mediums[4].n43(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe2.mediums[4].n44(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe2.mediums[5].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, start = pipe2.ps_start[5], nominal = 100000.0, stateSelect = StateSelect.prefer); -// Real pipe2.mediums[5].Xi[1](quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0, start = pipe2.X_start[1], stateSelect = StateSelect.prefer); -// Real pipe2.mediums[5].h(quantity = \"SpecificEnergy\", unit = \"J/kg\", start = pipe2.h_start); -// Real pipe2.mediums[5].d(quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe2.mediums[5].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = pipe2.T_start, nominal = 300.0, stateSelect = StateSelect.prefer); -// Real pipe2.mediums[5].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe2.mediums[5].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// Real pipe2.mediums[5].u(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -100000000.0, max = 100000000.0, nominal = 1000000.0); -// Real pipe2.mediums[5].R(quantity = \"SpecificHeatCapacity\", unit = \"J/(kg.K)\", min = 0.0, max = 10000000.0, start = 1000.0, nominal = 1000.0); -// Real pipe2.mediums[5].MM(quantity = \"MolarMass\", unit = \"kg/mol\", min = 0.001, max = 0.25, nominal = 0.032); -// Real pipe2.mediums[5].state.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe2.mediums[5].state.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0); -// Real pipe2.mediums[5].state.X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe2.mediums[5].state.X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final parameter Boolean pipe2.mediums[5].preferredMediumStates = true; -// final parameter Boolean pipe2.mediums[5].standardOrderComponents = true; -// Real pipe2.mediums[5].T_degC(quantity = \"ThermodynamicTemperature\", unit = \"degC\") = Modelica.SIunits.Conversions.to_degC(pipe2.mediums[5].T); -// Real pipe2.mediums[5].p_bar(quantity = \"Pressure\", unit = \"bar\") = Modelica.SIunits.Conversions.to_bar(pipe2.mediums[5].p); -// Real pipe2.mediums[5].x_water(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// Real pipe2.mediums[5].phi; -// protected Real pipe2.mediums[5].n39(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe2.mediums[5].n40(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe2.mediums[5].n41(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe2.mediums[5].n42(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe2.mediums[5].n43(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe2.mediums[5].n44(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe2.mb_flows[1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0); -// Real pipe2.mb_flows[2](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0); -// Real pipe2.mb_flows[3](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0); -// Real pipe2.mb_flows[4](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0); -// Real pipe2.mb_flows[5](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0); -// Real pipe2.mbXi_flows[1,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0); -// Real pipe2.mbXi_flows[2,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0); -// Real pipe2.mbXi_flows[3,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0); -// Real pipe2.mbXi_flows[4,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0); -// Real pipe2.mbXi_flows[5,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0); -// Real pipe2.Hb_flows[1](quantity = \"EnthalpyFlowRate\", unit = \"W\"); -// Real pipe2.Hb_flows[2](quantity = \"EnthalpyFlowRate\", unit = \"W\"); -// Real pipe2.Hb_flows[3](quantity = \"EnthalpyFlowRate\", unit = \"W\"); -// Real pipe2.Hb_flows[4](quantity = \"EnthalpyFlowRate\", unit = \"W\"); -// Real pipe2.Hb_flows[5](quantity = \"EnthalpyFlowRate\", unit = \"W\"); -// Real pipe2.Qb_flows[1](quantity = \"Power\", unit = \"W\"); -// Real pipe2.Qb_flows[2](quantity = \"Power\", unit = \"W\"); -// Real pipe2.Qb_flows[3](quantity = \"Power\", unit = \"W\"); -// Real pipe2.Qb_flows[4](quantity = \"Power\", unit = \"W\"); -// Real pipe2.Qb_flows[5](quantity = \"Power\", unit = \"W\"); -// Real pipe2.Wb_flows[1](quantity = \"Power\", unit = \"W\"); -// Real pipe2.Wb_flows[2](quantity = \"Power\", unit = \"W\"); -// Real pipe2.Wb_flows[3](quantity = \"Power\", unit = \"W\"); -// Real pipe2.Wb_flows[4](quantity = \"Power\", unit = \"W\"); -// Real pipe2.Wb_flows[5](quantity = \"Power\", unit = \"W\"); -// protected final parameter Boolean pipe2.n45 = true; -// final parameter Real pipe2.lengths[1](quantity = \"Length\", unit = \"m\") = 10.0; -// final parameter Real pipe2.lengths[2](quantity = \"Length\", unit = \"m\") = 10.0; -// final parameter Real pipe2.lengths[3](quantity = \"Length\", unit = \"m\") = 10.0; -// final parameter Real pipe2.lengths[4](quantity = \"Length\", unit = \"m\") = 10.0; -// final parameter Real pipe2.lengths[5](quantity = \"Length\", unit = \"m\") = 10.0; -// final parameter Real pipe2.crossAreas[1](quantity = \"Area\", unit = \"m2\") = pipe2.crossArea; -// final parameter Real pipe2.crossAreas[2](quantity = \"Area\", unit = \"m2\") = pipe2.crossArea; -// final parameter Real pipe2.crossAreas[3](quantity = \"Area\", unit = \"m2\") = pipe2.crossArea; -// final parameter Real pipe2.crossAreas[4](quantity = \"Area\", unit = \"m2\") = pipe2.crossArea; -// final parameter Real pipe2.crossAreas[5](quantity = \"Area\", unit = \"m2\") = pipe2.crossArea; -// final parameter Real pipe2.dimensions[1](quantity = \"Length\", unit = \"m\") = 4.0 * pipe2.crossArea / pipe2.perimeter; -// final parameter Real pipe2.dimensions[2](quantity = \"Length\", unit = \"m\") = 4.0 * pipe2.crossArea / pipe2.perimeter; -// final parameter Real pipe2.dimensions[3](quantity = \"Length\", unit = \"m\") = 4.0 * pipe2.crossArea / pipe2.perimeter; -// final parameter Real pipe2.dimensions[4](quantity = \"Length\", unit = \"m\") = 4.0 * pipe2.crossArea / pipe2.perimeter; -// final parameter Real pipe2.dimensions[5](quantity = \"Length\", unit = \"m\") = 4.0 * pipe2.crossArea / pipe2.perimeter; -// final parameter Real pipe2.roughnesses[1](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) = pipe2.roughness; -// final parameter Real pipe2.roughnesses[2](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) = pipe2.roughness; -// final parameter Real pipe2.roughnesses[3](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) = pipe2.roughness; -// final parameter Real pipe2.roughnesses[4](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) = pipe2.roughness; -// final parameter Real pipe2.roughnesses[5](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) = pipe2.roughness; -// final parameter Real pipe2.dheights[1](quantity = \"Length\", unit = \"m\") = 5.0; -// final parameter Real pipe2.dheights[2](quantity = \"Length\", unit = \"m\") = 5.0; -// final parameter Real pipe2.dheights[3](quantity = \"Length\", unit = \"m\") = 5.0; -// final parameter Real pipe2.dheights[4](quantity = \"Length\", unit = \"m\") = 5.0; -// final parameter Real pipe2.dheights[5](quantity = \"Length\", unit = \"m\") = 5.0; -// final parameter enumeration(DynamicFreeInitial, FixedInitial, SteadyStateInitial, SteadyState) pipe2.momentumDynamics = Modelica.Fluid.Types.Dynamics.SteadyStateInitial; -// final parameter Real pipe2.m_flow_start(quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0) = 0.01; -// final parameter Integer pipe2.nNodes(min = 1) = 5; -// final parameter enumeration(av_vb, a_v_b, av_b, a_vb) pipe2.modelStructure = Modelica.Fluid.Types.ModelStructure.av_vb; -// final parameter Boolean pipe2.useLumpedPressure = false; -// final parameter Integer pipe2.nFM = 4; +// final parameter Boolean pipe2.allowFlowReversal = true \"= true to allow flow reversal, false restricts to design direction (port_a -> port_b)\"; +// Real pipe2.port_a.m_flow(quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e60, max = 1e5) \"Mass flow rate from the connection point into the component\"; +// Real pipe2.port_a.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Thermodynamic pressure in the connection point\"; +// Real pipe2.port_a.h_outflow(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -1e10, max = 1e10, nominal = 1e6) \"Specific thermodynamic enthalpy close to the connection point if m_flow < 0\"; +// Real pipe2.port_a.Xi_outflow[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Independent mixture mass fractions m_i/m close to the connection point if m_flow < 0\"; +// Real pipe2.port_b.m_flow(quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e60) \"Mass flow rate from the connection point into the component\"; +// Real pipe2.port_b.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Thermodynamic pressure in the connection point\"; +// Real pipe2.port_b.h_outflow(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -1e10, max = 1e10, nominal = 1e6) \"Specific thermodynamic enthalpy close to the connection point if m_flow < 0\"; +// Real pipe2.port_b.Xi_outflow[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Independent mixture mass fractions m_i/m close to the connection point if m_flow < 0\"; +// protected final parameter Boolean pipe2.n36 = true \"= true if port_a exposes the state of a fluid volume\"; +// protected final parameter Boolean pipe2.n37 = true \"= true if port_b.p exposes the state of a fluid volume\"; +// protected parameter Boolean pipe2.n38 = true \"= false to hide the arrow in the model icon\"; +// parameter Real pipe2.nParallel(min = 1.0) = 1.0 \"Number of identical parallel pipes\"; +// final parameter Real pipe2.length(quantity = \"Length\", unit = \"m\") = 50.0 \"Length\"; +// parameter Boolean pipe2.isCircular = true \"= true if cross sectional area is circular\"; +// parameter Real pipe2.diameter(quantity = \"Length\", unit = \"m\", min = 0.0) = 0.0254 \"Diameter of circular pipe\"; +// parameter Real pipe2.crossArea(quantity = \"Area\", unit = \"m2\") = 3.141592653589793 * pipe2.diameter * pipe2.diameter / 4.0 \"Inner cross section area\"; +// parameter Real pipe2.perimeter(quantity = \"Length\", unit = \"m\", min = 0.0) = 3.141592653589793 * pipe2.diameter \"Inner perimeter\"; +// parameter Real pipe2.roughness(quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) = 2.5e-5 \"Average height of surface asperities (default: smooth steel pipe)\"; +// final parameter Real pipe2.V(quantity = \"Volume\", unit = \"m3\") = pipe2.crossArea * 50.0 * pipe2.nParallel \"volume size\"; +// final parameter Real pipe2.height_ab(quantity = \"Length\", unit = \"m\") = 25.0 \"Height(port_b) - Height(port_a)\"; +// final parameter Integer pipe2.n = 5 \"Number of discrete volumes\"; +// final Real pipe2.fluidVolumes[1](quantity = \"Volume\", unit = \"m3\") \"Discretized volume, determine in inheriting class\"; +// final Real pipe2.fluidVolumes[2](quantity = \"Volume\", unit = \"m3\") \"Discretized volume, determine in inheriting class\"; +// final Real pipe2.fluidVolumes[3](quantity = \"Volume\", unit = \"m3\") \"Discretized volume, determine in inheriting class\"; +// final Real pipe2.fluidVolumes[4](quantity = \"Volume\", unit = \"m3\") \"Discretized volume, determine in inheriting class\"; +// final Real pipe2.fluidVolumes[5](quantity = \"Volume\", unit = \"m3\") \"Discretized volume, determine in inheriting class\"; +// final parameter enumeration(DynamicFreeInitial, FixedInitial, SteadyStateInitial, SteadyState) pipe2.energyDynamics = Modelica.Fluid.Types.Dynamics.SteadyStateInitial \"Formulation of energy balances\"; +// final parameter enumeration(DynamicFreeInitial, FixedInitial, SteadyStateInitial, SteadyState) pipe2.massDynamics = Modelica.Fluid.Types.Dynamics.SteadyStateInitial \"Formulation of mass balances\"; +// final parameter enumeration(DynamicFreeInitial, FixedInitial, SteadyStateInitial, SteadyState) pipe2.substanceDynamics = Modelica.Fluid.Types.Dynamics.SteadyStateInitial \"Formulation of substance balances\"; +// final parameter enumeration(DynamicFreeInitial, FixedInitial, SteadyStateInitial, SteadyState) pipe2.traceDynamics = Modelica.Fluid.Types.Dynamics.SteadyStateInitial \"Formulation of trace substance balances\"; +// parameter Real pipe2.p_a_start(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = 1.3e5 \"Start value of pressure at port a\"; +// parameter Real pipe2.p_b_start(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = 1.2e5 \"Start value of pressure at port b\"; +// final parameter Real pipe2.ps_start[1](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe2.p_a_start \"Start value of pressure\"; +// final parameter Real pipe2.ps_start[2](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe2.p_a_start + (pipe2.p_b_start - pipe2.p_a_start) / 4.0 \"Start value of pressure\"; +// final parameter Real pipe2.ps_start[3](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe2.p_a_start + (pipe2.p_b_start - pipe2.p_a_start) * 2.0 / 4.0 \"Start value of pressure\"; +// final parameter Real pipe2.ps_start[4](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe2.p_a_start + (pipe2.p_b_start - pipe2.p_a_start) * 3.0 / 4.0 \"Start value of pressure\"; +// final parameter Real pipe2.ps_start[5](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe2.p_a_start + (pipe2.p_b_start - pipe2.p_a_start) * 4.0 / 4.0 \"Start value of pressure\"; +// final parameter Boolean pipe2.use_T_start = true \"Use T_start if true, otherwise h_start\"; +// parameter Real pipe2.T_start(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = system.T_start \"Start value of temperature\"; +// parameter Real pipe2.h_start(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -1e10, max = 1e10, nominal = 1e6) = Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.Medium.specificEnthalpy_pTX((pipe2.p_a_start + pipe2.p_b_start) / 2.0, pipe2.T_start, pipe2.X_start) \"Start value of specific enthalpy\"; +// parameter Real pipe2.X_start[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) = 0.01 \"Start value of mass fractions m_i/m\"; +// parameter Real pipe2.X_start[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) = 0.99 \"Start value of mass fractions m_i/m\"; +// Real pipe2.Us[1](quantity = \"Energy\", unit = \"J\") \"Internal energy of fluid\"; +// Real pipe2.Us[2](quantity = \"Energy\", unit = \"J\") \"Internal energy of fluid\"; +// Real pipe2.Us[3](quantity = \"Energy\", unit = \"J\") \"Internal energy of fluid\"; +// Real pipe2.Us[4](quantity = \"Energy\", unit = \"J\") \"Internal energy of fluid\"; +// Real pipe2.Us[5](quantity = \"Energy\", unit = \"J\") \"Internal energy of fluid\"; +// Real pipe2.ms[1](quantity = \"Mass\", unit = \"kg\", min = 0.0) \"Fluid mass\"; +// Real pipe2.ms[2](quantity = \"Mass\", unit = \"kg\", min = 0.0) \"Fluid mass\"; +// Real pipe2.ms[3](quantity = \"Mass\", unit = \"kg\", min = 0.0) \"Fluid mass\"; +// Real pipe2.ms[4](quantity = \"Mass\", unit = \"kg\", min = 0.0) \"Fluid mass\"; +// Real pipe2.ms[5](quantity = \"Mass\", unit = \"kg\", min = 0.0) \"Fluid mass\"; +// Real pipe2.mXis[1,1](quantity = \"Mass\", unit = \"kg\", min = 0.0) \"Substance mass\"; +// Real pipe2.mXis[2,1](quantity = \"Mass\", unit = \"kg\", min = 0.0) \"Substance mass\"; +// Real pipe2.mXis[3,1](quantity = \"Mass\", unit = \"kg\", min = 0.0) \"Substance mass\"; +// Real pipe2.mXis[4,1](quantity = \"Mass\", unit = \"kg\", min = 0.0) \"Substance mass\"; +// Real pipe2.mXis[5,1](quantity = \"Mass\", unit = \"kg\", min = 0.0) \"Substance mass\"; +// Real pipe2.mediums[1].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, start = pipe2.ps_start[1], nominal = 1e5, stateSelect = StateSelect.prefer) \"Absolute pressure of medium\"; +// Real pipe2.mediums[1].Xi[1](quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0, start = pipe2.X_start[1], stateSelect = StateSelect.prefer) \"Structurally independent mass fractions\"; +// Real pipe2.mediums[1].h(quantity = \"SpecificEnergy\", unit = \"J/kg\", start = pipe2.h_start) \"Specific enthalpy of medium\"; +// Real pipe2.mediums[1].d(quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0) \"Density of medium\"; +// Real pipe2.mediums[1].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = pipe2.T_start, nominal = 300.0, stateSelect = StateSelect.prefer) \"Temperature of medium\"; +// Real pipe2.mediums[1].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe2.mediums[1].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe2.mediums[1].u(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -1e8, max = 1e8, nominal = 1e6) \"Specific internal energy of medium\"; +// Real pipe2.mediums[1].R(quantity = \"SpecificHeatCapacity\", unit = \"J/(kg.K)\", min = 0.0, max = 1e7, start = 1000.0, nominal = 1000.0) \"Gas constant (of mixture if applicable)\"; +// Real pipe2.mediums[1].MM(quantity = \"MolarMass\", unit = \"kg/mol\", min = 0.001, max = 0.25, nominal = 0.032) \"Molar mass (of mixture or single fluid)\"; +// Real pipe2.mediums[1].state.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Absolute pressure of medium\"; +// Real pipe2.mediums[1].state.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature of medium\"; +// Real pipe2.mediums[1].state.X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe2.mediums[1].state.X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final parameter Boolean pipe2.mediums[1].preferredMediumStates = true \"= true if StateSelect.prefer shall be used for the independent property variables of the medium\"; +// final parameter Boolean pipe2.mediums[1].standardOrderComponents = true \"If true, and reducedX = true, the last element of X will be computed from the other ones\"; +// Real pipe2.mediums[1].T_degC(quantity = \"ThermodynamicTemperature\", unit = \"degC\") = Modelica.SIunits.Conversions.to_degC(pipe2.mediums[1].T) \"Temperature of medium in [degC]\"; +// Real pipe2.mediums[1].p_bar(quantity = \"Pressure\", unit = \"bar\") = Modelica.SIunits.Conversions.to_bar(pipe2.mediums[1].p) \"Absolute pressure of medium in [bar]\"; +// Real pipe2.mediums[1].x_water(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass of total water/mass of dry air\"; +// Real pipe2.mediums[1].phi \"Relative humidity\"; +// protected Real pipe2.mediums[1].n39(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass fraction of liquid or solid water\"; +// protected Real pipe2.mediums[1].n40(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass fraction of steam water\"; +// protected Real pipe2.mediums[1].n41(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass fraction of air\"; +// protected Real pipe2.mediums[1].n42(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Steam water mass fraction of saturation boundary in kg_water/kg_moistair\"; +// protected Real pipe2.mediums[1].n43(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Steam water mass content of saturation boundary in kg_water/kg_dryair\"; +// protected Real pipe2.mediums[1].n44(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"partial saturation pressure of steam\"; +// Real pipe2.mediums[2].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, start = pipe2.ps_start[2], nominal = 1e5, stateSelect = StateSelect.prefer) \"Absolute pressure of medium\"; +// Real pipe2.mediums[2].Xi[1](quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0, start = pipe2.X_start[1], stateSelect = StateSelect.prefer) \"Structurally independent mass fractions\"; +// Real pipe2.mediums[2].h(quantity = \"SpecificEnergy\", unit = \"J/kg\", start = pipe2.h_start) \"Specific enthalpy of medium\"; +// Real pipe2.mediums[2].d(quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0) \"Density of medium\"; +// Real pipe2.mediums[2].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = pipe2.T_start, nominal = 300.0, stateSelect = StateSelect.prefer) \"Temperature of medium\"; +// Real pipe2.mediums[2].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe2.mediums[2].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe2.mediums[2].u(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -1e8, max = 1e8, nominal = 1e6) \"Specific internal energy of medium\"; +// Real pipe2.mediums[2].R(quantity = \"SpecificHeatCapacity\", unit = \"J/(kg.K)\", min = 0.0, max = 1e7, start = 1000.0, nominal = 1000.0) \"Gas constant (of mixture if applicable)\"; +// Real pipe2.mediums[2].MM(quantity = \"MolarMass\", unit = \"kg/mol\", min = 0.001, max = 0.25, nominal = 0.032) \"Molar mass (of mixture or single fluid)\"; +// Real pipe2.mediums[2].state.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Absolute pressure of medium\"; +// Real pipe2.mediums[2].state.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature of medium\"; +// Real pipe2.mediums[2].state.X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe2.mediums[2].state.X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final parameter Boolean pipe2.mediums[2].preferredMediumStates = true \"= true if StateSelect.prefer shall be used for the independent property variables of the medium\"; +// final parameter Boolean pipe2.mediums[2].standardOrderComponents = true \"If true, and reducedX = true, the last element of X will be computed from the other ones\"; +// Real pipe2.mediums[2].T_degC(quantity = \"ThermodynamicTemperature\", unit = \"degC\") = Modelica.SIunits.Conversions.to_degC(pipe2.mediums[2].T) \"Temperature of medium in [degC]\"; +// Real pipe2.mediums[2].p_bar(quantity = \"Pressure\", unit = \"bar\") = Modelica.SIunits.Conversions.to_bar(pipe2.mediums[2].p) \"Absolute pressure of medium in [bar]\"; +// Real pipe2.mediums[2].x_water(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass of total water/mass of dry air\"; +// Real pipe2.mediums[2].phi \"Relative humidity\"; +// protected Real pipe2.mediums[2].n39(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass fraction of liquid or solid water\"; +// protected Real pipe2.mediums[2].n40(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass fraction of steam water\"; +// protected Real pipe2.mediums[2].n41(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass fraction of air\"; +// protected Real pipe2.mediums[2].n42(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Steam water mass fraction of saturation boundary in kg_water/kg_moistair\"; +// protected Real pipe2.mediums[2].n43(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Steam water mass content of saturation boundary in kg_water/kg_dryair\"; +// protected Real pipe2.mediums[2].n44(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"partial saturation pressure of steam\"; +// Real pipe2.mediums[3].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, start = pipe2.ps_start[3], nominal = 1e5, stateSelect = StateSelect.prefer) \"Absolute pressure of medium\"; +// Real pipe2.mediums[3].Xi[1](quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0, start = pipe2.X_start[1], stateSelect = StateSelect.prefer) \"Structurally independent mass fractions\"; +// Real pipe2.mediums[3].h(quantity = \"SpecificEnergy\", unit = \"J/kg\", start = pipe2.h_start) \"Specific enthalpy of medium\"; +// Real pipe2.mediums[3].d(quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0) \"Density of medium\"; +// Real pipe2.mediums[3].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = pipe2.T_start, nominal = 300.0, stateSelect = StateSelect.prefer) \"Temperature of medium\"; +// Real pipe2.mediums[3].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe2.mediums[3].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe2.mediums[3].u(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -1e8, max = 1e8, nominal = 1e6) \"Specific internal energy of medium\"; +// Real pipe2.mediums[3].R(quantity = \"SpecificHeatCapacity\", unit = \"J/(kg.K)\", min = 0.0, max = 1e7, start = 1000.0, nominal = 1000.0) \"Gas constant (of mixture if applicable)\"; +// Real pipe2.mediums[3].MM(quantity = \"MolarMass\", unit = \"kg/mol\", min = 0.001, max = 0.25, nominal = 0.032) \"Molar mass (of mixture or single fluid)\"; +// Real pipe2.mediums[3].state.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Absolute pressure of medium\"; +// Real pipe2.mediums[3].state.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature of medium\"; +// Real pipe2.mediums[3].state.X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe2.mediums[3].state.X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final parameter Boolean pipe2.mediums[3].preferredMediumStates = true \"= true if StateSelect.prefer shall be used for the independent property variables of the medium\"; +// final parameter Boolean pipe2.mediums[3].standardOrderComponents = true \"If true, and reducedX = true, the last element of X will be computed from the other ones\"; +// Real pipe2.mediums[3].T_degC(quantity = \"ThermodynamicTemperature\", unit = \"degC\") = Modelica.SIunits.Conversions.to_degC(pipe2.mediums[3].T) \"Temperature of medium in [degC]\"; +// Real pipe2.mediums[3].p_bar(quantity = \"Pressure\", unit = \"bar\") = Modelica.SIunits.Conversions.to_bar(pipe2.mediums[3].p) \"Absolute pressure of medium in [bar]\"; +// Real pipe2.mediums[3].x_water(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass of total water/mass of dry air\"; +// Real pipe2.mediums[3].phi \"Relative humidity\"; +// protected Real pipe2.mediums[3].n39(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass fraction of liquid or solid water\"; +// protected Real pipe2.mediums[3].n40(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass fraction of steam water\"; +// protected Real pipe2.mediums[3].n41(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass fraction of air\"; +// protected Real pipe2.mediums[3].n42(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Steam water mass fraction of saturation boundary in kg_water/kg_moistair\"; +// protected Real pipe2.mediums[3].n43(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Steam water mass content of saturation boundary in kg_water/kg_dryair\"; +// protected Real pipe2.mediums[3].n44(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"partial saturation pressure of steam\"; +// Real pipe2.mediums[4].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, start = pipe2.ps_start[4], nominal = 1e5, stateSelect = StateSelect.prefer) \"Absolute pressure of medium\"; +// Real pipe2.mediums[4].Xi[1](quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0, start = pipe2.X_start[1], stateSelect = StateSelect.prefer) \"Structurally independent mass fractions\"; +// Real pipe2.mediums[4].h(quantity = \"SpecificEnergy\", unit = \"J/kg\", start = pipe2.h_start) \"Specific enthalpy of medium\"; +// Real pipe2.mediums[4].d(quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0) \"Density of medium\"; +// Real pipe2.mediums[4].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = pipe2.T_start, nominal = 300.0, stateSelect = StateSelect.prefer) \"Temperature of medium\"; +// Real pipe2.mediums[4].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe2.mediums[4].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe2.mediums[4].u(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -1e8, max = 1e8, nominal = 1e6) \"Specific internal energy of medium\"; +// Real pipe2.mediums[4].R(quantity = \"SpecificHeatCapacity\", unit = \"J/(kg.K)\", min = 0.0, max = 1e7, start = 1000.0, nominal = 1000.0) \"Gas constant (of mixture if applicable)\"; +// Real pipe2.mediums[4].MM(quantity = \"MolarMass\", unit = \"kg/mol\", min = 0.001, max = 0.25, nominal = 0.032) \"Molar mass (of mixture or single fluid)\"; +// Real pipe2.mediums[4].state.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Absolute pressure of medium\"; +// Real pipe2.mediums[4].state.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature of medium\"; +// Real pipe2.mediums[4].state.X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe2.mediums[4].state.X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final parameter Boolean pipe2.mediums[4].preferredMediumStates = true \"= true if StateSelect.prefer shall be used for the independent property variables of the medium\"; +// final parameter Boolean pipe2.mediums[4].standardOrderComponents = true \"If true, and reducedX = true, the last element of X will be computed from the other ones\"; +// Real pipe2.mediums[4].T_degC(quantity = \"ThermodynamicTemperature\", unit = \"degC\") = Modelica.SIunits.Conversions.to_degC(pipe2.mediums[4].T) \"Temperature of medium in [degC]\"; +// Real pipe2.mediums[4].p_bar(quantity = \"Pressure\", unit = \"bar\") = Modelica.SIunits.Conversions.to_bar(pipe2.mediums[4].p) \"Absolute pressure of medium in [bar]\"; +// Real pipe2.mediums[4].x_water(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass of total water/mass of dry air\"; +// Real pipe2.mediums[4].phi \"Relative humidity\"; +// protected Real pipe2.mediums[4].n39(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass fraction of liquid or solid water\"; +// protected Real pipe2.mediums[4].n40(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass fraction of steam water\"; +// protected Real pipe2.mediums[4].n41(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass fraction of air\"; +// protected Real pipe2.mediums[4].n42(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Steam water mass fraction of saturation boundary in kg_water/kg_moistair\"; +// protected Real pipe2.mediums[4].n43(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Steam water mass content of saturation boundary in kg_water/kg_dryair\"; +// protected Real pipe2.mediums[4].n44(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"partial saturation pressure of steam\"; +// Real pipe2.mediums[5].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, start = pipe2.ps_start[5], nominal = 1e5, stateSelect = StateSelect.prefer) \"Absolute pressure of medium\"; +// Real pipe2.mediums[5].Xi[1](quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0, start = pipe2.X_start[1], stateSelect = StateSelect.prefer) \"Structurally independent mass fractions\"; +// Real pipe2.mediums[5].h(quantity = \"SpecificEnergy\", unit = \"J/kg\", start = pipe2.h_start) \"Specific enthalpy of medium\"; +// Real pipe2.mediums[5].d(quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0) \"Density of medium\"; +// Real pipe2.mediums[5].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = pipe2.T_start, nominal = 300.0, stateSelect = StateSelect.prefer) \"Temperature of medium\"; +// Real pipe2.mediums[5].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe2.mediums[5].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe2.mediums[5].u(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -1e8, max = 1e8, nominal = 1e6) \"Specific internal energy of medium\"; +// Real pipe2.mediums[5].R(quantity = \"SpecificHeatCapacity\", unit = \"J/(kg.K)\", min = 0.0, max = 1e7, start = 1000.0, nominal = 1000.0) \"Gas constant (of mixture if applicable)\"; +// Real pipe2.mediums[5].MM(quantity = \"MolarMass\", unit = \"kg/mol\", min = 0.001, max = 0.25, nominal = 0.032) \"Molar mass (of mixture or single fluid)\"; +// Real pipe2.mediums[5].state.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Absolute pressure of medium\"; +// Real pipe2.mediums[5].state.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature of medium\"; +// Real pipe2.mediums[5].state.X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe2.mediums[5].state.X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final parameter Boolean pipe2.mediums[5].preferredMediumStates = true \"= true if StateSelect.prefer shall be used for the independent property variables of the medium\"; +// final parameter Boolean pipe2.mediums[5].standardOrderComponents = true \"If true, and reducedX = true, the last element of X will be computed from the other ones\"; +// Real pipe2.mediums[5].T_degC(quantity = \"ThermodynamicTemperature\", unit = \"degC\") = Modelica.SIunits.Conversions.to_degC(pipe2.mediums[5].T) \"Temperature of medium in [degC]\"; +// Real pipe2.mediums[5].p_bar(quantity = \"Pressure\", unit = \"bar\") = Modelica.SIunits.Conversions.to_bar(pipe2.mediums[5].p) \"Absolute pressure of medium in [bar]\"; +// Real pipe2.mediums[5].x_water(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass of total water/mass of dry air\"; +// Real pipe2.mediums[5].phi \"Relative humidity\"; +// protected Real pipe2.mediums[5].n39(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass fraction of liquid or solid water\"; +// protected Real pipe2.mediums[5].n40(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass fraction of steam water\"; +// protected Real pipe2.mediums[5].n41(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass fraction of air\"; +// protected Real pipe2.mediums[5].n42(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Steam water mass fraction of saturation boundary in kg_water/kg_moistair\"; +// protected Real pipe2.mediums[5].n43(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Steam water mass content of saturation boundary in kg_water/kg_dryair\"; +// protected Real pipe2.mediums[5].n44(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"partial saturation pressure of steam\"; +// Real pipe2.mb_flows[1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) \"Mass flow rate, source or sink\"; +// Real pipe2.mb_flows[2](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) \"Mass flow rate, source or sink\"; +// Real pipe2.mb_flows[3](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) \"Mass flow rate, source or sink\"; +// Real pipe2.mb_flows[4](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) \"Mass flow rate, source or sink\"; +// Real pipe2.mb_flows[5](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) \"Mass flow rate, source or sink\"; +// Real pipe2.mbXi_flows[1,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) \"Independent mass flow rates, source or sink\"; +// Real pipe2.mbXi_flows[2,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) \"Independent mass flow rates, source or sink\"; +// Real pipe2.mbXi_flows[3,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) \"Independent mass flow rates, source or sink\"; +// Real pipe2.mbXi_flows[4,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) \"Independent mass flow rates, source or sink\"; +// Real pipe2.mbXi_flows[5,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) \"Independent mass flow rates, source or sink\"; +// Real pipe2.Hb_flows[1](quantity = \"EnthalpyFlowRate\", unit = \"W\") \"Enthalpy flow rate, source or sink\"; +// Real pipe2.Hb_flows[2](quantity = \"EnthalpyFlowRate\", unit = \"W\") \"Enthalpy flow rate, source or sink\"; +// Real pipe2.Hb_flows[3](quantity = \"EnthalpyFlowRate\", unit = \"W\") \"Enthalpy flow rate, source or sink\"; +// Real pipe2.Hb_flows[4](quantity = \"EnthalpyFlowRate\", unit = \"W\") \"Enthalpy flow rate, source or sink\"; +// Real pipe2.Hb_flows[5](quantity = \"EnthalpyFlowRate\", unit = \"W\") \"Enthalpy flow rate, source or sink\"; +// Real pipe2.Qb_flows[1](quantity = \"Power\", unit = \"W\") \"Heat flow rate, source or sink\"; +// Real pipe2.Qb_flows[2](quantity = \"Power\", unit = \"W\") \"Heat flow rate, source or sink\"; +// Real pipe2.Qb_flows[3](quantity = \"Power\", unit = \"W\") \"Heat flow rate, source or sink\"; +// Real pipe2.Qb_flows[4](quantity = \"Power\", unit = \"W\") \"Heat flow rate, source or sink\"; +// Real pipe2.Qb_flows[5](quantity = \"Power\", unit = \"W\") \"Heat flow rate, source or sink\"; +// Real pipe2.Wb_flows[1](quantity = \"Power\", unit = \"W\") \"Mechanical power, p*der(V) etc.\"; +// Real pipe2.Wb_flows[2](quantity = \"Power\", unit = \"W\") \"Mechanical power, p*der(V) etc.\"; +// Real pipe2.Wb_flows[3](quantity = \"Power\", unit = \"W\") \"Mechanical power, p*der(V) etc.\"; +// Real pipe2.Wb_flows[4](quantity = \"Power\", unit = \"W\") \"Mechanical power, p*der(V) etc.\"; +// Real pipe2.Wb_flows[5](quantity = \"Power\", unit = \"W\") \"Mechanical power, p*der(V) etc.\"; +// protected final parameter Boolean pipe2.n45 = true \"= true to set up initial equations for pressure\"; +// final parameter Real pipe2.lengths[1](quantity = \"Length\", unit = \"m\") = 10.0 \"lengths of flow segments\"; +// final parameter Real pipe2.lengths[2](quantity = \"Length\", unit = \"m\") = 10.0 \"lengths of flow segments\"; +// final parameter Real pipe2.lengths[3](quantity = \"Length\", unit = \"m\") = 10.0 \"lengths of flow segments\"; +// final parameter Real pipe2.lengths[4](quantity = \"Length\", unit = \"m\") = 10.0 \"lengths of flow segments\"; +// final parameter Real pipe2.lengths[5](quantity = \"Length\", unit = \"m\") = 10.0 \"lengths of flow segments\"; +// final parameter Real pipe2.crossAreas[1](quantity = \"Area\", unit = \"m2\") = pipe2.crossArea \"cross flow areas of flow segments\"; +// final parameter Real pipe2.crossAreas[2](quantity = \"Area\", unit = \"m2\") = pipe2.crossArea \"cross flow areas of flow segments\"; +// final parameter Real pipe2.crossAreas[3](quantity = \"Area\", unit = \"m2\") = pipe2.crossArea \"cross flow areas of flow segments\"; +// final parameter Real pipe2.crossAreas[4](quantity = \"Area\", unit = \"m2\") = pipe2.crossArea \"cross flow areas of flow segments\"; +// final parameter Real pipe2.crossAreas[5](quantity = \"Area\", unit = \"m2\") = pipe2.crossArea \"cross flow areas of flow segments\"; +// final parameter Real pipe2.dimensions[1](quantity = \"Length\", unit = \"m\") = 4.0 * pipe2.crossArea / pipe2.perimeter \"hydraulic diameters of flow segments\"; +// final parameter Real pipe2.dimensions[2](quantity = \"Length\", unit = \"m\") = 4.0 * pipe2.crossArea / pipe2.perimeter \"hydraulic diameters of flow segments\"; +// final parameter Real pipe2.dimensions[3](quantity = \"Length\", unit = \"m\") = 4.0 * pipe2.crossArea / pipe2.perimeter \"hydraulic diameters of flow segments\"; +// final parameter Real pipe2.dimensions[4](quantity = \"Length\", unit = \"m\") = 4.0 * pipe2.crossArea / pipe2.perimeter \"hydraulic diameters of flow segments\"; +// final parameter Real pipe2.dimensions[5](quantity = \"Length\", unit = \"m\") = 4.0 * pipe2.crossArea / pipe2.perimeter \"hydraulic diameters of flow segments\"; +// final parameter Real pipe2.roughnesses[1](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) = pipe2.roughness \"Average heights of surface asperities\"; +// final parameter Real pipe2.roughnesses[2](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) = pipe2.roughness \"Average heights of surface asperities\"; +// final parameter Real pipe2.roughnesses[3](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) = pipe2.roughness \"Average heights of surface asperities\"; +// final parameter Real pipe2.roughnesses[4](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) = pipe2.roughness \"Average heights of surface asperities\"; +// final parameter Real pipe2.roughnesses[5](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) = pipe2.roughness \"Average heights of surface asperities\"; +// final parameter Real pipe2.dheights[1](quantity = \"Length\", unit = \"m\") = 5.0 \"Differences in heights of flow segments\"; +// final parameter Real pipe2.dheights[2](quantity = \"Length\", unit = \"m\") = 5.0 \"Differences in heights of flow segments\"; +// final parameter Real pipe2.dheights[3](quantity = \"Length\", unit = \"m\") = 5.0 \"Differences in heights of flow segments\"; +// final parameter Real pipe2.dheights[4](quantity = \"Length\", unit = \"m\") = 5.0 \"Differences in heights of flow segments\"; +// final parameter Real pipe2.dheights[5](quantity = \"Length\", unit = \"m\") = 5.0 \"Differences in heights of flow segments\"; +// final parameter enumeration(DynamicFreeInitial, FixedInitial, SteadyStateInitial, SteadyState) pipe2.momentumDynamics = Modelica.Fluid.Types.Dynamics.SteadyStateInitial \"Formulation of momentum balances\"; +// final parameter Real pipe2.m_flow_start(quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) = 0.01 \"Start value for mass flow rate\"; +// final parameter Integer pipe2.nNodes(min = 1) = 5 \"Number of discrete flow volumes\"; +// final parameter enumeration(av_vb, a_v_b, av_b, a_vb) pipe2.modelStructure = Modelica.Fluid.Types.ModelStructure.av_vb \"Determines whether flow or volume models are present at the ports\"; +// final parameter Boolean pipe2.useLumpedPressure = false \"=true to lump pressure states together\"; +// final parameter Integer pipe2.nFM = 4 \"number of flow models in flowModel\"; // final parameter Integer pipe2.nFMDistributed = 4; // final parameter Integer pipe2.nFMLumped = 1; -// final parameter Integer pipe2.iLumped = 3; -// final parameter Boolean pipe2.useInnerPortProperties = false; -// Real pipe2.state_a.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe2.state_a.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0); -// Real pipe2.state_a.X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe2.state_a.X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// Real pipe2.state_b.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe2.state_b.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0); -// Real pipe2.state_b.X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe2.state_b.X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// Real pipe2.statesFM[1].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe2.statesFM[1].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0); -// Real pipe2.statesFM[1].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe2.statesFM[1].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// Real pipe2.statesFM[2].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe2.statesFM[2].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0); -// Real pipe2.statesFM[2].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe2.statesFM[2].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// Real pipe2.statesFM[3].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe2.statesFM[3].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0); -// Real pipe2.statesFM[3].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe2.statesFM[3].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// Real pipe2.statesFM[4].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe2.statesFM[4].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0); -// Real pipe2.statesFM[4].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe2.statesFM[4].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// Real pipe2.statesFM[5].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe2.statesFM[5].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0); -// Real pipe2.statesFM[5].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe2.statesFM[5].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final parameter Boolean pipe2.flowModel.from_dp = true; -// final parameter Integer pipe2.flowModel.n = 5; -// final Real pipe2.flowModel.states[1].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe2.statesFM[1].p; -// final Real pipe2.flowModel.states[1].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe2.statesFM[1].T; -// final Real pipe2.flowModel.states[1].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// final Real pipe2.flowModel.states[1].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final Real pipe2.flowModel.states[2].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe2.statesFM[2].p; -// final Real pipe2.flowModel.states[2].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe2.statesFM[2].T; -// final Real pipe2.flowModel.states[2].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// final Real pipe2.flowModel.states[2].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final Real pipe2.flowModel.states[3].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe2.statesFM[3].p; -// final Real pipe2.flowModel.states[3].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe2.statesFM[3].T; -// final Real pipe2.flowModel.states[3].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// final Real pipe2.flowModel.states[3].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final Real pipe2.flowModel.states[4].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe2.statesFM[4].p; -// final Real pipe2.flowModel.states[4].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe2.statesFM[4].T; -// final Real pipe2.flowModel.states[4].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// final Real pipe2.flowModel.states[4].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final Real pipe2.flowModel.states[5].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe2.statesFM[5].p; -// final Real pipe2.flowModel.states[5].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe2.statesFM[5].T; -// final Real pipe2.flowModel.states[5].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// final Real pipe2.flowModel.states[5].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final Real pipe2.flowModel.vs[1](quantity = \"Velocity\", unit = \"m/s\"); -// final Real pipe2.flowModel.vs[2](quantity = \"Velocity\", unit = \"m/s\"); -// final Real pipe2.flowModel.vs[3](quantity = \"Velocity\", unit = \"m/s\"); -// final Real pipe2.flowModel.vs[4](quantity = \"Velocity\", unit = \"m/s\"); -// final Real pipe2.flowModel.vs[5](quantity = \"Velocity\", unit = \"m/s\"); -// final parameter Real pipe2.flowModel.nParallel = pipe2.nParallel; -// final Real pipe2.flowModel.crossAreas[1](quantity = \"Area\", unit = \"m2\"); -// final Real pipe2.flowModel.crossAreas[2](quantity = \"Area\", unit = \"m2\"); -// final Real pipe2.flowModel.crossAreas[3](quantity = \"Area\", unit = \"m2\"); -// final Real pipe2.flowModel.crossAreas[4](quantity = \"Area\", unit = \"m2\"); -// final Real pipe2.flowModel.crossAreas[5](quantity = \"Area\", unit = \"m2\"); -// final Real pipe2.flowModel.dimensions[1](quantity = \"Length\", unit = \"m\"); -// final Real pipe2.flowModel.dimensions[2](quantity = \"Length\", unit = \"m\"); -// final Real pipe2.flowModel.dimensions[3](quantity = \"Length\", unit = \"m\"); -// final Real pipe2.flowModel.dimensions[4](quantity = \"Length\", unit = \"m\"); -// final Real pipe2.flowModel.dimensions[5](quantity = \"Length\", unit = \"m\"); -// final Real pipe2.flowModel.roughnesses[1](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); -// final Real pipe2.flowModel.roughnesses[2](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); -// final Real pipe2.flowModel.roughnesses[3](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); -// final Real pipe2.flowModel.roughnesses[4](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); -// final Real pipe2.flowModel.roughnesses[5](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); -// final Real pipe2.flowModel.dheights[1](quantity = \"Length\", unit = \"m\"); -// final Real pipe2.flowModel.dheights[2](quantity = \"Length\", unit = \"m\"); -// final Real pipe2.flowModel.dheights[3](quantity = \"Length\", unit = \"m\"); -// final Real pipe2.flowModel.dheights[4](quantity = \"Length\", unit = \"m\"); -// final parameter Real pipe2.flowModel.g(quantity = \"Acceleration\", unit = \"m/s2\") = system.g; -// final parameter Boolean pipe2.flowModel.allowFlowReversal = true; -// final parameter enumeration(DynamicFreeInitial, FixedInitial, SteadyStateInitial, SteadyState) pipe2.flowModel.momentumDynamics = Modelica.Fluid.Types.Dynamics.SteadyStateInitial; -// final parameter Real pipe2.flowModel.m_flow_start(quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0) = 0.01; -// final parameter Real pipe2.flowModel.p_a_start(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe2.p_a_start; -// final parameter Real pipe2.flowModel.p_b_start(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe2.p_b_start; -// final parameter Integer pipe2.flowModel.m = 4; -// final Real pipe2.flowModel.pathLengths[1](quantity = \"Length\", unit = \"m\"); -// final Real pipe2.flowModel.pathLengths[2](quantity = \"Length\", unit = \"m\"); -// final Real pipe2.flowModel.pathLengths[3](quantity = \"Length\", unit = \"m\"); -// final Real pipe2.flowModel.pathLengths[4](quantity = \"Length\", unit = \"m\"); -// Real pipe2.flowModel.m_flows[1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -9.999999999999999e+59, max = 100000.0, start = 0.01, stateSelect = StateSelect.prefer); -// Real pipe2.flowModel.m_flows[2](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -9.999999999999999e+59, max = 100000.0, start = 0.01, stateSelect = StateSelect.prefer); -// Real pipe2.flowModel.m_flows[3](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -9.999999999999999e+59, max = 100000.0, start = 0.01, stateSelect = StateSelect.prefer); -// Real pipe2.flowModel.m_flows[4](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -9.999999999999999e+59, max = 100000.0, start = 0.01, stateSelect = StateSelect.prefer); -// Real pipe2.flowModel.Is[1](quantity = \"Momentum\", unit = \"kg.m/s\"); -// Real pipe2.flowModel.Is[2](quantity = \"Momentum\", unit = \"kg.m/s\"); -// Real pipe2.flowModel.Is[3](quantity = \"Momentum\", unit = \"kg.m/s\"); -// Real pipe2.flowModel.Is[4](quantity = \"Momentum\", unit = \"kg.m/s\"); -// Real pipe2.flowModel.Ib_flows[1](quantity = \"Force\", unit = \"N\"); -// Real pipe2.flowModel.Ib_flows[2](quantity = \"Force\", unit = \"N\"); -// Real pipe2.flowModel.Ib_flows[3](quantity = \"Force\", unit = \"N\"); -// Real pipe2.flowModel.Ib_flows[4](quantity = \"Force\", unit = \"N\"); -// Real pipe2.flowModel.Fs_p[1](quantity = \"Force\", unit = \"N\"); -// Real pipe2.flowModel.Fs_p[2](quantity = \"Force\", unit = \"N\"); -// Real pipe2.flowModel.Fs_p[3](quantity = \"Force\", unit = \"N\"); -// Real pipe2.flowModel.Fs_p[4](quantity = \"Force\", unit = \"N\"); -// Real pipe2.flowModel.Fs_fg[1](quantity = \"Force\", unit = \"N\"); -// Real pipe2.flowModel.Fs_fg[2](quantity = \"Force\", unit = \"N\"); -// Real pipe2.flowModel.Fs_fg[3](quantity = \"Force\", unit = \"N\"); -// Real pipe2.flowModel.Fs_fg[4](quantity = \"Force\", unit = \"N\"); -// final parameter Boolean pipe2.flowModel.useUpstreamScheme = true; -// final parameter Boolean pipe2.flowModel.use_Ib_flows = true; -// Real pipe2.flowModel.rhos[1](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe2.flowModel.rhos[2](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe2.flowModel.rhos[3](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe2.flowModel.rhos[4](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe2.flowModel.rhos[5](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe2.flowModel.rhos_act[1](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe2.flowModel.rhos_act[2](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe2.flowModel.rhos_act[3](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe2.flowModel.rhos_act[4](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe2.flowModel.mus[1](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 100000000.0, start = 0.001, nominal = 0.001); -// Real pipe2.flowModel.mus[2](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 100000000.0, start = 0.001, nominal = 0.001); -// Real pipe2.flowModel.mus[3](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 100000000.0, start = 0.001, nominal = 0.001); -// Real pipe2.flowModel.mus[4](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 100000000.0, start = 0.001, nominal = 0.001); -// Real pipe2.flowModel.mus[5](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 100000000.0, start = 0.001, nominal = 0.001); -// Real pipe2.flowModel.mus_act[1](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 100000000.0, start = 0.001, nominal = 0.001); -// Real pipe2.flowModel.mus_act[2](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 100000000.0, start = 0.001, nominal = 0.001); -// Real pipe2.flowModel.mus_act[3](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 100000000.0, start = 0.001, nominal = 0.001); -// Real pipe2.flowModel.mus_act[4](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 100000000.0, start = 0.001, nominal = 0.001); -// Real pipe2.flowModel.dps_fg[1](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", start = (pipe2.flowModel.p_a_start - pipe2.flowModel.p_b_start) / 4.0); -// Real pipe2.flowModel.dps_fg[2](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", start = (pipe2.flowModel.p_a_start - pipe2.flowModel.p_b_start) / 4.0); -// Real pipe2.flowModel.dps_fg[3](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", start = (pipe2.flowModel.p_a_start - pipe2.flowModel.p_b_start) / 4.0); -// Real pipe2.flowModel.dps_fg[4](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", start = (pipe2.flowModel.p_a_start - pipe2.flowModel.p_b_start) / 4.0); -// final parameter Real pipe2.flowModel.Re_turbulent(quantity = \"ReynoldsNumber\", unit = \"1\") = 4000.0; -// final parameter Boolean pipe2.flowModel.show_Res = false; -// protected final parameter Boolean pipe2.flowModel.n46 = false; -// protected parameter Real pipe2.flowModel.n47(quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0) = 1.196838693581092; -// protected final parameter Boolean pipe2.flowModel.n48 = false; -// protected parameter Real pipe2.flowModel.n49(quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0) = 1.823286547365138e-05; -// Real pipe2.flowModel.pathLengths_internal[1](quantity = \"Length\", unit = \"m\"); -// Real pipe2.flowModel.pathLengths_internal[2](quantity = \"Length\", unit = \"m\"); -// Real pipe2.flowModel.pathLengths_internal[3](quantity = \"Length\", unit = \"m\"); -// Real pipe2.flowModel.pathLengths_internal[4](quantity = \"Length\", unit = \"m\"); -// Real pipe2.flowModel.Res_turbulent_internal[1](quantity = \"ReynoldsNumber\", unit = \"1\"); -// Real pipe2.flowModel.Res_turbulent_internal[2](quantity = \"ReynoldsNumber\", unit = \"1\"); -// Real pipe2.flowModel.Res_turbulent_internal[3](quantity = \"ReynoldsNumber\", unit = \"1\"); -// Real pipe2.flowModel.Res_turbulent_internal[4](quantity = \"ReynoldsNumber\", unit = \"1\"); -// parameter Real pipe2.flowModel.dp_nominal(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, start = 1.0, fixed = false, nominal = 100000.0); -// parameter Real pipe2.flowModel.m_flow_nominal(quantity = \"MassFlowRate\", unit = \"kg/s\") = 100.0 * pipe2.flowModel.m_flow_small; -// parameter Real pipe2.flowModel.m_flow_small(quantity = \"MassFlowRate\", unit = \"kg/s\") = system.m_flow_small; -// protected parameter Real pipe2.flowModel.n50(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, start = 1.0, fixed = false, nominal = 100000.0); -// protected final parameter Boolean pipe2.flowModel.n51 = false; -// protected final parameter Boolean pipe2.flowModel.n52 = false; -// protected Real pipe2.flowModel.n53[1](quantity = \"Length\", unit = \"m\"); -// protected Real pipe2.flowModel.n53[2](quantity = \"Length\", unit = \"m\"); -// protected Real pipe2.flowModel.n53[3](quantity = \"Length\", unit = \"m\"); -// protected Real pipe2.flowModel.n53[4](quantity = \"Length\", unit = \"m\"); -// protected Real pipe2.flowModel.n54(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 100000.0) = Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.flowModel.WallFriction.pressureLoss_m_flow(pipe2.flowModel.m_flow_nominal / pipe2.flowModel.nParallel, pipe2.flowModel.n47, pipe2.flowModel.n47, pipe2.flowModel.n49, pipe2.flowModel.n49, pipe2.flowModel.pathLengths_internal[1], pipe2.flowModel.n53[1], (pipe2.flowModel.crossAreas[1] + pipe2.flowModel.crossAreas[2]) / 2.0, (pipe2.flowModel.roughnesses[1] + pipe2.flowModel.roughnesses[2]) / 2.0, pipe2.flowModel.m_flow_small / pipe2.flowModel.nParallel, pipe2.flowModel.Res_turbulent_internal[1]) + Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.flowModel.WallFriction.pressureLoss_m_flow(pipe2.flowModel.m_flow_nominal / pipe2.flowModel.nParallel, pipe2.flowModel.n47, pipe2.flowModel.n47, pipe2.flowModel.n49, pipe2.flowModel.n49, pipe2.flowModel.pathLengths_internal[2], pipe2.flowModel.n53[2], (pipe2.flowModel.crossAreas[2] + pipe2.flowModel.crossAreas[3]) / 2.0, (pipe2.flowModel.roughnesses[2] + pipe2.flowModel.roughnesses[3]) / 2.0, pipe2.flowModel.m_flow_small / pipe2.flowModel.nParallel, pipe2.flowModel.Res_turbulent_internal[2]) + Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.flowModel.WallFriction.pressureLoss_m_flow(pipe2.flowModel.m_flow_nominal / pipe2.flowModel.nParallel, pipe2.flowModel.n47, pipe2.flowModel.n47, pipe2.flowModel.n49, pipe2.flowModel.n49, pipe2.flowModel.pathLengths_internal[3], pipe2.flowModel.n53[3], (pipe2.flowModel.crossAreas[3] + pipe2.flowModel.crossAreas[4]) / 2.0, (pipe2.flowModel.roughnesses[3] + pipe2.flowModel.roughnesses[4]) / 2.0, pipe2.flowModel.m_flow_small / pipe2.flowModel.nParallel, pipe2.flowModel.Res_turbulent_internal[3]) + Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.flowModel.WallFriction.pressureLoss_m_flow(pipe2.flowModel.m_flow_nominal / pipe2.flowModel.nParallel, pipe2.flowModel.n47, pipe2.flowModel.n47, pipe2.flowModel.n49, pipe2.flowModel.n49, pipe2.flowModel.pathLengths_internal[4], pipe2.flowModel.n53[4], (pipe2.flowModel.crossAreas[4] + pipe2.flowModel.crossAreas[5]) / 2.0, (pipe2.flowModel.roughnesses[4] + pipe2.flowModel.roughnesses[5]) / 2.0, pipe2.flowModel.m_flow_small / pipe2.flowModel.nParallel, pipe2.flowModel.Res_turbulent_internal[4]); -// Real pipe2.m_flows[1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -9.999999999999999e+59, max = 100000.0, start = 0.01); -// Real pipe2.m_flows[2](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -9.999999999999999e+59, max = 100000.0, start = 0.01); -// Real pipe2.m_flows[3](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -9.999999999999999e+59, max = 100000.0, start = 0.01); -// Real pipe2.m_flows[4](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -9.999999999999999e+59, max = 100000.0, start = 0.01); -// Real pipe2.m_flows[5](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -9.999999999999999e+59, max = 100000.0, start = 0.01); -// Real pipe2.m_flows[6](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -9.999999999999999e+59, max = 100000.0, start = 0.01); -// Real pipe2.mXi_flows[1,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0); -// Real pipe2.mXi_flows[2,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0); -// Real pipe2.mXi_flows[3,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0); -// Real pipe2.mXi_flows[4,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0); -// Real pipe2.mXi_flows[5,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0); -// Real pipe2.mXi_flows[6,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0); -// Real pipe2.H_flows[1](quantity = \"EnthalpyFlowRate\", unit = \"W\", min = -100000000.0, max = 100000000.0, nominal = 1000.0); -// Real pipe2.H_flows[2](quantity = \"EnthalpyFlowRate\", unit = \"W\", min = -100000000.0, max = 100000000.0, nominal = 1000.0); -// Real pipe2.H_flows[3](quantity = \"EnthalpyFlowRate\", unit = \"W\", min = -100000000.0, max = 100000000.0, nominal = 1000.0); -// Real pipe2.H_flows[4](quantity = \"EnthalpyFlowRate\", unit = \"W\", min = -100000000.0, max = 100000000.0, nominal = 1000.0); -// Real pipe2.H_flows[5](quantity = \"EnthalpyFlowRate\", unit = \"W\", min = -100000000.0, max = 100000000.0, nominal = 1000.0); -// Real pipe2.H_flows[6](quantity = \"EnthalpyFlowRate\", unit = \"W\", min = -100000000.0, max = 100000000.0, nominal = 1000.0); -// Real pipe2.vs[1](quantity = \"Velocity\", unit = \"m/s\"); -// Real pipe2.vs[2](quantity = \"Velocity\", unit = \"m/s\"); -// Real pipe2.vs[3](quantity = \"Velocity\", unit = \"m/s\"); -// Real pipe2.vs[4](quantity = \"Velocity\", unit = \"m/s\"); -// Real pipe2.vs[5](quantity = \"Velocity\", unit = \"m/s\"); -// protected Real pipe2.n55[1](quantity = \"Length\", unit = \"m\"); -// protected Real pipe2.n55[2](quantity = \"Length\", unit = \"m\"); -// protected Real pipe2.n55[3](quantity = \"Length\", unit = \"m\"); -// protected Real pipe2.n55[4](quantity = \"Length\", unit = \"m\"); -// protected Real pipe2.n56[1](quantity = \"Length\", unit = \"m\"); -// protected Real pipe2.n56[2](quantity = \"Length\", unit = \"m\"); -// protected Real pipe2.n56[3](quantity = \"Length\", unit = \"m\"); -// protected Real pipe2.n56[4](quantity = \"Length\", unit = \"m\"); -// protected Real pipe2.n57[1](quantity = \"Area\", unit = \"m2\"); -// protected Real pipe2.n57[2](quantity = \"Area\", unit = \"m2\"); -// protected Real pipe2.n57[3](quantity = \"Area\", unit = \"m2\"); -// protected Real pipe2.n57[4](quantity = \"Area\", unit = \"m2\"); -// protected Real pipe2.n57[5](quantity = \"Area\", unit = \"m2\"); -// protected Real pipe2.n58[1](quantity = \"Velocity\", unit = \"m/s\"); -// protected Real pipe2.n58[2](quantity = \"Velocity\", unit = \"m/s\"); -// protected Real pipe2.n58[3](quantity = \"Velocity\", unit = \"m/s\"); -// protected Real pipe2.n58[4](quantity = \"Velocity\", unit = \"m/s\"); -// protected Real pipe2.n58[5](quantity = \"Velocity\", unit = \"m/s\"); -// protected Real pipe2.n59[1](quantity = \"Length\", unit = \"m\"); -// protected Real pipe2.n59[2](quantity = \"Length\", unit = \"m\"); -// protected Real pipe2.n59[3](quantity = \"Length\", unit = \"m\"); -// protected Real pipe2.n59[4](quantity = \"Length\", unit = \"m\"); -// protected Real pipe2.n59[5](quantity = \"Length\", unit = \"m\"); -// protected Real pipe2.n60[1](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); -// protected Real pipe2.n60[2](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); -// protected Real pipe2.n60[3](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); -// protected Real pipe2.n60[4](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); -// protected Real pipe2.n60[5](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); -// final parameter Boolean pipe2.use_HeatTransfer = true; -// Real pipe2.heatPorts[1].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0); -// Real pipe2.heatPorts[1].Q_flow(quantity = \"Power\", unit = \"W\"); -// Real pipe2.heatPorts[2].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0); -// Real pipe2.heatPorts[2].Q_flow(quantity = \"Power\", unit = \"W\"); -// Real pipe2.heatPorts[3].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0); -// Real pipe2.heatPorts[3].Q_flow(quantity = \"Power\", unit = \"W\"); -// Real pipe2.heatPorts[4].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0); -// Real pipe2.heatPorts[4].Q_flow(quantity = \"Power\", unit = \"W\"); -// Real pipe2.heatPorts[5].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0); -// Real pipe2.heatPorts[5].Q_flow(quantity = \"Power\", unit = \"W\"); -// final parameter Integer pipe2.heatTransfer.n = 5; -// final Real pipe2.heatTransfer.states[1].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe2.mediums[1].state.p; -// final Real pipe2.heatTransfer.states[1].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe2.mediums[1].state.T; -// final Real pipe2.heatTransfer.states[1].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// final Real pipe2.heatTransfer.states[1].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final Real pipe2.heatTransfer.states[2].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe2.mediums[2].state.p; -// final Real pipe2.heatTransfer.states[2].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe2.mediums[2].state.T; -// final Real pipe2.heatTransfer.states[2].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// final Real pipe2.heatTransfer.states[2].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final Real pipe2.heatTransfer.states[3].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe2.mediums[3].state.p; -// final Real pipe2.heatTransfer.states[3].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe2.mediums[3].state.T; -// final Real pipe2.heatTransfer.states[3].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// final Real pipe2.heatTransfer.states[3].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final Real pipe2.heatTransfer.states[4].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe2.mediums[4].state.p; -// final Real pipe2.heatTransfer.states[4].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe2.mediums[4].state.T; -// final Real pipe2.heatTransfer.states[4].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// final Real pipe2.heatTransfer.states[4].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final Real pipe2.heatTransfer.states[5].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe2.mediums[5].state.p; -// final Real pipe2.heatTransfer.states[5].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe2.mediums[5].state.T; -// final Real pipe2.heatTransfer.states[5].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// final Real pipe2.heatTransfer.states[5].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final Real pipe2.heatTransfer.surfaceAreas[1](quantity = \"Area\", unit = \"m2\"); -// final Real pipe2.heatTransfer.surfaceAreas[2](quantity = \"Area\", unit = \"m2\"); -// final Real pipe2.heatTransfer.surfaceAreas[3](quantity = \"Area\", unit = \"m2\"); -// final Real pipe2.heatTransfer.surfaceAreas[4](quantity = \"Area\", unit = \"m2\"); -// final Real pipe2.heatTransfer.surfaceAreas[5](quantity = \"Area\", unit = \"m2\"); -// Real pipe2.heatTransfer.Q_flows[1](quantity = \"Power\", unit = \"W\"); -// Real pipe2.heatTransfer.Q_flows[2](quantity = \"Power\", unit = \"W\"); -// Real pipe2.heatTransfer.Q_flows[3](quantity = \"Power\", unit = \"W\"); -// Real pipe2.heatTransfer.Q_flows[4](quantity = \"Power\", unit = \"W\"); -// Real pipe2.heatTransfer.Q_flows[5](quantity = \"Power\", unit = \"W\"); -// final parameter Boolean pipe2.heatTransfer.use_k = true; -// final parameter Real pipe2.heatTransfer.k(quantity = \"CoefficientOfHeatTransfer\", unit = \"W/(m2.K)\") = 0.0; -// parameter Real pipe2.heatTransfer.T_ambient(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) = system.T_ambient; -// Real pipe2.heatTransfer.heatPorts[1].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0); -// Real pipe2.heatTransfer.heatPorts[1].Q_flow(quantity = \"Power\", unit = \"W\"); -// Real pipe2.heatTransfer.heatPorts[2].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0); -// Real pipe2.heatTransfer.heatPorts[2].Q_flow(quantity = \"Power\", unit = \"W\"); -// Real pipe2.heatTransfer.heatPorts[3].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0); -// Real pipe2.heatTransfer.heatPorts[3].Q_flow(quantity = \"Power\", unit = \"W\"); -// Real pipe2.heatTransfer.heatPorts[4].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0); -// Real pipe2.heatTransfer.heatPorts[4].Q_flow(quantity = \"Power\", unit = \"W\"); -// Real pipe2.heatTransfer.heatPorts[5].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0); -// Real pipe2.heatTransfer.heatPorts[5].Q_flow(quantity = \"Power\", unit = \"W\"); -// Real pipe2.heatTransfer.Ts[1](quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0); -// Real pipe2.heatTransfer.Ts[2](quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0); -// Real pipe2.heatTransfer.Ts[3](quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0); -// Real pipe2.heatTransfer.Ts[4](quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0); -// Real pipe2.heatTransfer.Ts[5](quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0); -// final Real pipe2.heatTransfer.vs[1](quantity = \"Velocity\", unit = \"m/s\"); -// final Real pipe2.heatTransfer.vs[2](quantity = \"Velocity\", unit = \"m/s\"); -// final Real pipe2.heatTransfer.vs[3](quantity = \"Velocity\", unit = \"m/s\"); -// final Real pipe2.heatTransfer.vs[4](quantity = \"Velocity\", unit = \"m/s\"); -// final Real pipe2.heatTransfer.vs[5](quantity = \"Velocity\", unit = \"m/s\"); -// final parameter Real pipe2.heatTransfer.nParallel = pipe2.nParallel; -// final Real pipe2.heatTransfer.lengths[1](quantity = \"Length\", unit = \"m\"); -// final Real pipe2.heatTransfer.lengths[2](quantity = \"Length\", unit = \"m\"); -// final Real pipe2.heatTransfer.lengths[3](quantity = \"Length\", unit = \"m\"); -// final Real pipe2.heatTransfer.lengths[4](quantity = \"Length\", unit = \"m\"); -// final Real pipe2.heatTransfer.lengths[5](quantity = \"Length\", unit = \"m\"); -// final Real pipe2.heatTransfer.dimensions[1](quantity = \"Length\", unit = \"m\"); -// final Real pipe2.heatTransfer.dimensions[2](quantity = \"Length\", unit = \"m\"); -// final Real pipe2.heatTransfer.dimensions[3](quantity = \"Length\", unit = \"m\"); -// final Real pipe2.heatTransfer.dimensions[4](quantity = \"Length\", unit = \"m\"); -// final Real pipe2.heatTransfer.dimensions[5](quantity = \"Length\", unit = \"m\"); -// final Real pipe2.heatTransfer.roughnesses[1](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); -// final Real pipe2.heatTransfer.roughnesses[2](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); -// final Real pipe2.heatTransfer.roughnesses[3](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); -// final Real pipe2.heatTransfer.roughnesses[4](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); -// final Real pipe2.heatTransfer.roughnesses[5](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); -// parameter Real pipe2.heatTransfer.alpha0(quantity = \"CoefficientOfHeatTransfer\", unit = \"W/(m2.K)\") = 100.0; -// Real pipe2.heatTransfer.alphas[1](quantity = \"CoefficientOfHeatTransfer\", unit = \"W/(m2.K)\", start = pipe2.heatTransfer.alpha0); -// Real pipe2.heatTransfer.alphas[2](quantity = \"CoefficientOfHeatTransfer\", unit = \"W/(m2.K)\", start = pipe2.heatTransfer.alpha0); -// Real pipe2.heatTransfer.alphas[3](quantity = \"CoefficientOfHeatTransfer\", unit = \"W/(m2.K)\", start = pipe2.heatTransfer.alpha0); -// Real pipe2.heatTransfer.alphas[4](quantity = \"CoefficientOfHeatTransfer\", unit = \"W/(m2.K)\", start = pipe2.heatTransfer.alpha0); -// Real pipe2.heatTransfer.alphas[5](quantity = \"CoefficientOfHeatTransfer\", unit = \"W/(m2.K)\", start = pipe2.heatTransfer.alpha0); -// Real pipe2.heatTransfer.Res[1]; -// Real pipe2.heatTransfer.Res[2]; -// Real pipe2.heatTransfer.Res[3]; -// Real pipe2.heatTransfer.Res[4]; -// Real pipe2.heatTransfer.Res[5]; -// Real pipe2.heatTransfer.Prs[1]; -// Real pipe2.heatTransfer.Prs[2]; -// Real pipe2.heatTransfer.Prs[3]; -// Real pipe2.heatTransfer.Prs[4]; -// Real pipe2.heatTransfer.Prs[5]; -// Real pipe2.heatTransfer.Nus[1]; -// Real pipe2.heatTransfer.Nus[2]; -// Real pipe2.heatTransfer.Nus[3]; -// Real pipe2.heatTransfer.Nus[4]; -// Real pipe2.heatTransfer.Nus[5]; -// Real pipe2.heatTransfer.ds[1](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe2.heatTransfer.ds[2](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe2.heatTransfer.ds[3](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe2.heatTransfer.ds[4](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe2.heatTransfer.ds[5](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe2.heatTransfer.mus[1](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 100000000.0, start = 0.001, nominal = 0.001); -// Real pipe2.heatTransfer.mus[2](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 100000000.0, start = 0.001, nominal = 0.001); -// Real pipe2.heatTransfer.mus[3](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 100000000.0, start = 0.001, nominal = 0.001); -// Real pipe2.heatTransfer.mus[4](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 100000000.0, start = 0.001, nominal = 0.001); -// Real pipe2.heatTransfer.mus[5](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 100000000.0, start = 0.001, nominal = 0.001); -// Real pipe2.heatTransfer.lambdas[1](quantity = \"ThermalConductivity\", unit = \"W/(m.K)\", min = 0.0, max = 500.0, start = 1.0, nominal = 1.0); -// Real pipe2.heatTransfer.lambdas[2](quantity = \"ThermalConductivity\", unit = \"W/(m.K)\", min = 0.0, max = 500.0, start = 1.0, nominal = 1.0); -// Real pipe2.heatTransfer.lambdas[3](quantity = \"ThermalConductivity\", unit = \"W/(m.K)\", min = 0.0, max = 500.0, start = 1.0, nominal = 1.0); -// Real pipe2.heatTransfer.lambdas[4](quantity = \"ThermalConductivity\", unit = \"W/(m.K)\", min = 0.0, max = 500.0, start = 1.0, nominal = 1.0); -// Real pipe2.heatTransfer.lambdas[5](quantity = \"ThermalConductivity\", unit = \"W/(m.K)\", min = 0.0, max = 500.0, start = 1.0, nominal = 1.0); -// Real pipe2.heatTransfer.diameters[1](quantity = \"Length\", unit = \"m\"); -// Real pipe2.heatTransfer.diameters[2](quantity = \"Length\", unit = \"m\"); -// Real pipe2.heatTransfer.diameters[3](quantity = \"Length\", unit = \"m\"); -// Real pipe2.heatTransfer.diameters[4](quantity = \"Length\", unit = \"m\"); -// Real pipe2.heatTransfer.diameters[5](quantity = \"Length\", unit = \"m\"); -// protected Real pipe2.heatTransfer.n61[1]; -// protected Real pipe2.heatTransfer.n61[2]; -// protected Real pipe2.heatTransfer.n61[3]; -// protected Real pipe2.heatTransfer.n61[4]; -// protected Real pipe2.heatTransfer.n61[5]; -// protected Real pipe2.heatTransfer.n62[1]; -// protected Real pipe2.heatTransfer.n62[2]; -// protected Real pipe2.heatTransfer.n62[3]; -// protected Real pipe2.heatTransfer.n62[4]; -// protected Real pipe2.heatTransfer.n62[5]; +// final parameter Integer pipe2.iLumped = 3 \"Index of control volume with representative state if useLumpedPressure\"; +// final parameter Boolean pipe2.useInnerPortProperties = false \"=true to take port properties for flow models from internal control volumes\"; +// Real pipe2.state_a.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Absolute pressure of medium\"; +// Real pipe2.state_a.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature of medium\"; +// Real pipe2.state_a.X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe2.state_a.X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe2.state_b.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Absolute pressure of medium\"; +// Real pipe2.state_b.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature of medium\"; +// Real pipe2.state_b.X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe2.state_b.X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe2.statesFM[1].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Absolute pressure of medium\"; +// Real pipe2.statesFM[1].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature of medium\"; +// Real pipe2.statesFM[1].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe2.statesFM[1].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe2.statesFM[2].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Absolute pressure of medium\"; +// Real pipe2.statesFM[2].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature of medium\"; +// Real pipe2.statesFM[2].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe2.statesFM[2].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe2.statesFM[3].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Absolute pressure of medium\"; +// Real pipe2.statesFM[3].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature of medium\"; +// Real pipe2.statesFM[3].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe2.statesFM[3].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe2.statesFM[4].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Absolute pressure of medium\"; +// Real pipe2.statesFM[4].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature of medium\"; +// Real pipe2.statesFM[4].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe2.statesFM[4].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe2.statesFM[5].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Absolute pressure of medium\"; +// Real pipe2.statesFM[5].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature of medium\"; +// Real pipe2.statesFM[5].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe2.statesFM[5].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final parameter Boolean pipe2.flowModel.from_dp = true \"= true, use m_flow = f(dp), otherwise dp = f(m_flow)\"; +// final parameter Integer pipe2.flowModel.n = 5 \"Number of discrete flow volumes\"; +// final Real pipe2.flowModel.states[1].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe2.statesFM[1].p \"Absolute pressure of medium\"; +// final Real pipe2.flowModel.states[1].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe2.statesFM[1].T \"Temperature of medium\"; +// final Real pipe2.flowModel.states[1].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe2.flowModel.states[1].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe2.flowModel.states[2].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe2.statesFM[2].p \"Absolute pressure of medium\"; +// final Real pipe2.flowModel.states[2].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe2.statesFM[2].T \"Temperature of medium\"; +// final Real pipe2.flowModel.states[2].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe2.flowModel.states[2].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe2.flowModel.states[3].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe2.statesFM[3].p \"Absolute pressure of medium\"; +// final Real pipe2.flowModel.states[3].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe2.statesFM[3].T \"Temperature of medium\"; +// final Real pipe2.flowModel.states[3].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe2.flowModel.states[3].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe2.flowModel.states[4].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe2.statesFM[4].p \"Absolute pressure of medium\"; +// final Real pipe2.flowModel.states[4].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe2.statesFM[4].T \"Temperature of medium\"; +// final Real pipe2.flowModel.states[4].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe2.flowModel.states[4].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe2.flowModel.states[5].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe2.statesFM[5].p \"Absolute pressure of medium\"; +// final Real pipe2.flowModel.states[5].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe2.statesFM[5].T \"Temperature of medium\"; +// final Real pipe2.flowModel.states[5].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe2.flowModel.states[5].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe2.flowModel.vs[1](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities of fluid flow\"; +// final Real pipe2.flowModel.vs[2](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities of fluid flow\"; +// final Real pipe2.flowModel.vs[3](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities of fluid flow\"; +// final Real pipe2.flowModel.vs[4](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities of fluid flow\"; +// final Real pipe2.flowModel.vs[5](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities of fluid flow\"; +// final parameter Real pipe2.flowModel.nParallel = pipe2.nParallel \"number of identical parallel flow devices\"; +// final Real pipe2.flowModel.crossAreas[1](quantity = \"Area\", unit = \"m2\") \"Cross flow areas at segment boundaries\"; +// final Real pipe2.flowModel.crossAreas[2](quantity = \"Area\", unit = \"m2\") \"Cross flow areas at segment boundaries\"; +// final Real pipe2.flowModel.crossAreas[3](quantity = \"Area\", unit = \"m2\") \"Cross flow areas at segment boundaries\"; +// final Real pipe2.flowModel.crossAreas[4](quantity = \"Area\", unit = \"m2\") \"Cross flow areas at segment boundaries\"; +// final Real pipe2.flowModel.crossAreas[5](quantity = \"Area\", unit = \"m2\") \"Cross flow areas at segment boundaries\"; +// final Real pipe2.flowModel.dimensions[1](quantity = \"Length\", unit = \"m\") \"Characteristic dimensions for fluid flow (diameters for pipe flow)\"; +// final Real pipe2.flowModel.dimensions[2](quantity = \"Length\", unit = \"m\") \"Characteristic dimensions for fluid flow (diameters for pipe flow)\"; +// final Real pipe2.flowModel.dimensions[3](quantity = \"Length\", unit = \"m\") \"Characteristic dimensions for fluid flow (diameters for pipe flow)\"; +// final Real pipe2.flowModel.dimensions[4](quantity = \"Length\", unit = \"m\") \"Characteristic dimensions for fluid flow (diameters for pipe flow)\"; +// final Real pipe2.flowModel.dimensions[5](quantity = \"Length\", unit = \"m\") \"Characteristic dimensions for fluid flow (diameters for pipe flow)\"; +// final Real pipe2.flowModel.roughnesses[1](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average height of surface asperities\"; +// final Real pipe2.flowModel.roughnesses[2](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average height of surface asperities\"; +// final Real pipe2.flowModel.roughnesses[3](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average height of surface asperities\"; +// final Real pipe2.flowModel.roughnesses[4](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average height of surface asperities\"; +// final Real pipe2.flowModel.roughnesses[5](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average height of surface asperities\"; +// final Real pipe2.flowModel.dheights[1](quantity = \"Length\", unit = \"m\") \"Height(states[2:n]) - Height(states[1:n-1])\"; +// final Real pipe2.flowModel.dheights[2](quantity = \"Length\", unit = \"m\") \"Height(states[2:n]) - Height(states[1:n-1])\"; +// final Real pipe2.flowModel.dheights[3](quantity = \"Length\", unit = \"m\") \"Height(states[2:n]) - Height(states[1:n-1])\"; +// final Real pipe2.flowModel.dheights[4](quantity = \"Length\", unit = \"m\") \"Height(states[2:n]) - Height(states[1:n-1])\"; +// final parameter Real pipe2.flowModel.g(quantity = \"Acceleration\", unit = \"m/s2\") = system.g \"Constant gravity acceleration\"; +// final parameter Boolean pipe2.flowModel.allowFlowReversal = true \"= true to allow flow reversal, false restricts to design direction (states[1] -> states[n+1])\"; +// final parameter enumeration(DynamicFreeInitial, FixedInitial, SteadyStateInitial, SteadyState) pipe2.flowModel.momentumDynamics = Modelica.Fluid.Types.Dynamics.SteadyStateInitial \"Formulation of momentum balance\"; +// final parameter Real pipe2.flowModel.m_flow_start(quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) = 0.01 \"Start value of mass flow rates\"; +// final parameter Real pipe2.flowModel.p_a_start(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe2.p_a_start \"Start value for p[1] at design inflow\"; +// final parameter Real pipe2.flowModel.p_b_start(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe2.p_b_start \"Start value for p[n+1] at design outflow\"; +// final parameter Integer pipe2.flowModel.m = 4 \"Number of flow segments\"; +// final Real pipe2.flowModel.pathLengths[1](quantity = \"Length\", unit = \"m\") \"Lengths along flow path\"; +// final Real pipe2.flowModel.pathLengths[2](quantity = \"Length\", unit = \"m\") \"Lengths along flow path\"; +// final Real pipe2.flowModel.pathLengths[3](quantity = \"Length\", unit = \"m\") \"Lengths along flow path\"; +// final Real pipe2.flowModel.pathLengths[4](quantity = \"Length\", unit = \"m\") \"Lengths along flow path\"; +// Real pipe2.flowModel.m_flows[1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e60, max = 1e5, start = 0.01, stateSelect = StateSelect.prefer) \"mass flow rates between states\"; +// Real pipe2.flowModel.m_flows[2](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e60, max = 1e5, start = 0.01, stateSelect = StateSelect.prefer) \"mass flow rates between states\"; +// Real pipe2.flowModel.m_flows[3](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e60, max = 1e5, start = 0.01, stateSelect = StateSelect.prefer) \"mass flow rates between states\"; +// Real pipe2.flowModel.m_flows[4](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e60, max = 1e5, start = 0.01, stateSelect = StateSelect.prefer) \"mass flow rates between states\"; +// Real pipe2.flowModel.Is[1](quantity = \"Momentum\", unit = \"kg.m/s\") \"Momenta of flow segments\"; +// Real pipe2.flowModel.Is[2](quantity = \"Momentum\", unit = \"kg.m/s\") \"Momenta of flow segments\"; +// Real pipe2.flowModel.Is[3](quantity = \"Momentum\", unit = \"kg.m/s\") \"Momenta of flow segments\"; +// Real pipe2.flowModel.Is[4](quantity = \"Momentum\", unit = \"kg.m/s\") \"Momenta of flow segments\"; +// Real pipe2.flowModel.Ib_flows[1](quantity = \"Force\", unit = \"N\") \"Flow of momentum across boundaries\"; +// Real pipe2.flowModel.Ib_flows[2](quantity = \"Force\", unit = \"N\") \"Flow of momentum across boundaries\"; +// Real pipe2.flowModel.Ib_flows[3](quantity = \"Force\", unit = \"N\") \"Flow of momentum across boundaries\"; +// Real pipe2.flowModel.Ib_flows[4](quantity = \"Force\", unit = \"N\") \"Flow of momentum across boundaries\"; +// Real pipe2.flowModel.Fs_p[1](quantity = \"Force\", unit = \"N\") \"Pressure forces\"; +// Real pipe2.flowModel.Fs_p[2](quantity = \"Force\", unit = \"N\") \"Pressure forces\"; +// Real pipe2.flowModel.Fs_p[3](quantity = \"Force\", unit = \"N\") \"Pressure forces\"; +// Real pipe2.flowModel.Fs_p[4](quantity = \"Force\", unit = \"N\") \"Pressure forces\"; +// Real pipe2.flowModel.Fs_fg[1](quantity = \"Force\", unit = \"N\") \"Friction and gravity forces\"; +// Real pipe2.flowModel.Fs_fg[2](quantity = \"Force\", unit = \"N\") \"Friction and gravity forces\"; +// Real pipe2.flowModel.Fs_fg[3](quantity = \"Force\", unit = \"N\") \"Friction and gravity forces\"; +// Real pipe2.flowModel.Fs_fg[4](quantity = \"Force\", unit = \"N\") \"Friction and gravity forces\"; +// final parameter Boolean pipe2.flowModel.useUpstreamScheme = true \"= false to average upstream and downstream properties across flow segments\"; +// final parameter Boolean pipe2.flowModel.use_Ib_flows = true \"= true to consider differences in flow of momentum through boundaries\"; +// Real pipe2.flowModel.rhos[1](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0); +// Real pipe2.flowModel.rhos[2](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0); +// Real pipe2.flowModel.rhos[3](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0); +// Real pipe2.flowModel.rhos[4](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0); +// Real pipe2.flowModel.rhos[5](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0); +// Real pipe2.flowModel.rhos_act[1](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0) \"Actual density per segment\"; +// Real pipe2.flowModel.rhos_act[2](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0) \"Actual density per segment\"; +// Real pipe2.flowModel.rhos_act[3](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0) \"Actual density per segment\"; +// Real pipe2.flowModel.rhos_act[4](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0) \"Actual density per segment\"; +// Real pipe2.flowModel.mus[1](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 1e8, start = 0.001, nominal = 0.001); +// Real pipe2.flowModel.mus[2](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 1e8, start = 0.001, nominal = 0.001); +// Real pipe2.flowModel.mus[3](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 1e8, start = 0.001, nominal = 0.001); +// Real pipe2.flowModel.mus[4](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 1e8, start = 0.001, nominal = 0.001); +// Real pipe2.flowModel.mus[5](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 1e8, start = 0.001, nominal = 0.001); +// Real pipe2.flowModel.mus_act[1](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 1e8, start = 0.001, nominal = 0.001) \"Actual viscosity per segment\"; +// Real pipe2.flowModel.mus_act[2](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 1e8, start = 0.001, nominal = 0.001) \"Actual viscosity per segment\"; +// Real pipe2.flowModel.mus_act[3](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 1e8, start = 0.001, nominal = 0.001) \"Actual viscosity per segment\"; +// Real pipe2.flowModel.mus_act[4](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 1e8, start = 0.001, nominal = 0.001) \"Actual viscosity per segment\"; +// Real pipe2.flowModel.dps_fg[1](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", start = (pipe2.flowModel.p_a_start - pipe2.flowModel.p_b_start) / 4.0) \"pressure drop between states\"; +// Real pipe2.flowModel.dps_fg[2](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", start = (pipe2.flowModel.p_a_start - pipe2.flowModel.p_b_start) / 4.0) \"pressure drop between states\"; +// Real pipe2.flowModel.dps_fg[3](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", start = (pipe2.flowModel.p_a_start - pipe2.flowModel.p_b_start) / 4.0) \"pressure drop between states\"; +// Real pipe2.flowModel.dps_fg[4](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", start = (pipe2.flowModel.p_a_start - pipe2.flowModel.p_b_start) / 4.0) \"pressure drop between states\"; +// final parameter Real pipe2.flowModel.Re_turbulent(quantity = \"ReynoldsNumber\", unit = \"1\") = 4000.0 \"Start of turbulent regime, depending on type of flow device\"; +// final parameter Boolean pipe2.flowModel.show_Res = false \"= true, if Reynolds numbers are included for plotting\"; +// protected final parameter Boolean pipe2.flowModel.n46 = false \"= true, if rho_nominal is used, otherwise computed from medium\"; +// protected parameter Real pipe2.flowModel.n47(quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0) = 1.1968386935810924 \"Nominal density (e.g., rho_liquidWater = 995, rho_air = 1.2)\"; +// protected final parameter Boolean pipe2.flowModel.n48 = false \"= true, if mu_nominal is used, otherwise computed from medium\"; +// protected parameter Real pipe2.flowModel.n49(quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0) = 1.823286547365138e-5 \"Nominal dynamic viscosity (e.g., mu_liquidWater = 1e-3, mu_air = 1.8e-5)\"; +// Real pipe2.flowModel.pathLengths_internal[1](quantity = \"Length\", unit = \"m\") \"pathLengths used internally; to be defined by extending class\"; +// Real pipe2.flowModel.pathLengths_internal[2](quantity = \"Length\", unit = \"m\") \"pathLengths used internally; to be defined by extending class\"; +// Real pipe2.flowModel.pathLengths_internal[3](quantity = \"Length\", unit = \"m\") \"pathLengths used internally; to be defined by extending class\"; +// Real pipe2.flowModel.pathLengths_internal[4](quantity = \"Length\", unit = \"m\") \"pathLengths used internally; to be defined by extending class\"; +// Real pipe2.flowModel.Res_turbulent_internal[1](quantity = \"ReynoldsNumber\", unit = \"1\") \"Re_turbulent used internally; to be defined by extending class\"; +// Real pipe2.flowModel.Res_turbulent_internal[2](quantity = \"ReynoldsNumber\", unit = \"1\") \"Re_turbulent used internally; to be defined by extending class\"; +// Real pipe2.flowModel.Res_turbulent_internal[3](quantity = \"ReynoldsNumber\", unit = \"1\") \"Re_turbulent used internally; to be defined by extending class\"; +// Real pipe2.flowModel.Res_turbulent_internal[4](quantity = \"ReynoldsNumber\", unit = \"1\") \"Re_turbulent used internally; to be defined by extending class\"; +// parameter Real pipe2.flowModel.dp_nominal(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, start = 1.0, fixed = false, nominal = 1e5) \"Nominal pressure loss (only for nominal models)\"; +// parameter Real pipe2.flowModel.m_flow_nominal(quantity = \"MassFlowRate\", unit = \"kg/s\") = 100.0 * pipe2.flowModel.m_flow_small \"Nominal mass flow rate\"; +// parameter Real pipe2.flowModel.m_flow_small(quantity = \"MassFlowRate\", unit = \"kg/s\") = system.m_flow_small \"Within regularization if |m_flows| < m_flow_small (may be wider for large discontinuities in static head)\"; +// protected parameter Real pipe2.flowModel.n50(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, start = 1.0, fixed = false, nominal = 1e5) \"Within regularization if |dp| < dp_small (may be wider for large discontinuities in static head)\"; +// protected final parameter Boolean pipe2.flowModel.n51 = false \"= true if the pressure loss does not depend on fluid states\"; +// protected final parameter Boolean pipe2.flowModel.n52 = false \"= true if the pressure loss is continuous around zero flow\"; +// protected Real pipe2.flowModel.n53[1](quantity = \"Length\", unit = \"m\") \"mean diameters between segments\"; +// protected Real pipe2.flowModel.n53[2](quantity = \"Length\", unit = \"m\") \"mean diameters between segments\"; +// protected Real pipe2.flowModel.n53[3](quantity = \"Length\", unit = \"m\") \"mean diameters between segments\"; +// protected Real pipe2.flowModel.n53[4](quantity = \"Length\", unit = \"m\") \"mean diameters between segments\"; +// protected Real pipe2.flowModel.n54(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 1e5) = Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.flowModel.WallFriction.pressureLoss_m_flow(pipe2.flowModel.m_flow_nominal / pipe2.flowModel.nParallel, pipe2.flowModel.n47, pipe2.flowModel.n47, pipe2.flowModel.n49, pipe2.flowModel.n49, pipe2.flowModel.pathLengths_internal[1], pipe2.flowModel.n53[1], (pipe2.flowModel.crossAreas[1] + pipe2.flowModel.crossAreas[2]) / 2.0, (pipe2.flowModel.roughnesses[1] + pipe2.flowModel.roughnesses[2]) / 2.0, pipe2.flowModel.m_flow_small / pipe2.flowModel.nParallel, pipe2.flowModel.Res_turbulent_internal[1]) + Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.flowModel.WallFriction.pressureLoss_m_flow(pipe2.flowModel.m_flow_nominal / pipe2.flowModel.nParallel, pipe2.flowModel.n47, pipe2.flowModel.n47, pipe2.flowModel.n49, pipe2.flowModel.n49, pipe2.flowModel.pathLengths_internal[2], pipe2.flowModel.n53[2], (pipe2.flowModel.crossAreas[2] + pipe2.flowModel.crossAreas[3]) / 2.0, (pipe2.flowModel.roughnesses[2] + pipe2.flowModel.roughnesses[3]) / 2.0, pipe2.flowModel.m_flow_small / pipe2.flowModel.nParallel, pipe2.flowModel.Res_turbulent_internal[2]) + Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.flowModel.WallFriction.pressureLoss_m_flow(pipe2.flowModel.m_flow_nominal / pipe2.flowModel.nParallel, pipe2.flowModel.n47, pipe2.flowModel.n47, pipe2.flowModel.n49, pipe2.flowModel.n49, pipe2.flowModel.pathLengths_internal[3], pipe2.flowModel.n53[3], (pipe2.flowModel.crossAreas[3] + pipe2.flowModel.crossAreas[4]) / 2.0, (pipe2.flowModel.roughnesses[3] + pipe2.flowModel.roughnesses[4]) / 2.0, pipe2.flowModel.m_flow_small / pipe2.flowModel.nParallel, pipe2.flowModel.Res_turbulent_internal[3]) + Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.flowModel.WallFriction.pressureLoss_m_flow(pipe2.flowModel.m_flow_nominal / pipe2.flowModel.nParallel, pipe2.flowModel.n47, pipe2.flowModel.n47, pipe2.flowModel.n49, pipe2.flowModel.n49, pipe2.flowModel.pathLengths_internal[4], pipe2.flowModel.n53[4], (pipe2.flowModel.crossAreas[4] + pipe2.flowModel.crossAreas[5]) / 2.0, (pipe2.flowModel.roughnesses[4] + pipe2.flowModel.roughnesses[5]) / 2.0, pipe2.flowModel.m_flow_small / pipe2.flowModel.nParallel, pipe2.flowModel.Res_turbulent_internal[4]) \"pressure loss for nominal conditions\"; +// Real pipe2.m_flows[1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e60, max = 1e5, start = 0.01) \"Mass flow rates of fluid across segment boundaries\"; +// Real pipe2.m_flows[2](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e60, max = 1e5, start = 0.01) \"Mass flow rates of fluid across segment boundaries\"; +// Real pipe2.m_flows[3](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e60, max = 1e5, start = 0.01) \"Mass flow rates of fluid across segment boundaries\"; +// Real pipe2.m_flows[4](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e60, max = 1e5, start = 0.01) \"Mass flow rates of fluid across segment boundaries\"; +// Real pipe2.m_flows[5](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e60, max = 1e5, start = 0.01) \"Mass flow rates of fluid across segment boundaries\"; +// Real pipe2.m_flows[6](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e60, max = 1e5, start = 0.01) \"Mass flow rates of fluid across segment boundaries\"; +// Real pipe2.mXi_flows[1,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) \"Independent mass flow rates across segment boundaries\"; +// Real pipe2.mXi_flows[2,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) \"Independent mass flow rates across segment boundaries\"; +// Real pipe2.mXi_flows[3,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) \"Independent mass flow rates across segment boundaries\"; +// Real pipe2.mXi_flows[4,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) \"Independent mass flow rates across segment boundaries\"; +// Real pipe2.mXi_flows[5,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) \"Independent mass flow rates across segment boundaries\"; +// Real pipe2.mXi_flows[6,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) \"Independent mass flow rates across segment boundaries\"; +// Real pipe2.H_flows[1](quantity = \"EnthalpyFlowRate\", unit = \"W\", min = -1e8, max = 1e8, nominal = 1000.0) \"Enthalpy flow rates of fluid across segment boundaries\"; +// Real pipe2.H_flows[2](quantity = \"EnthalpyFlowRate\", unit = \"W\", min = -1e8, max = 1e8, nominal = 1000.0) \"Enthalpy flow rates of fluid across segment boundaries\"; +// Real pipe2.H_flows[3](quantity = \"EnthalpyFlowRate\", unit = \"W\", min = -1e8, max = 1e8, nominal = 1000.0) \"Enthalpy flow rates of fluid across segment boundaries\"; +// Real pipe2.H_flows[4](quantity = \"EnthalpyFlowRate\", unit = \"W\", min = -1e8, max = 1e8, nominal = 1000.0) \"Enthalpy flow rates of fluid across segment boundaries\"; +// Real pipe2.H_flows[5](quantity = \"EnthalpyFlowRate\", unit = \"W\", min = -1e8, max = 1e8, nominal = 1000.0) \"Enthalpy flow rates of fluid across segment boundaries\"; +// Real pipe2.H_flows[6](quantity = \"EnthalpyFlowRate\", unit = \"W\", min = -1e8, max = 1e8, nominal = 1000.0) \"Enthalpy flow rates of fluid across segment boundaries\"; +// Real pipe2.vs[1](quantity = \"Velocity\", unit = \"m/s\") \"mean velocities in flow segments\"; +// Real pipe2.vs[2](quantity = \"Velocity\", unit = \"m/s\") \"mean velocities in flow segments\"; +// Real pipe2.vs[3](quantity = \"Velocity\", unit = \"m/s\") \"mean velocities in flow segments\"; +// Real pipe2.vs[4](quantity = \"Velocity\", unit = \"m/s\") \"mean velocities in flow segments\"; +// Real pipe2.vs[5](quantity = \"Velocity\", unit = \"m/s\") \"mean velocities in flow segments\"; +// protected Real pipe2.n55[1](quantity = \"Length\", unit = \"m\") \"Lengths along flow path\"; +// protected Real pipe2.n55[2](quantity = \"Length\", unit = \"m\") \"Lengths along flow path\"; +// protected Real pipe2.n55[3](quantity = \"Length\", unit = \"m\") \"Lengths along flow path\"; +// protected Real pipe2.n55[4](quantity = \"Length\", unit = \"m\") \"Lengths along flow path\"; +// protected Real pipe2.n56[1](quantity = \"Length\", unit = \"m\") \"Differences in heights between flow segments\"; +// protected Real pipe2.n56[2](quantity = \"Length\", unit = \"m\") \"Differences in heights between flow segments\"; +// protected Real pipe2.n56[3](quantity = \"Length\", unit = \"m\") \"Differences in heights between flow segments\"; +// protected Real pipe2.n56[4](quantity = \"Length\", unit = \"m\") \"Differences in heights between flow segments\"; +// protected Real pipe2.n57[1](quantity = \"Area\", unit = \"m2\") \"Cross flow areas of flow segments\"; +// protected Real pipe2.n57[2](quantity = \"Area\", unit = \"m2\") \"Cross flow areas of flow segments\"; +// protected Real pipe2.n57[3](quantity = \"Area\", unit = \"m2\") \"Cross flow areas of flow segments\"; +// protected Real pipe2.n57[4](quantity = \"Area\", unit = \"m2\") \"Cross flow areas of flow segments\"; +// protected Real pipe2.n57[5](quantity = \"Area\", unit = \"m2\") \"Cross flow areas of flow segments\"; +// protected Real pipe2.n58[1](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities in flow segments\"; +// protected Real pipe2.n58[2](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities in flow segments\"; +// protected Real pipe2.n58[3](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities in flow segments\"; +// protected Real pipe2.n58[4](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities in flow segments\"; +// protected Real pipe2.n58[5](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities in flow segments\"; +// protected Real pipe2.n59[1](quantity = \"Length\", unit = \"m\") \"Hydraulic diameters of flow segments\"; +// protected Real pipe2.n59[2](quantity = \"Length\", unit = \"m\") \"Hydraulic diameters of flow segments\"; +// protected Real pipe2.n59[3](quantity = \"Length\", unit = \"m\") \"Hydraulic diameters of flow segments\"; +// protected Real pipe2.n59[4](quantity = \"Length\", unit = \"m\") \"Hydraulic diameters of flow segments\"; +// protected Real pipe2.n59[5](quantity = \"Length\", unit = \"m\") \"Hydraulic diameters of flow segments\"; +// protected Real pipe2.n60[1](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average heights of surface asperities\"; +// protected Real pipe2.n60[2](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average heights of surface asperities\"; +// protected Real pipe2.n60[3](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average heights of surface asperities\"; +// protected Real pipe2.n60[4](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average heights of surface asperities\"; +// protected Real pipe2.n60[5](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average heights of surface asperities\"; +// final parameter Boolean pipe2.use_HeatTransfer = true \"= true to use the HeatTransfer model\"; +// Real pipe2.heatPorts[1].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) \"Port temperature\"; +// Real pipe2.heatPorts[1].Q_flow(quantity = \"Power\", unit = \"W\") \"Heat flow rate (positive if flowing from outside into the component)\"; +// Real pipe2.heatPorts[2].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) \"Port temperature\"; +// Real pipe2.heatPorts[2].Q_flow(quantity = \"Power\", unit = \"W\") \"Heat flow rate (positive if flowing from outside into the component)\"; +// Real pipe2.heatPorts[3].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) \"Port temperature\"; +// Real pipe2.heatPorts[3].Q_flow(quantity = \"Power\", unit = \"W\") \"Heat flow rate (positive if flowing from outside into the component)\"; +// Real pipe2.heatPorts[4].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) \"Port temperature\"; +// Real pipe2.heatPorts[4].Q_flow(quantity = \"Power\", unit = \"W\") \"Heat flow rate (positive if flowing from outside into the component)\"; +// Real pipe2.heatPorts[5].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) \"Port temperature\"; +// Real pipe2.heatPorts[5].Q_flow(quantity = \"Power\", unit = \"W\") \"Heat flow rate (positive if flowing from outside into the component)\"; +// final parameter Integer pipe2.heatTransfer.n = 5 \"Number of heat transfer segments\"; +// final Real pipe2.heatTransfer.states[1].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe2.mediums[1].state.p \"Absolute pressure of medium\"; +// final Real pipe2.heatTransfer.states[1].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe2.mediums[1].state.T \"Temperature of medium\"; +// final Real pipe2.heatTransfer.states[1].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe2.heatTransfer.states[1].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe2.heatTransfer.states[2].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe2.mediums[2].state.p \"Absolute pressure of medium\"; +// final Real pipe2.heatTransfer.states[2].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe2.mediums[2].state.T \"Temperature of medium\"; +// final Real pipe2.heatTransfer.states[2].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe2.heatTransfer.states[2].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe2.heatTransfer.states[3].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe2.mediums[3].state.p \"Absolute pressure of medium\"; +// final Real pipe2.heatTransfer.states[3].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe2.mediums[3].state.T \"Temperature of medium\"; +// final Real pipe2.heatTransfer.states[3].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe2.heatTransfer.states[3].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe2.heatTransfer.states[4].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe2.mediums[4].state.p \"Absolute pressure of medium\"; +// final Real pipe2.heatTransfer.states[4].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe2.mediums[4].state.T \"Temperature of medium\"; +// final Real pipe2.heatTransfer.states[4].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe2.heatTransfer.states[4].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe2.heatTransfer.states[5].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe2.mediums[5].state.p \"Absolute pressure of medium\"; +// final Real pipe2.heatTransfer.states[5].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe2.mediums[5].state.T \"Temperature of medium\"; +// final Real pipe2.heatTransfer.states[5].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe2.heatTransfer.states[5].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe2.heatTransfer.surfaceAreas[1](quantity = \"Area\", unit = \"m2\") \"Heat transfer areas\"; +// final Real pipe2.heatTransfer.surfaceAreas[2](quantity = \"Area\", unit = \"m2\") \"Heat transfer areas\"; +// final Real pipe2.heatTransfer.surfaceAreas[3](quantity = \"Area\", unit = \"m2\") \"Heat transfer areas\"; +// final Real pipe2.heatTransfer.surfaceAreas[4](quantity = \"Area\", unit = \"m2\") \"Heat transfer areas\"; +// final Real pipe2.heatTransfer.surfaceAreas[5](quantity = \"Area\", unit = \"m2\") \"Heat transfer areas\"; +// Real pipe2.heatTransfer.Q_flows[1](quantity = \"Power\", unit = \"W\") \"Heat flow rates\"; +// Real pipe2.heatTransfer.Q_flows[2](quantity = \"Power\", unit = \"W\") \"Heat flow rates\"; +// Real pipe2.heatTransfer.Q_flows[3](quantity = \"Power\", unit = \"W\") \"Heat flow rates\"; +// Real pipe2.heatTransfer.Q_flows[4](quantity = \"Power\", unit = \"W\") \"Heat flow rates\"; +// Real pipe2.heatTransfer.Q_flows[5](quantity = \"Power\", unit = \"W\") \"Heat flow rates\"; +// final parameter Boolean pipe2.heatTransfer.use_k = true \"= true to use k value for thermal isolation\"; +// final parameter Real pipe2.heatTransfer.k(quantity = \"CoefficientOfHeatTransfer\", unit = \"W/(m2.K)\") = 0.0 \"Heat transfer coefficient to ambient\"; +// parameter Real pipe2.heatTransfer.T_ambient(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) = system.T_ambient \"Ambient temperature\"; +// Real pipe2.heatTransfer.heatPorts[1].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) \"Port temperature\"; +// Real pipe2.heatTransfer.heatPorts[1].Q_flow(quantity = \"Power\", unit = \"W\") \"Heat flow rate (positive if flowing from outside into the component)\"; +// Real pipe2.heatTransfer.heatPorts[2].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) \"Port temperature\"; +// Real pipe2.heatTransfer.heatPorts[2].Q_flow(quantity = \"Power\", unit = \"W\") \"Heat flow rate (positive if flowing from outside into the component)\"; +// Real pipe2.heatTransfer.heatPorts[3].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) \"Port temperature\"; +// Real pipe2.heatTransfer.heatPorts[3].Q_flow(quantity = \"Power\", unit = \"W\") \"Heat flow rate (positive if flowing from outside into the component)\"; +// Real pipe2.heatTransfer.heatPorts[4].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) \"Port temperature\"; +// Real pipe2.heatTransfer.heatPorts[4].Q_flow(quantity = \"Power\", unit = \"W\") \"Heat flow rate (positive if flowing from outside into the component)\"; +// Real pipe2.heatTransfer.heatPorts[5].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) \"Port temperature\"; +// Real pipe2.heatTransfer.heatPorts[5].Q_flow(quantity = \"Power\", unit = \"W\") \"Heat flow rate (positive if flowing from outside into the component)\"; +// Real pipe2.heatTransfer.Ts[1](quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) \"Temperatures defined by fluid states\"; +// Real pipe2.heatTransfer.Ts[2](quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) \"Temperatures defined by fluid states\"; +// Real pipe2.heatTransfer.Ts[3](quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) \"Temperatures defined by fluid states\"; +// Real pipe2.heatTransfer.Ts[4](quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) \"Temperatures defined by fluid states\"; +// Real pipe2.heatTransfer.Ts[5](quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) \"Temperatures defined by fluid states\"; +// final Real pipe2.heatTransfer.vs[1](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities of fluid flow in segments\"; +// final Real pipe2.heatTransfer.vs[2](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities of fluid flow in segments\"; +// final Real pipe2.heatTransfer.vs[3](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities of fluid flow in segments\"; +// final Real pipe2.heatTransfer.vs[4](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities of fluid flow in segments\"; +// final Real pipe2.heatTransfer.vs[5](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities of fluid flow in segments\"; +// final parameter Real pipe2.heatTransfer.nParallel = pipe2.nParallel \"number of identical parallel flow devices\"; +// final Real pipe2.heatTransfer.lengths[1](quantity = \"Length\", unit = \"m\") \"Lengths along flow path\"; +// final Real pipe2.heatTransfer.lengths[2](quantity = \"Length\", unit = \"m\") \"Lengths along flow path\"; +// final Real pipe2.heatTransfer.lengths[3](quantity = \"Length\", unit = \"m\") \"Lengths along flow path\"; +// final Real pipe2.heatTransfer.lengths[4](quantity = \"Length\", unit = \"m\") \"Lengths along flow path\"; +// final Real pipe2.heatTransfer.lengths[5](quantity = \"Length\", unit = \"m\") \"Lengths along flow path\"; +// final Real pipe2.heatTransfer.dimensions[1](quantity = \"Length\", unit = \"m\") \"Characteristic dimensions for fluid flow (diameter for pipe flow)\"; +// final Real pipe2.heatTransfer.dimensions[2](quantity = \"Length\", unit = \"m\") \"Characteristic dimensions for fluid flow (diameter for pipe flow)\"; +// final Real pipe2.heatTransfer.dimensions[3](quantity = \"Length\", unit = \"m\") \"Characteristic dimensions for fluid flow (diameter for pipe flow)\"; +// final Real pipe2.heatTransfer.dimensions[4](quantity = \"Length\", unit = \"m\") \"Characteristic dimensions for fluid flow (diameter for pipe flow)\"; +// final Real pipe2.heatTransfer.dimensions[5](quantity = \"Length\", unit = \"m\") \"Characteristic dimensions for fluid flow (diameter for pipe flow)\"; +// final Real pipe2.heatTransfer.roughnesses[1](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average heights of surface asperities\"; +// final Real pipe2.heatTransfer.roughnesses[2](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average heights of surface asperities\"; +// final Real pipe2.heatTransfer.roughnesses[3](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average heights of surface asperities\"; +// final Real pipe2.heatTransfer.roughnesses[4](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average heights of surface asperities\"; +// final Real pipe2.heatTransfer.roughnesses[5](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average heights of surface asperities\"; +// parameter Real pipe2.heatTransfer.alpha0(quantity = \"CoefficientOfHeatTransfer\", unit = \"W/(m2.K)\") = 100.0 \"guess value for heat transfer coefficients\"; +// Real pipe2.heatTransfer.alphas[1](quantity = \"CoefficientOfHeatTransfer\", unit = \"W/(m2.K)\", start = pipe2.heatTransfer.alpha0) \"CoefficientOfHeatTransfer\"; +// Real pipe2.heatTransfer.alphas[2](quantity = \"CoefficientOfHeatTransfer\", unit = \"W/(m2.K)\", start = pipe2.heatTransfer.alpha0) \"CoefficientOfHeatTransfer\"; +// Real pipe2.heatTransfer.alphas[3](quantity = \"CoefficientOfHeatTransfer\", unit = \"W/(m2.K)\", start = pipe2.heatTransfer.alpha0) \"CoefficientOfHeatTransfer\"; +// Real pipe2.heatTransfer.alphas[4](quantity = \"CoefficientOfHeatTransfer\", unit = \"W/(m2.K)\", start = pipe2.heatTransfer.alpha0) \"CoefficientOfHeatTransfer\"; +// Real pipe2.heatTransfer.alphas[5](quantity = \"CoefficientOfHeatTransfer\", unit = \"W/(m2.K)\", start = pipe2.heatTransfer.alpha0) \"CoefficientOfHeatTransfer\"; +// Real pipe2.heatTransfer.Res[1] \"Reynolds numbers\"; +// Real pipe2.heatTransfer.Res[2] \"Reynolds numbers\"; +// Real pipe2.heatTransfer.Res[3] \"Reynolds numbers\"; +// Real pipe2.heatTransfer.Res[4] \"Reynolds numbers\"; +// Real pipe2.heatTransfer.Res[5] \"Reynolds numbers\"; +// Real pipe2.heatTransfer.Prs[1] \"Prandtl numbers\"; +// Real pipe2.heatTransfer.Prs[2] \"Prandtl numbers\"; +// Real pipe2.heatTransfer.Prs[3] \"Prandtl numbers\"; +// Real pipe2.heatTransfer.Prs[4] \"Prandtl numbers\"; +// Real pipe2.heatTransfer.Prs[5] \"Prandtl numbers\"; +// Real pipe2.heatTransfer.Nus[1] \"Nusselt numbers\"; +// Real pipe2.heatTransfer.Nus[2] \"Nusselt numbers\"; +// Real pipe2.heatTransfer.Nus[3] \"Nusselt numbers\"; +// Real pipe2.heatTransfer.Nus[4] \"Nusselt numbers\"; +// Real pipe2.heatTransfer.Nus[5] \"Nusselt numbers\"; +// Real pipe2.heatTransfer.ds[1](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0) \"Densities\"; +// Real pipe2.heatTransfer.ds[2](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0) \"Densities\"; +// Real pipe2.heatTransfer.ds[3](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0) \"Densities\"; +// Real pipe2.heatTransfer.ds[4](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0) \"Densities\"; +// Real pipe2.heatTransfer.ds[5](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0) \"Densities\"; +// Real pipe2.heatTransfer.mus[1](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 1e8, start = 0.001, nominal = 0.001) \"Dynamic viscosities\"; +// Real pipe2.heatTransfer.mus[2](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 1e8, start = 0.001, nominal = 0.001) \"Dynamic viscosities\"; +// Real pipe2.heatTransfer.mus[3](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 1e8, start = 0.001, nominal = 0.001) \"Dynamic viscosities\"; +// Real pipe2.heatTransfer.mus[4](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 1e8, start = 0.001, nominal = 0.001) \"Dynamic viscosities\"; +// Real pipe2.heatTransfer.mus[5](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 1e8, start = 0.001, nominal = 0.001) \"Dynamic viscosities\"; +// Real pipe2.heatTransfer.lambdas[1](quantity = \"ThermalConductivity\", unit = \"W/(m.K)\", min = 0.0, max = 500.0, start = 1.0, nominal = 1.0) \"Thermal conductivity\"; +// Real pipe2.heatTransfer.lambdas[2](quantity = \"ThermalConductivity\", unit = \"W/(m.K)\", min = 0.0, max = 500.0, start = 1.0, nominal = 1.0) \"Thermal conductivity\"; +// Real pipe2.heatTransfer.lambdas[3](quantity = \"ThermalConductivity\", unit = \"W/(m.K)\", min = 0.0, max = 500.0, start = 1.0, nominal = 1.0) \"Thermal conductivity\"; +// Real pipe2.heatTransfer.lambdas[4](quantity = \"ThermalConductivity\", unit = \"W/(m.K)\", min = 0.0, max = 500.0, start = 1.0, nominal = 1.0) \"Thermal conductivity\"; +// Real pipe2.heatTransfer.lambdas[5](quantity = \"ThermalConductivity\", unit = \"W/(m.K)\", min = 0.0, max = 500.0, start = 1.0, nominal = 1.0) \"Thermal conductivity\"; +// Real pipe2.heatTransfer.diameters[1](quantity = \"Length\", unit = \"m\") \"Hydraulic diameters for pipe flow\"; +// Real pipe2.heatTransfer.diameters[2](quantity = \"Length\", unit = \"m\") \"Hydraulic diameters for pipe flow\"; +// Real pipe2.heatTransfer.diameters[3](quantity = \"Length\", unit = \"m\") \"Hydraulic diameters for pipe flow\"; +// Real pipe2.heatTransfer.diameters[4](quantity = \"Length\", unit = \"m\") \"Hydraulic diameters for pipe flow\"; +// Real pipe2.heatTransfer.diameters[5](quantity = \"Length\", unit = \"m\") \"Hydraulic diameters for pipe flow\"; +// protected Real pipe2.heatTransfer.n61[1] \"Nusselt number for turbulent flow\"; +// protected Real pipe2.heatTransfer.n61[2] \"Nusselt number for turbulent flow\"; +// protected Real pipe2.heatTransfer.n61[3] \"Nusselt number for turbulent flow\"; +// protected Real pipe2.heatTransfer.n61[4] \"Nusselt number for turbulent flow\"; +// protected Real pipe2.heatTransfer.n61[5] \"Nusselt number for turbulent flow\"; +// protected Real pipe2.heatTransfer.n62[1] \"Nusselt number for laminar flow\"; +// protected Real pipe2.heatTransfer.n62[2] \"Nusselt number for laminar flow\"; +// protected Real pipe2.heatTransfer.n62[3] \"Nusselt number for laminar flow\"; +// protected Real pipe2.heatTransfer.n62[4] \"Nusselt number for laminar flow\"; +// protected Real pipe2.heatTransfer.n62[5] \"Nusselt number for laminar flow\"; // protected Real pipe2.heatTransfer.n63; // protected Real pipe2.heatTransfer.n64[1]; // protected Real pipe2.heatTransfer.n64[2]; @@ -5253,1275 +5253,1275 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // final parameter Real pipe2.dxs[3] = 0.2; // final parameter Real pipe2.dxs[4] = 0.2; // final parameter Real pipe2.dxs[5] = 0.2; -// final parameter Boolean pipe3.allowFlowReversal = true; -// Real pipe3.port_a.m_flow(quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -9.999999999999999e+59, max = 100000.0); -// Real pipe3.port_a.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe3.port_a.h_outflow(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -10000000000.0, max = 10000000000.0, nominal = 1000000.0); -// Real pipe3.port_a.Xi_outflow[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// Real pipe3.port_b.m_flow(quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 9.999999999999999e+59); -// Real pipe3.port_b.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe3.port_b.h_outflow(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -10000000000.0, max = 10000000000.0, nominal = 1000000.0); -// Real pipe3.port_b.Xi_outflow[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected final parameter Boolean pipe3.n66 = false; -// protected final parameter Boolean pipe3.n67 = false; -// protected parameter Boolean pipe3.n68 = true; -// parameter Real pipe3.nParallel(min = 1.0) = 1.0; -// final parameter Real pipe3.length(quantity = \"Length\", unit = \"m\") = 25.0; -// parameter Boolean pipe3.isCircular = true; -// parameter Real pipe3.diameter(quantity = \"Length\", unit = \"m\", min = 0.0) = 0.0254; -// parameter Real pipe3.crossArea(quantity = \"Area\", unit = \"m2\") = 3.141592653589793 * pipe3.diameter * pipe3.diameter / 4.0; -// parameter Real pipe3.perimeter(quantity = \"Length\", unit = \"m\", min = 0.0) = 3.141592653589793 * pipe3.diameter; -// parameter Real pipe3.roughness(quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) = 2.5e-05; -// final parameter Real pipe3.V(quantity = \"Volume\", unit = \"m3\") = pipe3.crossArea * 25.0 * pipe3.nParallel; -// final parameter Real pipe3.height_ab(quantity = \"Length\", unit = \"m\") = 25.0; -// final parameter Integer pipe3.n = 5; -// final Real pipe3.fluidVolumes[1](quantity = \"Volume\", unit = \"m3\"); -// final Real pipe3.fluidVolumes[2](quantity = \"Volume\", unit = \"m3\"); -// final Real pipe3.fluidVolumes[3](quantity = \"Volume\", unit = \"m3\"); -// final Real pipe3.fluidVolumes[4](quantity = \"Volume\", unit = \"m3\"); -// final Real pipe3.fluidVolumes[5](quantity = \"Volume\", unit = \"m3\"); -// final parameter enumeration(DynamicFreeInitial, FixedInitial, SteadyStateInitial, SteadyState) pipe3.energyDynamics = Modelica.Fluid.Types.Dynamics.SteadyStateInitial; -// final parameter enumeration(DynamicFreeInitial, FixedInitial, SteadyStateInitial, SteadyState) pipe3.massDynamics = Modelica.Fluid.Types.Dynamics.SteadyStateInitial; -// final parameter enumeration(DynamicFreeInitial, FixedInitial, SteadyStateInitial, SteadyState) pipe3.substanceDynamics = Modelica.Fluid.Types.Dynamics.SteadyStateInitial; -// final parameter enumeration(DynamicFreeInitial, FixedInitial, SteadyStateInitial, SteadyState) pipe3.traceDynamics = Modelica.Fluid.Types.Dynamics.SteadyStateInitial; -// parameter Real pipe3.p_a_start(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = 130000.0; -// parameter Real pipe3.p_b_start(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = 120000.0; -// final parameter Real pipe3.ps_start[1](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe3.p_a_start; -// final parameter Real pipe3.ps_start[2](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe3.p_a_start + (pipe3.p_b_start - pipe3.p_a_start) / 4.0; -// final parameter Real pipe3.ps_start[3](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe3.p_a_start + (pipe3.p_b_start - pipe3.p_a_start) * 2.0 / 4.0; -// final parameter Real pipe3.ps_start[4](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe3.p_a_start + (pipe3.p_b_start - pipe3.p_a_start) * 3.0 / 4.0; -// final parameter Real pipe3.ps_start[5](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe3.p_a_start + (pipe3.p_b_start - pipe3.p_a_start) * 4.0 / 4.0; -// final parameter Boolean pipe3.use_T_start = true; -// parameter Real pipe3.T_start(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = system.T_start; -// parameter Real pipe3.h_start(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -10000000000.0, max = 10000000000.0, nominal = 1000000.0) = Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.Medium.specificEnthalpy_pTX((pipe3.p_a_start + pipe3.p_b_start) / 2.0, pipe3.T_start, pipe3.X_start); -// parameter Real pipe3.X_start[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) = 0.01; -// parameter Real pipe3.X_start[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) = 0.99; -// Real pipe3.Us[1](quantity = \"Energy\", unit = \"J\"); -// Real pipe3.Us[2](quantity = \"Energy\", unit = \"J\"); -// Real pipe3.Us[3](quantity = \"Energy\", unit = \"J\"); -// Real pipe3.Us[4](quantity = \"Energy\", unit = \"J\"); -// Real pipe3.Us[5](quantity = \"Energy\", unit = \"J\"); -// Real pipe3.ms[1](quantity = \"Mass\", unit = \"kg\", min = 0.0); -// Real pipe3.ms[2](quantity = \"Mass\", unit = \"kg\", min = 0.0); -// Real pipe3.ms[3](quantity = \"Mass\", unit = \"kg\", min = 0.0); -// Real pipe3.ms[4](quantity = \"Mass\", unit = \"kg\", min = 0.0); -// Real pipe3.ms[5](quantity = \"Mass\", unit = \"kg\", min = 0.0); -// Real pipe3.mXis[1,1](quantity = \"Mass\", unit = \"kg\", min = 0.0); -// Real pipe3.mXis[2,1](quantity = \"Mass\", unit = \"kg\", min = 0.0); -// Real pipe3.mXis[3,1](quantity = \"Mass\", unit = \"kg\", min = 0.0); -// Real pipe3.mXis[4,1](quantity = \"Mass\", unit = \"kg\", min = 0.0); -// Real pipe3.mXis[5,1](quantity = \"Mass\", unit = \"kg\", min = 0.0); -// Real pipe3.mediums[1].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, start = pipe3.ps_start[1], nominal = 100000.0, stateSelect = StateSelect.prefer); -// Real pipe3.mediums[1].Xi[1](quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0, start = pipe3.X_start[1], stateSelect = StateSelect.prefer); -// Real pipe3.mediums[1].h(quantity = \"SpecificEnergy\", unit = \"J/kg\", start = pipe3.h_start); -// Real pipe3.mediums[1].d(quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe3.mediums[1].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = pipe3.T_start, nominal = 300.0, stateSelect = StateSelect.prefer); -// Real pipe3.mediums[1].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe3.mediums[1].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// Real pipe3.mediums[1].u(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -100000000.0, max = 100000000.0, nominal = 1000000.0); -// Real pipe3.mediums[1].R(quantity = \"SpecificHeatCapacity\", unit = \"J/(kg.K)\", min = 0.0, max = 10000000.0, start = 1000.0, nominal = 1000.0); -// Real pipe3.mediums[1].MM(quantity = \"MolarMass\", unit = \"kg/mol\", min = 0.001, max = 0.25, nominal = 0.032); -// Real pipe3.mediums[1].state.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe3.mediums[1].state.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0); -// Real pipe3.mediums[1].state.X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe3.mediums[1].state.X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final parameter Boolean pipe3.mediums[1].preferredMediumStates = true; -// final parameter Boolean pipe3.mediums[1].standardOrderComponents = true; -// Real pipe3.mediums[1].T_degC(quantity = \"ThermodynamicTemperature\", unit = \"degC\") = Modelica.SIunits.Conversions.to_degC(pipe3.mediums[1].T); -// Real pipe3.mediums[1].p_bar(quantity = \"Pressure\", unit = \"bar\") = Modelica.SIunits.Conversions.to_bar(pipe3.mediums[1].p); -// Real pipe3.mediums[1].x_water(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// Real pipe3.mediums[1].phi; -// protected Real pipe3.mediums[1].n69(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe3.mediums[1].n70(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe3.mediums[1].n71(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe3.mediums[1].n72(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe3.mediums[1].n73(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe3.mediums[1].n74(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe3.mediums[2].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, start = pipe3.ps_start[2], nominal = 100000.0, stateSelect = StateSelect.prefer); -// Real pipe3.mediums[2].Xi[1](quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0, start = pipe3.X_start[1], stateSelect = StateSelect.prefer); -// Real pipe3.mediums[2].h(quantity = \"SpecificEnergy\", unit = \"J/kg\", start = pipe3.h_start); -// Real pipe3.mediums[2].d(quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe3.mediums[2].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = pipe3.T_start, nominal = 300.0, stateSelect = StateSelect.prefer); -// Real pipe3.mediums[2].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe3.mediums[2].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// Real pipe3.mediums[2].u(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -100000000.0, max = 100000000.0, nominal = 1000000.0); -// Real pipe3.mediums[2].R(quantity = \"SpecificHeatCapacity\", unit = \"J/(kg.K)\", min = 0.0, max = 10000000.0, start = 1000.0, nominal = 1000.0); -// Real pipe3.mediums[2].MM(quantity = \"MolarMass\", unit = \"kg/mol\", min = 0.001, max = 0.25, nominal = 0.032); -// Real pipe3.mediums[2].state.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe3.mediums[2].state.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0); -// Real pipe3.mediums[2].state.X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe3.mediums[2].state.X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final parameter Boolean pipe3.mediums[2].preferredMediumStates = true; -// final parameter Boolean pipe3.mediums[2].standardOrderComponents = true; -// Real pipe3.mediums[2].T_degC(quantity = \"ThermodynamicTemperature\", unit = \"degC\") = Modelica.SIunits.Conversions.to_degC(pipe3.mediums[2].T); -// Real pipe3.mediums[2].p_bar(quantity = \"Pressure\", unit = \"bar\") = Modelica.SIunits.Conversions.to_bar(pipe3.mediums[2].p); -// Real pipe3.mediums[2].x_water(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// Real pipe3.mediums[2].phi; -// protected Real pipe3.mediums[2].n69(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe3.mediums[2].n70(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe3.mediums[2].n71(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe3.mediums[2].n72(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe3.mediums[2].n73(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe3.mediums[2].n74(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe3.mediums[3].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, start = pipe3.ps_start[3], nominal = 100000.0, stateSelect = StateSelect.prefer); -// Real pipe3.mediums[3].Xi[1](quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0, start = pipe3.X_start[1], stateSelect = StateSelect.prefer); -// Real pipe3.mediums[3].h(quantity = \"SpecificEnergy\", unit = \"J/kg\", start = pipe3.h_start); -// Real pipe3.mediums[3].d(quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe3.mediums[3].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = pipe3.T_start, nominal = 300.0, stateSelect = StateSelect.prefer); -// Real pipe3.mediums[3].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe3.mediums[3].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// Real pipe3.mediums[3].u(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -100000000.0, max = 100000000.0, nominal = 1000000.0); -// Real pipe3.mediums[3].R(quantity = \"SpecificHeatCapacity\", unit = \"J/(kg.K)\", min = 0.0, max = 10000000.0, start = 1000.0, nominal = 1000.0); -// Real pipe3.mediums[3].MM(quantity = \"MolarMass\", unit = \"kg/mol\", min = 0.001, max = 0.25, nominal = 0.032); -// Real pipe3.mediums[3].state.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe3.mediums[3].state.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0); -// Real pipe3.mediums[3].state.X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe3.mediums[3].state.X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final parameter Boolean pipe3.mediums[3].preferredMediumStates = true; -// final parameter Boolean pipe3.mediums[3].standardOrderComponents = true; -// Real pipe3.mediums[3].T_degC(quantity = \"ThermodynamicTemperature\", unit = \"degC\") = Modelica.SIunits.Conversions.to_degC(pipe3.mediums[3].T); -// Real pipe3.mediums[3].p_bar(quantity = \"Pressure\", unit = \"bar\") = Modelica.SIunits.Conversions.to_bar(pipe3.mediums[3].p); -// Real pipe3.mediums[3].x_water(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// Real pipe3.mediums[3].phi; -// protected Real pipe3.mediums[3].n69(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe3.mediums[3].n70(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe3.mediums[3].n71(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe3.mediums[3].n72(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe3.mediums[3].n73(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe3.mediums[3].n74(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe3.mediums[4].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, start = pipe3.ps_start[4], nominal = 100000.0, stateSelect = StateSelect.prefer); -// Real pipe3.mediums[4].Xi[1](quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0, start = pipe3.X_start[1], stateSelect = StateSelect.prefer); -// Real pipe3.mediums[4].h(quantity = \"SpecificEnergy\", unit = \"J/kg\", start = pipe3.h_start); -// Real pipe3.mediums[4].d(quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe3.mediums[4].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = pipe3.T_start, nominal = 300.0, stateSelect = StateSelect.prefer); -// Real pipe3.mediums[4].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe3.mediums[4].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// Real pipe3.mediums[4].u(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -100000000.0, max = 100000000.0, nominal = 1000000.0); -// Real pipe3.mediums[4].R(quantity = \"SpecificHeatCapacity\", unit = \"J/(kg.K)\", min = 0.0, max = 10000000.0, start = 1000.0, nominal = 1000.0); -// Real pipe3.mediums[4].MM(quantity = \"MolarMass\", unit = \"kg/mol\", min = 0.001, max = 0.25, nominal = 0.032); -// Real pipe3.mediums[4].state.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe3.mediums[4].state.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0); -// Real pipe3.mediums[4].state.X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe3.mediums[4].state.X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final parameter Boolean pipe3.mediums[4].preferredMediumStates = true; -// final parameter Boolean pipe3.mediums[4].standardOrderComponents = true; -// Real pipe3.mediums[4].T_degC(quantity = \"ThermodynamicTemperature\", unit = \"degC\") = Modelica.SIunits.Conversions.to_degC(pipe3.mediums[4].T); -// Real pipe3.mediums[4].p_bar(quantity = \"Pressure\", unit = \"bar\") = Modelica.SIunits.Conversions.to_bar(pipe3.mediums[4].p); -// Real pipe3.mediums[4].x_water(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// Real pipe3.mediums[4].phi; -// protected Real pipe3.mediums[4].n69(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe3.mediums[4].n70(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe3.mediums[4].n71(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe3.mediums[4].n72(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe3.mediums[4].n73(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe3.mediums[4].n74(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe3.mediums[5].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, start = pipe3.ps_start[5], nominal = 100000.0, stateSelect = StateSelect.prefer); -// Real pipe3.mediums[5].Xi[1](quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0, start = pipe3.X_start[1], stateSelect = StateSelect.prefer); -// Real pipe3.mediums[5].h(quantity = \"SpecificEnergy\", unit = \"J/kg\", start = pipe3.h_start); -// Real pipe3.mediums[5].d(quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe3.mediums[5].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = pipe3.T_start, nominal = 300.0, stateSelect = StateSelect.prefer); -// Real pipe3.mediums[5].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe3.mediums[5].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// Real pipe3.mediums[5].u(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -100000000.0, max = 100000000.0, nominal = 1000000.0); -// Real pipe3.mediums[5].R(quantity = \"SpecificHeatCapacity\", unit = \"J/(kg.K)\", min = 0.0, max = 10000000.0, start = 1000.0, nominal = 1000.0); -// Real pipe3.mediums[5].MM(quantity = \"MolarMass\", unit = \"kg/mol\", min = 0.001, max = 0.25, nominal = 0.032); -// Real pipe3.mediums[5].state.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe3.mediums[5].state.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0); -// Real pipe3.mediums[5].state.X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe3.mediums[5].state.X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final parameter Boolean pipe3.mediums[5].preferredMediumStates = true; -// final parameter Boolean pipe3.mediums[5].standardOrderComponents = true; -// Real pipe3.mediums[5].T_degC(quantity = \"ThermodynamicTemperature\", unit = \"degC\") = Modelica.SIunits.Conversions.to_degC(pipe3.mediums[5].T); -// Real pipe3.mediums[5].p_bar(quantity = \"Pressure\", unit = \"bar\") = Modelica.SIunits.Conversions.to_bar(pipe3.mediums[5].p); -// Real pipe3.mediums[5].x_water(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// Real pipe3.mediums[5].phi; -// protected Real pipe3.mediums[5].n69(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe3.mediums[5].n70(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe3.mediums[5].n71(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe3.mediums[5].n72(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe3.mediums[5].n73(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe3.mediums[5].n74(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe3.mb_flows[1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0); -// Real pipe3.mb_flows[2](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0); -// Real pipe3.mb_flows[3](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0); -// Real pipe3.mb_flows[4](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0); -// Real pipe3.mb_flows[5](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0); -// Real pipe3.mbXi_flows[1,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0); -// Real pipe3.mbXi_flows[2,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0); -// Real pipe3.mbXi_flows[3,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0); -// Real pipe3.mbXi_flows[4,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0); -// Real pipe3.mbXi_flows[5,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0); -// Real pipe3.Hb_flows[1](quantity = \"EnthalpyFlowRate\", unit = \"W\"); -// Real pipe3.Hb_flows[2](quantity = \"EnthalpyFlowRate\", unit = \"W\"); -// Real pipe3.Hb_flows[3](quantity = \"EnthalpyFlowRate\", unit = \"W\"); -// Real pipe3.Hb_flows[4](quantity = \"EnthalpyFlowRate\", unit = \"W\"); -// Real pipe3.Hb_flows[5](quantity = \"EnthalpyFlowRate\", unit = \"W\"); -// Real pipe3.Qb_flows[1](quantity = \"Power\", unit = \"W\"); -// Real pipe3.Qb_flows[2](quantity = \"Power\", unit = \"W\"); -// Real pipe3.Qb_flows[3](quantity = \"Power\", unit = \"W\"); -// Real pipe3.Qb_flows[4](quantity = \"Power\", unit = \"W\"); -// Real pipe3.Qb_flows[5](quantity = \"Power\", unit = \"W\"); -// Real pipe3.Wb_flows[1](quantity = \"Power\", unit = \"W\"); -// Real pipe3.Wb_flows[2](quantity = \"Power\", unit = \"W\"); -// Real pipe3.Wb_flows[3](quantity = \"Power\", unit = \"W\"); -// Real pipe3.Wb_flows[4](quantity = \"Power\", unit = \"W\"); -// Real pipe3.Wb_flows[5](quantity = \"Power\", unit = \"W\"); -// protected final parameter Boolean pipe3.n75 = true; -// final parameter Real pipe3.lengths[1](quantity = \"Length\", unit = \"m\") = 5.0; -// final parameter Real pipe3.lengths[2](quantity = \"Length\", unit = \"m\") = 5.0; -// final parameter Real pipe3.lengths[3](quantity = \"Length\", unit = \"m\") = 5.0; -// final parameter Real pipe3.lengths[4](quantity = \"Length\", unit = \"m\") = 5.0; -// final parameter Real pipe3.lengths[5](quantity = \"Length\", unit = \"m\") = 5.0; -// final parameter Real pipe3.crossAreas[1](quantity = \"Area\", unit = \"m2\") = pipe3.crossArea; -// final parameter Real pipe3.crossAreas[2](quantity = \"Area\", unit = \"m2\") = pipe3.crossArea; -// final parameter Real pipe3.crossAreas[3](quantity = \"Area\", unit = \"m2\") = pipe3.crossArea; -// final parameter Real pipe3.crossAreas[4](quantity = \"Area\", unit = \"m2\") = pipe3.crossArea; -// final parameter Real pipe3.crossAreas[5](quantity = \"Area\", unit = \"m2\") = pipe3.crossArea; -// final parameter Real pipe3.dimensions[1](quantity = \"Length\", unit = \"m\") = 4.0 * pipe3.crossArea / pipe3.perimeter; -// final parameter Real pipe3.dimensions[2](quantity = \"Length\", unit = \"m\") = 4.0 * pipe3.crossArea / pipe3.perimeter; -// final parameter Real pipe3.dimensions[3](quantity = \"Length\", unit = \"m\") = 4.0 * pipe3.crossArea / pipe3.perimeter; -// final parameter Real pipe3.dimensions[4](quantity = \"Length\", unit = \"m\") = 4.0 * pipe3.crossArea / pipe3.perimeter; -// final parameter Real pipe3.dimensions[5](quantity = \"Length\", unit = \"m\") = 4.0 * pipe3.crossArea / pipe3.perimeter; -// final parameter Real pipe3.roughnesses[1](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) = pipe3.roughness; -// final parameter Real pipe3.roughnesses[2](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) = pipe3.roughness; -// final parameter Real pipe3.roughnesses[3](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) = pipe3.roughness; -// final parameter Real pipe3.roughnesses[4](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) = pipe3.roughness; -// final parameter Real pipe3.roughnesses[5](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) = pipe3.roughness; -// final parameter Real pipe3.dheights[1](quantity = \"Length\", unit = \"m\") = 5.0; -// final parameter Real pipe3.dheights[2](quantity = \"Length\", unit = \"m\") = 5.0; -// final parameter Real pipe3.dheights[3](quantity = \"Length\", unit = \"m\") = 5.0; -// final parameter Real pipe3.dheights[4](quantity = \"Length\", unit = \"m\") = 5.0; -// final parameter Real pipe3.dheights[5](quantity = \"Length\", unit = \"m\") = 5.0; -// final parameter enumeration(DynamicFreeInitial, FixedInitial, SteadyStateInitial, SteadyState) pipe3.momentumDynamics = Modelica.Fluid.Types.Dynamics.SteadyStateInitial; -// final parameter Real pipe3.m_flow_start(quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0) = 0.01; -// final parameter Integer pipe3.nNodes(min = 1) = 5; -// final parameter enumeration(av_vb, a_v_b, av_b, a_vb) pipe3.modelStructure = Modelica.Fluid.Types.ModelStructure.a_v_b; -// final parameter Boolean pipe3.useLumpedPressure = false; -// final parameter Integer pipe3.nFM = 6; +// final parameter Boolean pipe3.allowFlowReversal = true \"= true to allow flow reversal, false restricts to design direction (port_a -> port_b)\"; +// Real pipe3.port_a.m_flow(quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e60, max = 1e5) \"Mass flow rate from the connection point into the component\"; +// Real pipe3.port_a.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Thermodynamic pressure in the connection point\"; +// Real pipe3.port_a.h_outflow(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -1e10, max = 1e10, nominal = 1e6) \"Specific thermodynamic enthalpy close to the connection point if m_flow < 0\"; +// Real pipe3.port_a.Xi_outflow[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Independent mixture mass fractions m_i/m close to the connection point if m_flow < 0\"; +// Real pipe3.port_b.m_flow(quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e60) \"Mass flow rate from the connection point into the component\"; +// Real pipe3.port_b.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Thermodynamic pressure in the connection point\"; +// Real pipe3.port_b.h_outflow(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -1e10, max = 1e10, nominal = 1e6) \"Specific thermodynamic enthalpy close to the connection point if m_flow < 0\"; +// Real pipe3.port_b.Xi_outflow[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Independent mixture mass fractions m_i/m close to the connection point if m_flow < 0\"; +// protected final parameter Boolean pipe3.n66 = false \"= true if port_a exposes the state of a fluid volume\"; +// protected final parameter Boolean pipe3.n67 = false \"= true if port_b.p exposes the state of a fluid volume\"; +// protected parameter Boolean pipe3.n68 = true \"= false to hide the arrow in the model icon\"; +// parameter Real pipe3.nParallel(min = 1.0) = 1.0 \"Number of identical parallel pipes\"; +// final parameter Real pipe3.length(quantity = \"Length\", unit = \"m\") = 25.0 \"Length\"; +// parameter Boolean pipe3.isCircular = true \"= true if cross sectional area is circular\"; +// parameter Real pipe3.diameter(quantity = \"Length\", unit = \"m\", min = 0.0) = 0.0254 \"Diameter of circular pipe\"; +// parameter Real pipe3.crossArea(quantity = \"Area\", unit = \"m2\") = 3.141592653589793 * pipe3.diameter * pipe3.diameter / 4.0 \"Inner cross section area\"; +// parameter Real pipe3.perimeter(quantity = \"Length\", unit = \"m\", min = 0.0) = 3.141592653589793 * pipe3.diameter \"Inner perimeter\"; +// parameter Real pipe3.roughness(quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) = 2.5e-5 \"Average height of surface asperities (default: smooth steel pipe)\"; +// final parameter Real pipe3.V(quantity = \"Volume\", unit = \"m3\") = pipe3.crossArea * 25.0 * pipe3.nParallel \"volume size\"; +// final parameter Real pipe3.height_ab(quantity = \"Length\", unit = \"m\") = 25.0 \"Height(port_b) - Height(port_a)\"; +// final parameter Integer pipe3.n = 5 \"Number of discrete volumes\"; +// final Real pipe3.fluidVolumes[1](quantity = \"Volume\", unit = \"m3\") \"Discretized volume, determine in inheriting class\"; +// final Real pipe3.fluidVolumes[2](quantity = \"Volume\", unit = \"m3\") \"Discretized volume, determine in inheriting class\"; +// final Real pipe3.fluidVolumes[3](quantity = \"Volume\", unit = \"m3\") \"Discretized volume, determine in inheriting class\"; +// final Real pipe3.fluidVolumes[4](quantity = \"Volume\", unit = \"m3\") \"Discretized volume, determine in inheriting class\"; +// final Real pipe3.fluidVolumes[5](quantity = \"Volume\", unit = \"m3\") \"Discretized volume, determine in inheriting class\"; +// final parameter enumeration(DynamicFreeInitial, FixedInitial, SteadyStateInitial, SteadyState) pipe3.energyDynamics = Modelica.Fluid.Types.Dynamics.SteadyStateInitial \"Formulation of energy balances\"; +// final parameter enumeration(DynamicFreeInitial, FixedInitial, SteadyStateInitial, SteadyState) pipe3.massDynamics = Modelica.Fluid.Types.Dynamics.SteadyStateInitial \"Formulation of mass balances\"; +// final parameter enumeration(DynamicFreeInitial, FixedInitial, SteadyStateInitial, SteadyState) pipe3.substanceDynamics = Modelica.Fluid.Types.Dynamics.SteadyStateInitial \"Formulation of substance balances\"; +// final parameter enumeration(DynamicFreeInitial, FixedInitial, SteadyStateInitial, SteadyState) pipe3.traceDynamics = Modelica.Fluid.Types.Dynamics.SteadyStateInitial \"Formulation of trace substance balances\"; +// parameter Real pipe3.p_a_start(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = 1.3e5 \"Start value of pressure at port a\"; +// parameter Real pipe3.p_b_start(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = 1.2e5 \"Start value of pressure at port b\"; +// final parameter Real pipe3.ps_start[1](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe3.p_a_start \"Start value of pressure\"; +// final parameter Real pipe3.ps_start[2](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe3.p_a_start + (pipe3.p_b_start - pipe3.p_a_start) / 4.0 \"Start value of pressure\"; +// final parameter Real pipe3.ps_start[3](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe3.p_a_start + (pipe3.p_b_start - pipe3.p_a_start) * 2.0 / 4.0 \"Start value of pressure\"; +// final parameter Real pipe3.ps_start[4](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe3.p_a_start + (pipe3.p_b_start - pipe3.p_a_start) * 3.0 / 4.0 \"Start value of pressure\"; +// final parameter Real pipe3.ps_start[5](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe3.p_a_start + (pipe3.p_b_start - pipe3.p_a_start) * 4.0 / 4.0 \"Start value of pressure\"; +// final parameter Boolean pipe3.use_T_start = true \"Use T_start if true, otherwise h_start\"; +// parameter Real pipe3.T_start(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = system.T_start \"Start value of temperature\"; +// parameter Real pipe3.h_start(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -1e10, max = 1e10, nominal = 1e6) = Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.Medium.specificEnthalpy_pTX((pipe3.p_a_start + pipe3.p_b_start) / 2.0, pipe3.T_start, pipe3.X_start) \"Start value of specific enthalpy\"; +// parameter Real pipe3.X_start[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) = 0.01 \"Start value of mass fractions m_i/m\"; +// parameter Real pipe3.X_start[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) = 0.99 \"Start value of mass fractions m_i/m\"; +// Real pipe3.Us[1](quantity = \"Energy\", unit = \"J\") \"Internal energy of fluid\"; +// Real pipe3.Us[2](quantity = \"Energy\", unit = \"J\") \"Internal energy of fluid\"; +// Real pipe3.Us[3](quantity = \"Energy\", unit = \"J\") \"Internal energy of fluid\"; +// Real pipe3.Us[4](quantity = \"Energy\", unit = \"J\") \"Internal energy of fluid\"; +// Real pipe3.Us[5](quantity = \"Energy\", unit = \"J\") \"Internal energy of fluid\"; +// Real pipe3.ms[1](quantity = \"Mass\", unit = \"kg\", min = 0.0) \"Fluid mass\"; +// Real pipe3.ms[2](quantity = \"Mass\", unit = \"kg\", min = 0.0) \"Fluid mass\"; +// Real pipe3.ms[3](quantity = \"Mass\", unit = \"kg\", min = 0.0) \"Fluid mass\"; +// Real pipe3.ms[4](quantity = \"Mass\", unit = \"kg\", min = 0.0) \"Fluid mass\"; +// Real pipe3.ms[5](quantity = \"Mass\", unit = \"kg\", min = 0.0) \"Fluid mass\"; +// Real pipe3.mXis[1,1](quantity = \"Mass\", unit = \"kg\", min = 0.0) \"Substance mass\"; +// Real pipe3.mXis[2,1](quantity = \"Mass\", unit = \"kg\", min = 0.0) \"Substance mass\"; +// Real pipe3.mXis[3,1](quantity = \"Mass\", unit = \"kg\", min = 0.0) \"Substance mass\"; +// Real pipe3.mXis[4,1](quantity = \"Mass\", unit = \"kg\", min = 0.0) \"Substance mass\"; +// Real pipe3.mXis[5,1](quantity = \"Mass\", unit = \"kg\", min = 0.0) \"Substance mass\"; +// Real pipe3.mediums[1].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, start = pipe3.ps_start[1], nominal = 1e5, stateSelect = StateSelect.prefer) \"Absolute pressure of medium\"; +// Real pipe3.mediums[1].Xi[1](quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0, start = pipe3.X_start[1], stateSelect = StateSelect.prefer) \"Structurally independent mass fractions\"; +// Real pipe3.mediums[1].h(quantity = \"SpecificEnergy\", unit = \"J/kg\", start = pipe3.h_start) \"Specific enthalpy of medium\"; +// Real pipe3.mediums[1].d(quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0) \"Density of medium\"; +// Real pipe3.mediums[1].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = pipe3.T_start, nominal = 300.0, stateSelect = StateSelect.prefer) \"Temperature of medium\"; +// Real pipe3.mediums[1].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe3.mediums[1].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe3.mediums[1].u(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -1e8, max = 1e8, nominal = 1e6) \"Specific internal energy of medium\"; +// Real pipe3.mediums[1].R(quantity = \"SpecificHeatCapacity\", unit = \"J/(kg.K)\", min = 0.0, max = 1e7, start = 1000.0, nominal = 1000.0) \"Gas constant (of mixture if applicable)\"; +// Real pipe3.mediums[1].MM(quantity = \"MolarMass\", unit = \"kg/mol\", min = 0.001, max = 0.25, nominal = 0.032) \"Molar mass (of mixture or single fluid)\"; +// Real pipe3.mediums[1].state.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Absolute pressure of medium\"; +// Real pipe3.mediums[1].state.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature of medium\"; +// Real pipe3.mediums[1].state.X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe3.mediums[1].state.X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final parameter Boolean pipe3.mediums[1].preferredMediumStates = true \"= true if StateSelect.prefer shall be used for the independent property variables of the medium\"; +// final parameter Boolean pipe3.mediums[1].standardOrderComponents = true \"If true, and reducedX = true, the last element of X will be computed from the other ones\"; +// Real pipe3.mediums[1].T_degC(quantity = \"ThermodynamicTemperature\", unit = \"degC\") = Modelica.SIunits.Conversions.to_degC(pipe3.mediums[1].T) \"Temperature of medium in [degC]\"; +// Real pipe3.mediums[1].p_bar(quantity = \"Pressure\", unit = \"bar\") = Modelica.SIunits.Conversions.to_bar(pipe3.mediums[1].p) \"Absolute pressure of medium in [bar]\"; +// Real pipe3.mediums[1].x_water(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass of total water/mass of dry air\"; +// Real pipe3.mediums[1].phi \"Relative humidity\"; +// protected Real pipe3.mediums[1].n69(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass fraction of liquid or solid water\"; +// protected Real pipe3.mediums[1].n70(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass fraction of steam water\"; +// protected Real pipe3.mediums[1].n71(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass fraction of air\"; +// protected Real pipe3.mediums[1].n72(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Steam water mass fraction of saturation boundary in kg_water/kg_moistair\"; +// protected Real pipe3.mediums[1].n73(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Steam water mass content of saturation boundary in kg_water/kg_dryair\"; +// protected Real pipe3.mediums[1].n74(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"partial saturation pressure of steam\"; +// Real pipe3.mediums[2].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, start = pipe3.ps_start[2], nominal = 1e5, stateSelect = StateSelect.prefer) \"Absolute pressure of medium\"; +// Real pipe3.mediums[2].Xi[1](quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0, start = pipe3.X_start[1], stateSelect = StateSelect.prefer) \"Structurally independent mass fractions\"; +// Real pipe3.mediums[2].h(quantity = \"SpecificEnergy\", unit = \"J/kg\", start = pipe3.h_start) \"Specific enthalpy of medium\"; +// Real pipe3.mediums[2].d(quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0) \"Density of medium\"; +// Real pipe3.mediums[2].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = pipe3.T_start, nominal = 300.0, stateSelect = StateSelect.prefer) \"Temperature of medium\"; +// Real pipe3.mediums[2].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe3.mediums[2].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe3.mediums[2].u(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -1e8, max = 1e8, nominal = 1e6) \"Specific internal energy of medium\"; +// Real pipe3.mediums[2].R(quantity = \"SpecificHeatCapacity\", unit = \"J/(kg.K)\", min = 0.0, max = 1e7, start = 1000.0, nominal = 1000.0) \"Gas constant (of mixture if applicable)\"; +// Real pipe3.mediums[2].MM(quantity = \"MolarMass\", unit = \"kg/mol\", min = 0.001, max = 0.25, nominal = 0.032) \"Molar mass (of mixture or single fluid)\"; +// Real pipe3.mediums[2].state.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Absolute pressure of medium\"; +// Real pipe3.mediums[2].state.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature of medium\"; +// Real pipe3.mediums[2].state.X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe3.mediums[2].state.X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final parameter Boolean pipe3.mediums[2].preferredMediumStates = true \"= true if StateSelect.prefer shall be used for the independent property variables of the medium\"; +// final parameter Boolean pipe3.mediums[2].standardOrderComponents = true \"If true, and reducedX = true, the last element of X will be computed from the other ones\"; +// Real pipe3.mediums[2].T_degC(quantity = \"ThermodynamicTemperature\", unit = \"degC\") = Modelica.SIunits.Conversions.to_degC(pipe3.mediums[2].T) \"Temperature of medium in [degC]\"; +// Real pipe3.mediums[2].p_bar(quantity = \"Pressure\", unit = \"bar\") = Modelica.SIunits.Conversions.to_bar(pipe3.mediums[2].p) \"Absolute pressure of medium in [bar]\"; +// Real pipe3.mediums[2].x_water(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass of total water/mass of dry air\"; +// Real pipe3.mediums[2].phi \"Relative humidity\"; +// protected Real pipe3.mediums[2].n69(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass fraction of liquid or solid water\"; +// protected Real pipe3.mediums[2].n70(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass fraction of steam water\"; +// protected Real pipe3.mediums[2].n71(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass fraction of air\"; +// protected Real pipe3.mediums[2].n72(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Steam water mass fraction of saturation boundary in kg_water/kg_moistair\"; +// protected Real pipe3.mediums[2].n73(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Steam water mass content of saturation boundary in kg_water/kg_dryair\"; +// protected Real pipe3.mediums[2].n74(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"partial saturation pressure of steam\"; +// Real pipe3.mediums[3].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, start = pipe3.ps_start[3], nominal = 1e5, stateSelect = StateSelect.prefer) \"Absolute pressure of medium\"; +// Real pipe3.mediums[3].Xi[1](quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0, start = pipe3.X_start[1], stateSelect = StateSelect.prefer) \"Structurally independent mass fractions\"; +// Real pipe3.mediums[3].h(quantity = \"SpecificEnergy\", unit = \"J/kg\", start = pipe3.h_start) \"Specific enthalpy of medium\"; +// Real pipe3.mediums[3].d(quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0) \"Density of medium\"; +// Real pipe3.mediums[3].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = pipe3.T_start, nominal = 300.0, stateSelect = StateSelect.prefer) \"Temperature of medium\"; +// Real pipe3.mediums[3].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe3.mediums[3].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe3.mediums[3].u(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -1e8, max = 1e8, nominal = 1e6) \"Specific internal energy of medium\"; +// Real pipe3.mediums[3].R(quantity = \"SpecificHeatCapacity\", unit = \"J/(kg.K)\", min = 0.0, max = 1e7, start = 1000.0, nominal = 1000.0) \"Gas constant (of mixture if applicable)\"; +// Real pipe3.mediums[3].MM(quantity = \"MolarMass\", unit = \"kg/mol\", min = 0.001, max = 0.25, nominal = 0.032) \"Molar mass (of mixture or single fluid)\"; +// Real pipe3.mediums[3].state.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Absolute pressure of medium\"; +// Real pipe3.mediums[3].state.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature of medium\"; +// Real pipe3.mediums[3].state.X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe3.mediums[3].state.X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final parameter Boolean pipe3.mediums[3].preferredMediumStates = true \"= true if StateSelect.prefer shall be used for the independent property variables of the medium\"; +// final parameter Boolean pipe3.mediums[3].standardOrderComponents = true \"If true, and reducedX = true, the last element of X will be computed from the other ones\"; +// Real pipe3.mediums[3].T_degC(quantity = \"ThermodynamicTemperature\", unit = \"degC\") = Modelica.SIunits.Conversions.to_degC(pipe3.mediums[3].T) \"Temperature of medium in [degC]\"; +// Real pipe3.mediums[3].p_bar(quantity = \"Pressure\", unit = \"bar\") = Modelica.SIunits.Conversions.to_bar(pipe3.mediums[3].p) \"Absolute pressure of medium in [bar]\"; +// Real pipe3.mediums[3].x_water(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass of total water/mass of dry air\"; +// Real pipe3.mediums[3].phi \"Relative humidity\"; +// protected Real pipe3.mediums[3].n69(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass fraction of liquid or solid water\"; +// protected Real pipe3.mediums[3].n70(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass fraction of steam water\"; +// protected Real pipe3.mediums[3].n71(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass fraction of air\"; +// protected Real pipe3.mediums[3].n72(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Steam water mass fraction of saturation boundary in kg_water/kg_moistair\"; +// protected Real pipe3.mediums[3].n73(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Steam water mass content of saturation boundary in kg_water/kg_dryair\"; +// protected Real pipe3.mediums[3].n74(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"partial saturation pressure of steam\"; +// Real pipe3.mediums[4].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, start = pipe3.ps_start[4], nominal = 1e5, stateSelect = StateSelect.prefer) \"Absolute pressure of medium\"; +// Real pipe3.mediums[4].Xi[1](quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0, start = pipe3.X_start[1], stateSelect = StateSelect.prefer) \"Structurally independent mass fractions\"; +// Real pipe3.mediums[4].h(quantity = \"SpecificEnergy\", unit = \"J/kg\", start = pipe3.h_start) \"Specific enthalpy of medium\"; +// Real pipe3.mediums[4].d(quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0) \"Density of medium\"; +// Real pipe3.mediums[4].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = pipe3.T_start, nominal = 300.0, stateSelect = StateSelect.prefer) \"Temperature of medium\"; +// Real pipe3.mediums[4].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe3.mediums[4].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe3.mediums[4].u(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -1e8, max = 1e8, nominal = 1e6) \"Specific internal energy of medium\"; +// Real pipe3.mediums[4].R(quantity = \"SpecificHeatCapacity\", unit = \"J/(kg.K)\", min = 0.0, max = 1e7, start = 1000.0, nominal = 1000.0) \"Gas constant (of mixture if applicable)\"; +// Real pipe3.mediums[4].MM(quantity = \"MolarMass\", unit = \"kg/mol\", min = 0.001, max = 0.25, nominal = 0.032) \"Molar mass (of mixture or single fluid)\"; +// Real pipe3.mediums[4].state.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Absolute pressure of medium\"; +// Real pipe3.mediums[4].state.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature of medium\"; +// Real pipe3.mediums[4].state.X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe3.mediums[4].state.X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final parameter Boolean pipe3.mediums[4].preferredMediumStates = true \"= true if StateSelect.prefer shall be used for the independent property variables of the medium\"; +// final parameter Boolean pipe3.mediums[4].standardOrderComponents = true \"If true, and reducedX = true, the last element of X will be computed from the other ones\"; +// Real pipe3.mediums[4].T_degC(quantity = \"ThermodynamicTemperature\", unit = \"degC\") = Modelica.SIunits.Conversions.to_degC(pipe3.mediums[4].T) \"Temperature of medium in [degC]\"; +// Real pipe3.mediums[4].p_bar(quantity = \"Pressure\", unit = \"bar\") = Modelica.SIunits.Conversions.to_bar(pipe3.mediums[4].p) \"Absolute pressure of medium in [bar]\"; +// Real pipe3.mediums[4].x_water(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass of total water/mass of dry air\"; +// Real pipe3.mediums[4].phi \"Relative humidity\"; +// protected Real pipe3.mediums[4].n69(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass fraction of liquid or solid water\"; +// protected Real pipe3.mediums[4].n70(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass fraction of steam water\"; +// protected Real pipe3.mediums[4].n71(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass fraction of air\"; +// protected Real pipe3.mediums[4].n72(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Steam water mass fraction of saturation boundary in kg_water/kg_moistair\"; +// protected Real pipe3.mediums[4].n73(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Steam water mass content of saturation boundary in kg_water/kg_dryair\"; +// protected Real pipe3.mediums[4].n74(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"partial saturation pressure of steam\"; +// Real pipe3.mediums[5].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, start = pipe3.ps_start[5], nominal = 1e5, stateSelect = StateSelect.prefer) \"Absolute pressure of medium\"; +// Real pipe3.mediums[5].Xi[1](quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0, start = pipe3.X_start[1], stateSelect = StateSelect.prefer) \"Structurally independent mass fractions\"; +// Real pipe3.mediums[5].h(quantity = \"SpecificEnergy\", unit = \"J/kg\", start = pipe3.h_start) \"Specific enthalpy of medium\"; +// Real pipe3.mediums[5].d(quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0) \"Density of medium\"; +// Real pipe3.mediums[5].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = pipe3.T_start, nominal = 300.0, stateSelect = StateSelect.prefer) \"Temperature of medium\"; +// Real pipe3.mediums[5].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe3.mediums[5].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe3.mediums[5].u(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -1e8, max = 1e8, nominal = 1e6) \"Specific internal energy of medium\"; +// Real pipe3.mediums[5].R(quantity = \"SpecificHeatCapacity\", unit = \"J/(kg.K)\", min = 0.0, max = 1e7, start = 1000.0, nominal = 1000.0) \"Gas constant (of mixture if applicable)\"; +// Real pipe3.mediums[5].MM(quantity = \"MolarMass\", unit = \"kg/mol\", min = 0.001, max = 0.25, nominal = 0.032) \"Molar mass (of mixture or single fluid)\"; +// Real pipe3.mediums[5].state.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Absolute pressure of medium\"; +// Real pipe3.mediums[5].state.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature of medium\"; +// Real pipe3.mediums[5].state.X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe3.mediums[5].state.X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final parameter Boolean pipe3.mediums[5].preferredMediumStates = true \"= true if StateSelect.prefer shall be used for the independent property variables of the medium\"; +// final parameter Boolean pipe3.mediums[5].standardOrderComponents = true \"If true, and reducedX = true, the last element of X will be computed from the other ones\"; +// Real pipe3.mediums[5].T_degC(quantity = \"ThermodynamicTemperature\", unit = \"degC\") = Modelica.SIunits.Conversions.to_degC(pipe3.mediums[5].T) \"Temperature of medium in [degC]\"; +// Real pipe3.mediums[5].p_bar(quantity = \"Pressure\", unit = \"bar\") = Modelica.SIunits.Conversions.to_bar(pipe3.mediums[5].p) \"Absolute pressure of medium in [bar]\"; +// Real pipe3.mediums[5].x_water(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass of total water/mass of dry air\"; +// Real pipe3.mediums[5].phi \"Relative humidity\"; +// protected Real pipe3.mediums[5].n69(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass fraction of liquid or solid water\"; +// protected Real pipe3.mediums[5].n70(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass fraction of steam water\"; +// protected Real pipe3.mediums[5].n71(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass fraction of air\"; +// protected Real pipe3.mediums[5].n72(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Steam water mass fraction of saturation boundary in kg_water/kg_moistair\"; +// protected Real pipe3.mediums[5].n73(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Steam water mass content of saturation boundary in kg_water/kg_dryair\"; +// protected Real pipe3.mediums[5].n74(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"partial saturation pressure of steam\"; +// Real pipe3.mb_flows[1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) \"Mass flow rate, source or sink\"; +// Real pipe3.mb_flows[2](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) \"Mass flow rate, source or sink\"; +// Real pipe3.mb_flows[3](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) \"Mass flow rate, source or sink\"; +// Real pipe3.mb_flows[4](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) \"Mass flow rate, source or sink\"; +// Real pipe3.mb_flows[5](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) \"Mass flow rate, source or sink\"; +// Real pipe3.mbXi_flows[1,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) \"Independent mass flow rates, source or sink\"; +// Real pipe3.mbXi_flows[2,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) \"Independent mass flow rates, source or sink\"; +// Real pipe3.mbXi_flows[3,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) \"Independent mass flow rates, source or sink\"; +// Real pipe3.mbXi_flows[4,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) \"Independent mass flow rates, source or sink\"; +// Real pipe3.mbXi_flows[5,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) \"Independent mass flow rates, source or sink\"; +// Real pipe3.Hb_flows[1](quantity = \"EnthalpyFlowRate\", unit = \"W\") \"Enthalpy flow rate, source or sink\"; +// Real pipe3.Hb_flows[2](quantity = \"EnthalpyFlowRate\", unit = \"W\") \"Enthalpy flow rate, source or sink\"; +// Real pipe3.Hb_flows[3](quantity = \"EnthalpyFlowRate\", unit = \"W\") \"Enthalpy flow rate, source or sink\"; +// Real pipe3.Hb_flows[4](quantity = \"EnthalpyFlowRate\", unit = \"W\") \"Enthalpy flow rate, source or sink\"; +// Real pipe3.Hb_flows[5](quantity = \"EnthalpyFlowRate\", unit = \"W\") \"Enthalpy flow rate, source or sink\"; +// Real pipe3.Qb_flows[1](quantity = \"Power\", unit = \"W\") \"Heat flow rate, source or sink\"; +// Real pipe3.Qb_flows[2](quantity = \"Power\", unit = \"W\") \"Heat flow rate, source or sink\"; +// Real pipe3.Qb_flows[3](quantity = \"Power\", unit = \"W\") \"Heat flow rate, source or sink\"; +// Real pipe3.Qb_flows[4](quantity = \"Power\", unit = \"W\") \"Heat flow rate, source or sink\"; +// Real pipe3.Qb_flows[5](quantity = \"Power\", unit = \"W\") \"Heat flow rate, source or sink\"; +// Real pipe3.Wb_flows[1](quantity = \"Power\", unit = \"W\") \"Mechanical power, p*der(V) etc.\"; +// Real pipe3.Wb_flows[2](quantity = \"Power\", unit = \"W\") \"Mechanical power, p*der(V) etc.\"; +// Real pipe3.Wb_flows[3](quantity = \"Power\", unit = \"W\") \"Mechanical power, p*der(V) etc.\"; +// Real pipe3.Wb_flows[4](quantity = \"Power\", unit = \"W\") \"Mechanical power, p*der(V) etc.\"; +// Real pipe3.Wb_flows[5](quantity = \"Power\", unit = \"W\") \"Mechanical power, p*der(V) etc.\"; +// protected final parameter Boolean pipe3.n75 = true \"= true to set up initial equations for pressure\"; +// final parameter Real pipe3.lengths[1](quantity = \"Length\", unit = \"m\") = 5.0 \"lengths of flow segments\"; +// final parameter Real pipe3.lengths[2](quantity = \"Length\", unit = \"m\") = 5.0 \"lengths of flow segments\"; +// final parameter Real pipe3.lengths[3](quantity = \"Length\", unit = \"m\") = 5.0 \"lengths of flow segments\"; +// final parameter Real pipe3.lengths[4](quantity = \"Length\", unit = \"m\") = 5.0 \"lengths of flow segments\"; +// final parameter Real pipe3.lengths[5](quantity = \"Length\", unit = \"m\") = 5.0 \"lengths of flow segments\"; +// final parameter Real pipe3.crossAreas[1](quantity = \"Area\", unit = \"m2\") = pipe3.crossArea \"cross flow areas of flow segments\"; +// final parameter Real pipe3.crossAreas[2](quantity = \"Area\", unit = \"m2\") = pipe3.crossArea \"cross flow areas of flow segments\"; +// final parameter Real pipe3.crossAreas[3](quantity = \"Area\", unit = \"m2\") = pipe3.crossArea \"cross flow areas of flow segments\"; +// final parameter Real pipe3.crossAreas[4](quantity = \"Area\", unit = \"m2\") = pipe3.crossArea \"cross flow areas of flow segments\"; +// final parameter Real pipe3.crossAreas[5](quantity = \"Area\", unit = \"m2\") = pipe3.crossArea \"cross flow areas of flow segments\"; +// final parameter Real pipe3.dimensions[1](quantity = \"Length\", unit = \"m\") = 4.0 * pipe3.crossArea / pipe3.perimeter \"hydraulic diameters of flow segments\"; +// final parameter Real pipe3.dimensions[2](quantity = \"Length\", unit = \"m\") = 4.0 * pipe3.crossArea / pipe3.perimeter \"hydraulic diameters of flow segments\"; +// final parameter Real pipe3.dimensions[3](quantity = \"Length\", unit = \"m\") = 4.0 * pipe3.crossArea / pipe3.perimeter \"hydraulic diameters of flow segments\"; +// final parameter Real pipe3.dimensions[4](quantity = \"Length\", unit = \"m\") = 4.0 * pipe3.crossArea / pipe3.perimeter \"hydraulic diameters of flow segments\"; +// final parameter Real pipe3.dimensions[5](quantity = \"Length\", unit = \"m\") = 4.0 * pipe3.crossArea / pipe3.perimeter \"hydraulic diameters of flow segments\"; +// final parameter Real pipe3.roughnesses[1](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) = pipe3.roughness \"Average heights of surface asperities\"; +// final parameter Real pipe3.roughnesses[2](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) = pipe3.roughness \"Average heights of surface asperities\"; +// final parameter Real pipe3.roughnesses[3](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) = pipe3.roughness \"Average heights of surface asperities\"; +// final parameter Real pipe3.roughnesses[4](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) = pipe3.roughness \"Average heights of surface asperities\"; +// final parameter Real pipe3.roughnesses[5](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) = pipe3.roughness \"Average heights of surface asperities\"; +// final parameter Real pipe3.dheights[1](quantity = \"Length\", unit = \"m\") = 5.0 \"Differences in heights of flow segments\"; +// final parameter Real pipe3.dheights[2](quantity = \"Length\", unit = \"m\") = 5.0 \"Differences in heights of flow segments\"; +// final parameter Real pipe3.dheights[3](quantity = \"Length\", unit = \"m\") = 5.0 \"Differences in heights of flow segments\"; +// final parameter Real pipe3.dheights[4](quantity = \"Length\", unit = \"m\") = 5.0 \"Differences in heights of flow segments\"; +// final parameter Real pipe3.dheights[5](quantity = \"Length\", unit = \"m\") = 5.0 \"Differences in heights of flow segments\"; +// final parameter enumeration(DynamicFreeInitial, FixedInitial, SteadyStateInitial, SteadyState) pipe3.momentumDynamics = Modelica.Fluid.Types.Dynamics.SteadyStateInitial \"Formulation of momentum balances\"; +// final parameter Real pipe3.m_flow_start(quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) = 0.01 \"Start value for mass flow rate\"; +// final parameter Integer pipe3.nNodes(min = 1) = 5 \"Number of discrete flow volumes\"; +// final parameter enumeration(av_vb, a_v_b, av_b, a_vb) pipe3.modelStructure = Modelica.Fluid.Types.ModelStructure.a_v_b \"Determines whether flow or volume models are present at the ports\"; +// final parameter Boolean pipe3.useLumpedPressure = false \"=true to lump pressure states together\"; +// final parameter Integer pipe3.nFM = 6 \"number of flow models in flowModel\"; // final parameter Integer pipe3.nFMDistributed = 6; // final parameter Integer pipe3.nFMLumped = 2; -// final parameter Integer pipe3.iLumped = 3; -// final parameter Boolean pipe3.useInnerPortProperties = false; -// Real pipe3.state_a.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe3.state_a.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0); -// Real pipe3.state_a.X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe3.state_a.X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// Real pipe3.state_b.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe3.state_b.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0); -// Real pipe3.state_b.X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe3.state_b.X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// Real pipe3.statesFM[1].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe3.statesFM[1].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0); -// Real pipe3.statesFM[1].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe3.statesFM[1].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// Real pipe3.statesFM[2].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe3.statesFM[2].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0); -// Real pipe3.statesFM[2].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe3.statesFM[2].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// Real pipe3.statesFM[3].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe3.statesFM[3].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0); -// Real pipe3.statesFM[3].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe3.statesFM[3].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// Real pipe3.statesFM[4].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe3.statesFM[4].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0); -// Real pipe3.statesFM[4].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe3.statesFM[4].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// Real pipe3.statesFM[5].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe3.statesFM[5].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0); -// Real pipe3.statesFM[5].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe3.statesFM[5].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// Real pipe3.statesFM[6].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe3.statesFM[6].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0); -// Real pipe3.statesFM[6].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe3.statesFM[6].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// Real pipe3.statesFM[7].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe3.statesFM[7].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0); -// Real pipe3.statesFM[7].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe3.statesFM[7].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final parameter Boolean pipe3.flowModel.from_dp = true; -// final parameter Integer pipe3.flowModel.n = 7; -// final Real pipe3.flowModel.states[1].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe3.statesFM[1].p; -// final Real pipe3.flowModel.states[1].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe3.statesFM[1].T; -// final Real pipe3.flowModel.states[1].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// final Real pipe3.flowModel.states[1].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final Real pipe3.flowModel.states[2].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe3.statesFM[2].p; -// final Real pipe3.flowModel.states[2].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe3.statesFM[2].T; -// final Real pipe3.flowModel.states[2].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// final Real pipe3.flowModel.states[2].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final Real pipe3.flowModel.states[3].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe3.statesFM[3].p; -// final Real pipe3.flowModel.states[3].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe3.statesFM[3].T; -// final Real pipe3.flowModel.states[3].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// final Real pipe3.flowModel.states[3].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final Real pipe3.flowModel.states[4].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe3.statesFM[4].p; -// final Real pipe3.flowModel.states[4].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe3.statesFM[4].T; -// final Real pipe3.flowModel.states[4].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// final Real pipe3.flowModel.states[4].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final Real pipe3.flowModel.states[5].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe3.statesFM[5].p; -// final Real pipe3.flowModel.states[5].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe3.statesFM[5].T; -// final Real pipe3.flowModel.states[5].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// final Real pipe3.flowModel.states[5].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final Real pipe3.flowModel.states[6].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe3.statesFM[6].p; -// final Real pipe3.flowModel.states[6].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe3.statesFM[6].T; -// final Real pipe3.flowModel.states[6].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// final Real pipe3.flowModel.states[6].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final Real pipe3.flowModel.states[7].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe3.statesFM[7].p; -// final Real pipe3.flowModel.states[7].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe3.statesFM[7].T; -// final Real pipe3.flowModel.states[7].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// final Real pipe3.flowModel.states[7].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final Real pipe3.flowModel.vs[1](quantity = \"Velocity\", unit = \"m/s\"); -// final Real pipe3.flowModel.vs[2](quantity = \"Velocity\", unit = \"m/s\"); -// final Real pipe3.flowModel.vs[3](quantity = \"Velocity\", unit = \"m/s\"); -// final Real pipe3.flowModel.vs[4](quantity = \"Velocity\", unit = \"m/s\"); -// final Real pipe3.flowModel.vs[5](quantity = \"Velocity\", unit = \"m/s\"); -// final Real pipe3.flowModel.vs[6](quantity = \"Velocity\", unit = \"m/s\"); -// final Real pipe3.flowModel.vs[7](quantity = \"Velocity\", unit = \"m/s\"); -// final parameter Real pipe3.flowModel.nParallel = pipe3.nParallel; -// final Real pipe3.flowModel.crossAreas[1](quantity = \"Area\", unit = \"m2\"); -// final Real pipe3.flowModel.crossAreas[2](quantity = \"Area\", unit = \"m2\"); -// final Real pipe3.flowModel.crossAreas[3](quantity = \"Area\", unit = \"m2\"); -// final Real pipe3.flowModel.crossAreas[4](quantity = \"Area\", unit = \"m2\"); -// final Real pipe3.flowModel.crossAreas[5](quantity = \"Area\", unit = \"m2\"); -// final Real pipe3.flowModel.crossAreas[6](quantity = \"Area\", unit = \"m2\"); -// final Real pipe3.flowModel.crossAreas[7](quantity = \"Area\", unit = \"m2\"); -// final Real pipe3.flowModel.dimensions[1](quantity = \"Length\", unit = \"m\"); -// final Real pipe3.flowModel.dimensions[2](quantity = \"Length\", unit = \"m\"); -// final Real pipe3.flowModel.dimensions[3](quantity = \"Length\", unit = \"m\"); -// final Real pipe3.flowModel.dimensions[4](quantity = \"Length\", unit = \"m\"); -// final Real pipe3.flowModel.dimensions[5](quantity = \"Length\", unit = \"m\"); -// final Real pipe3.flowModel.dimensions[6](quantity = \"Length\", unit = \"m\"); -// final Real pipe3.flowModel.dimensions[7](quantity = \"Length\", unit = \"m\"); -// final Real pipe3.flowModel.roughnesses[1](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); -// final Real pipe3.flowModel.roughnesses[2](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); -// final Real pipe3.flowModel.roughnesses[3](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); -// final Real pipe3.flowModel.roughnesses[4](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); -// final Real pipe3.flowModel.roughnesses[5](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); -// final Real pipe3.flowModel.roughnesses[6](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); -// final Real pipe3.flowModel.roughnesses[7](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); -// final Real pipe3.flowModel.dheights[1](quantity = \"Length\", unit = \"m\"); -// final Real pipe3.flowModel.dheights[2](quantity = \"Length\", unit = \"m\"); -// final Real pipe3.flowModel.dheights[3](quantity = \"Length\", unit = \"m\"); -// final Real pipe3.flowModel.dheights[4](quantity = \"Length\", unit = \"m\"); -// final Real pipe3.flowModel.dheights[5](quantity = \"Length\", unit = \"m\"); -// final Real pipe3.flowModel.dheights[6](quantity = \"Length\", unit = \"m\"); -// final parameter Real pipe3.flowModel.g(quantity = \"Acceleration\", unit = \"m/s2\") = system.g; -// final parameter Boolean pipe3.flowModel.allowFlowReversal = true; -// final parameter enumeration(DynamicFreeInitial, FixedInitial, SteadyStateInitial, SteadyState) pipe3.flowModel.momentumDynamics = Modelica.Fluid.Types.Dynamics.SteadyStateInitial; -// final parameter Real pipe3.flowModel.m_flow_start(quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0) = 0.01; -// final parameter Real pipe3.flowModel.p_a_start(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe3.p_a_start; -// final parameter Real pipe3.flowModel.p_b_start(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe3.p_b_start; -// final parameter Integer pipe3.flowModel.m = 6; -// final Real pipe3.flowModel.pathLengths[1](quantity = \"Length\", unit = \"m\"); -// final Real pipe3.flowModel.pathLengths[2](quantity = \"Length\", unit = \"m\"); -// final Real pipe3.flowModel.pathLengths[3](quantity = \"Length\", unit = \"m\"); -// final Real pipe3.flowModel.pathLengths[4](quantity = \"Length\", unit = \"m\"); -// final Real pipe3.flowModel.pathLengths[5](quantity = \"Length\", unit = \"m\"); -// final Real pipe3.flowModel.pathLengths[6](quantity = \"Length\", unit = \"m\"); -// Real pipe3.flowModel.m_flows[1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -9.999999999999999e+59, max = 100000.0, start = 0.01, stateSelect = StateSelect.prefer); -// Real pipe3.flowModel.m_flows[2](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -9.999999999999999e+59, max = 100000.0, start = 0.01, stateSelect = StateSelect.prefer); -// Real pipe3.flowModel.m_flows[3](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -9.999999999999999e+59, max = 100000.0, start = 0.01, stateSelect = StateSelect.prefer); -// Real pipe3.flowModel.m_flows[4](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -9.999999999999999e+59, max = 100000.0, start = 0.01, stateSelect = StateSelect.prefer); -// Real pipe3.flowModel.m_flows[5](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -9.999999999999999e+59, max = 100000.0, start = 0.01, stateSelect = StateSelect.prefer); -// Real pipe3.flowModel.m_flows[6](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -9.999999999999999e+59, max = 100000.0, start = 0.01, stateSelect = StateSelect.prefer); -// Real pipe3.flowModel.Is[1](quantity = \"Momentum\", unit = \"kg.m/s\"); -// Real pipe3.flowModel.Is[2](quantity = \"Momentum\", unit = \"kg.m/s\"); -// Real pipe3.flowModel.Is[3](quantity = \"Momentum\", unit = \"kg.m/s\"); -// Real pipe3.flowModel.Is[4](quantity = \"Momentum\", unit = \"kg.m/s\"); -// Real pipe3.flowModel.Is[5](quantity = \"Momentum\", unit = \"kg.m/s\"); -// Real pipe3.flowModel.Is[6](quantity = \"Momentum\", unit = \"kg.m/s\"); -// Real pipe3.flowModel.Ib_flows[1](quantity = \"Force\", unit = \"N\"); -// Real pipe3.flowModel.Ib_flows[2](quantity = \"Force\", unit = \"N\"); -// Real pipe3.flowModel.Ib_flows[3](quantity = \"Force\", unit = \"N\"); -// Real pipe3.flowModel.Ib_flows[4](quantity = \"Force\", unit = \"N\"); -// Real pipe3.flowModel.Ib_flows[5](quantity = \"Force\", unit = \"N\"); -// Real pipe3.flowModel.Ib_flows[6](quantity = \"Force\", unit = \"N\"); -// Real pipe3.flowModel.Fs_p[1](quantity = \"Force\", unit = \"N\"); -// Real pipe3.flowModel.Fs_p[2](quantity = \"Force\", unit = \"N\"); -// Real pipe3.flowModel.Fs_p[3](quantity = \"Force\", unit = \"N\"); -// Real pipe3.flowModel.Fs_p[4](quantity = \"Force\", unit = \"N\"); -// Real pipe3.flowModel.Fs_p[5](quantity = \"Force\", unit = \"N\"); -// Real pipe3.flowModel.Fs_p[6](quantity = \"Force\", unit = \"N\"); -// Real pipe3.flowModel.Fs_fg[1](quantity = \"Force\", unit = \"N\"); -// Real pipe3.flowModel.Fs_fg[2](quantity = \"Force\", unit = \"N\"); -// Real pipe3.flowModel.Fs_fg[3](quantity = \"Force\", unit = \"N\"); -// Real pipe3.flowModel.Fs_fg[4](quantity = \"Force\", unit = \"N\"); -// Real pipe3.flowModel.Fs_fg[5](quantity = \"Force\", unit = \"N\"); -// Real pipe3.flowModel.Fs_fg[6](quantity = \"Force\", unit = \"N\"); -// final parameter Boolean pipe3.flowModel.useUpstreamScheme = true; -// final parameter Boolean pipe3.flowModel.use_Ib_flows = true; -// Real pipe3.flowModel.rhos[1](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe3.flowModel.rhos[2](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe3.flowModel.rhos[3](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe3.flowModel.rhos[4](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe3.flowModel.rhos[5](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe3.flowModel.rhos[6](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe3.flowModel.rhos[7](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe3.flowModel.rhos_act[1](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe3.flowModel.rhos_act[2](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe3.flowModel.rhos_act[3](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe3.flowModel.rhos_act[4](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe3.flowModel.rhos_act[5](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe3.flowModel.rhos_act[6](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe3.flowModel.mus[1](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 100000000.0, start = 0.001, nominal = 0.001); -// Real pipe3.flowModel.mus[2](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 100000000.0, start = 0.001, nominal = 0.001); -// Real pipe3.flowModel.mus[3](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 100000000.0, start = 0.001, nominal = 0.001); -// Real pipe3.flowModel.mus[4](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 100000000.0, start = 0.001, nominal = 0.001); -// Real pipe3.flowModel.mus[5](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 100000000.0, start = 0.001, nominal = 0.001); -// Real pipe3.flowModel.mus[6](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 100000000.0, start = 0.001, nominal = 0.001); -// Real pipe3.flowModel.mus[7](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 100000000.0, start = 0.001, nominal = 0.001); -// Real pipe3.flowModel.mus_act[1](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 100000000.0, start = 0.001, nominal = 0.001); -// Real pipe3.flowModel.mus_act[2](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 100000000.0, start = 0.001, nominal = 0.001); -// Real pipe3.flowModel.mus_act[3](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 100000000.0, start = 0.001, nominal = 0.001); -// Real pipe3.flowModel.mus_act[4](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 100000000.0, start = 0.001, nominal = 0.001); -// Real pipe3.flowModel.mus_act[5](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 100000000.0, start = 0.001, nominal = 0.001); -// Real pipe3.flowModel.mus_act[6](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 100000000.0, start = 0.001, nominal = 0.001); -// Real pipe3.flowModel.dps_fg[1](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", start = (pipe3.flowModel.p_a_start - pipe3.flowModel.p_b_start) / 6.0); -// Real pipe3.flowModel.dps_fg[2](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", start = (pipe3.flowModel.p_a_start - pipe3.flowModel.p_b_start) / 6.0); -// Real pipe3.flowModel.dps_fg[3](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", start = (pipe3.flowModel.p_a_start - pipe3.flowModel.p_b_start) / 6.0); -// Real pipe3.flowModel.dps_fg[4](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", start = (pipe3.flowModel.p_a_start - pipe3.flowModel.p_b_start) / 6.0); -// Real pipe3.flowModel.dps_fg[5](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", start = (pipe3.flowModel.p_a_start - pipe3.flowModel.p_b_start) / 6.0); -// Real pipe3.flowModel.dps_fg[6](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", start = (pipe3.flowModel.p_a_start - pipe3.flowModel.p_b_start) / 6.0); -// final parameter Real pipe3.flowModel.Re_turbulent(quantity = \"ReynoldsNumber\", unit = \"1\") = 4000.0; -// final parameter Boolean pipe3.flowModel.show_Res = false; -// protected final parameter Boolean pipe3.flowModel.n76 = false; -// protected parameter Real pipe3.flowModel.n77(quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0) = 1.196838693581092; -// protected final parameter Boolean pipe3.flowModel.n78 = false; -// protected parameter Real pipe3.flowModel.n79(quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0) = 1.823286547365138e-05; -// Real pipe3.flowModel.pathLengths_internal[1](quantity = \"Length\", unit = \"m\"); -// Real pipe3.flowModel.pathLengths_internal[2](quantity = \"Length\", unit = \"m\"); -// Real pipe3.flowModel.pathLengths_internal[3](quantity = \"Length\", unit = \"m\"); -// Real pipe3.flowModel.pathLengths_internal[4](quantity = \"Length\", unit = \"m\"); -// Real pipe3.flowModel.pathLengths_internal[5](quantity = \"Length\", unit = \"m\"); -// Real pipe3.flowModel.pathLengths_internal[6](quantity = \"Length\", unit = \"m\"); -// Real pipe3.flowModel.Res_turbulent_internal[1](quantity = \"ReynoldsNumber\", unit = \"1\"); -// Real pipe3.flowModel.Res_turbulent_internal[2](quantity = \"ReynoldsNumber\", unit = \"1\"); -// Real pipe3.flowModel.Res_turbulent_internal[3](quantity = \"ReynoldsNumber\", unit = \"1\"); -// Real pipe3.flowModel.Res_turbulent_internal[4](quantity = \"ReynoldsNumber\", unit = \"1\"); -// Real pipe3.flowModel.Res_turbulent_internal[5](quantity = \"ReynoldsNumber\", unit = \"1\"); -// Real pipe3.flowModel.Res_turbulent_internal[6](quantity = \"ReynoldsNumber\", unit = \"1\"); -// parameter Real pipe3.flowModel.dp_nominal(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, start = 1.0, fixed = false, nominal = 100000.0); -// parameter Real pipe3.flowModel.m_flow_nominal(quantity = \"MassFlowRate\", unit = \"kg/s\") = 100.0 * pipe3.flowModel.m_flow_small; -// parameter Real pipe3.flowModel.m_flow_small(quantity = \"MassFlowRate\", unit = \"kg/s\") = system.m_flow_small; -// protected parameter Real pipe3.flowModel.n80(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, start = 1.0, fixed = false, nominal = 100000.0); -// protected final parameter Boolean pipe3.flowModel.n81 = false; -// protected final parameter Boolean pipe3.flowModel.n82 = false; -// protected Real pipe3.flowModel.n83[1](quantity = \"Length\", unit = \"m\"); -// protected Real pipe3.flowModel.n83[2](quantity = \"Length\", unit = \"m\"); -// protected Real pipe3.flowModel.n83[3](quantity = \"Length\", unit = \"m\"); -// protected Real pipe3.flowModel.n83[4](quantity = \"Length\", unit = \"m\"); -// protected Real pipe3.flowModel.n83[5](quantity = \"Length\", unit = \"m\"); -// protected Real pipe3.flowModel.n83[6](quantity = \"Length\", unit = \"m\"); -// protected Real pipe3.flowModel.n84(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 100000.0) = Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.flowModel.WallFriction.pressureLoss_m_flow(pipe3.flowModel.m_flow_nominal / pipe3.flowModel.nParallel, pipe3.flowModel.n77, pipe3.flowModel.n77, pipe3.flowModel.n79, pipe3.flowModel.n79, pipe3.flowModel.pathLengths_internal[1], pipe3.flowModel.n83[1], (pipe3.flowModel.crossAreas[1] + pipe3.flowModel.crossAreas[2]) / 2.0, (pipe3.flowModel.roughnesses[1] + pipe3.flowModel.roughnesses[2]) / 2.0, pipe3.flowModel.m_flow_small / pipe3.flowModel.nParallel, pipe3.flowModel.Res_turbulent_internal[1]) + Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.flowModel.WallFriction.pressureLoss_m_flow(pipe3.flowModel.m_flow_nominal / pipe3.flowModel.nParallel, pipe3.flowModel.n77, pipe3.flowModel.n77, pipe3.flowModel.n79, pipe3.flowModel.n79, pipe3.flowModel.pathLengths_internal[2], pipe3.flowModel.n83[2], (pipe3.flowModel.crossAreas[2] + pipe3.flowModel.crossAreas[3]) / 2.0, (pipe3.flowModel.roughnesses[2] + pipe3.flowModel.roughnesses[3]) / 2.0, pipe3.flowModel.m_flow_small / pipe3.flowModel.nParallel, pipe3.flowModel.Res_turbulent_internal[2]) + Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.flowModel.WallFriction.pressureLoss_m_flow(pipe3.flowModel.m_flow_nominal / pipe3.flowModel.nParallel, pipe3.flowModel.n77, pipe3.flowModel.n77, pipe3.flowModel.n79, pipe3.flowModel.n79, pipe3.flowModel.pathLengths_internal[3], pipe3.flowModel.n83[3], (pipe3.flowModel.crossAreas[3] + pipe3.flowModel.crossAreas[4]) / 2.0, (pipe3.flowModel.roughnesses[3] + pipe3.flowModel.roughnesses[4]) / 2.0, pipe3.flowModel.m_flow_small / pipe3.flowModel.nParallel, pipe3.flowModel.Res_turbulent_internal[3]) + Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.flowModel.WallFriction.pressureLoss_m_flow(pipe3.flowModel.m_flow_nominal / pipe3.flowModel.nParallel, pipe3.flowModel.n77, pipe3.flowModel.n77, pipe3.flowModel.n79, pipe3.flowModel.n79, pipe3.flowModel.pathLengths_internal[4], pipe3.flowModel.n83[4], (pipe3.flowModel.crossAreas[4] + pipe3.flowModel.crossAreas[5]) / 2.0, (pipe3.flowModel.roughnesses[4] + pipe3.flowModel.roughnesses[5]) / 2.0, pipe3.flowModel.m_flow_small / pipe3.flowModel.nParallel, pipe3.flowModel.Res_turbulent_internal[4]) + Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.flowModel.WallFriction.pressureLoss_m_flow(pipe3.flowModel.m_flow_nominal / pipe3.flowModel.nParallel, pipe3.flowModel.n77, pipe3.flowModel.n77, pipe3.flowModel.n79, pipe3.flowModel.n79, pipe3.flowModel.pathLengths_internal[5], pipe3.flowModel.n83[5], (pipe3.flowModel.crossAreas[5] + pipe3.flowModel.crossAreas[6]) / 2.0, (pipe3.flowModel.roughnesses[5] + pipe3.flowModel.roughnesses[6]) / 2.0, pipe3.flowModel.m_flow_small / pipe3.flowModel.nParallel, pipe3.flowModel.Res_turbulent_internal[5]) + Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.flowModel.WallFriction.pressureLoss_m_flow(pipe3.flowModel.m_flow_nominal / pipe3.flowModel.nParallel, pipe3.flowModel.n77, pipe3.flowModel.n77, pipe3.flowModel.n79, pipe3.flowModel.n79, pipe3.flowModel.pathLengths_internal[6], pipe3.flowModel.n83[6], (pipe3.flowModel.crossAreas[6] + pipe3.flowModel.crossAreas[7]) / 2.0, (pipe3.flowModel.roughnesses[6] + pipe3.flowModel.roughnesses[7]) / 2.0, pipe3.flowModel.m_flow_small / pipe3.flowModel.nParallel, pipe3.flowModel.Res_turbulent_internal[6]); -// Real pipe3.m_flows[1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -9.999999999999999e+59, max = 100000.0, start = 0.01); -// Real pipe3.m_flows[2](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -9.999999999999999e+59, max = 100000.0, start = 0.01); -// Real pipe3.m_flows[3](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -9.999999999999999e+59, max = 100000.0, start = 0.01); -// Real pipe3.m_flows[4](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -9.999999999999999e+59, max = 100000.0, start = 0.01); -// Real pipe3.m_flows[5](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -9.999999999999999e+59, max = 100000.0, start = 0.01); -// Real pipe3.m_flows[6](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -9.999999999999999e+59, max = 100000.0, start = 0.01); -// Real pipe3.mXi_flows[1,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0); -// Real pipe3.mXi_flows[2,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0); -// Real pipe3.mXi_flows[3,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0); -// Real pipe3.mXi_flows[4,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0); -// Real pipe3.mXi_flows[5,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0); -// Real pipe3.mXi_flows[6,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0); -// Real pipe3.H_flows[1](quantity = \"EnthalpyFlowRate\", unit = \"W\", min = -100000000.0, max = 100000000.0, nominal = 1000.0); -// Real pipe3.H_flows[2](quantity = \"EnthalpyFlowRate\", unit = \"W\", min = -100000000.0, max = 100000000.0, nominal = 1000.0); -// Real pipe3.H_flows[3](quantity = \"EnthalpyFlowRate\", unit = \"W\", min = -100000000.0, max = 100000000.0, nominal = 1000.0); -// Real pipe3.H_flows[4](quantity = \"EnthalpyFlowRate\", unit = \"W\", min = -100000000.0, max = 100000000.0, nominal = 1000.0); -// Real pipe3.H_flows[5](quantity = \"EnthalpyFlowRate\", unit = \"W\", min = -100000000.0, max = 100000000.0, nominal = 1000.0); -// Real pipe3.H_flows[6](quantity = \"EnthalpyFlowRate\", unit = \"W\", min = -100000000.0, max = 100000000.0, nominal = 1000.0); -// Real pipe3.vs[1](quantity = \"Velocity\", unit = \"m/s\"); -// Real pipe3.vs[2](quantity = \"Velocity\", unit = \"m/s\"); -// Real pipe3.vs[3](quantity = \"Velocity\", unit = \"m/s\"); -// Real pipe3.vs[4](quantity = \"Velocity\", unit = \"m/s\"); -// Real pipe3.vs[5](quantity = \"Velocity\", unit = \"m/s\"); -// protected Real pipe3.n85[1](quantity = \"Length\", unit = \"m\"); -// protected Real pipe3.n85[2](quantity = \"Length\", unit = \"m\"); -// protected Real pipe3.n85[3](quantity = \"Length\", unit = \"m\"); -// protected Real pipe3.n85[4](quantity = \"Length\", unit = \"m\"); -// protected Real pipe3.n85[5](quantity = \"Length\", unit = \"m\"); -// protected Real pipe3.n85[6](quantity = \"Length\", unit = \"m\"); -// protected Real pipe3.n86[1](quantity = \"Length\", unit = \"m\"); -// protected Real pipe3.n86[2](quantity = \"Length\", unit = \"m\"); -// protected Real pipe3.n86[3](quantity = \"Length\", unit = \"m\"); -// protected Real pipe3.n86[4](quantity = \"Length\", unit = \"m\"); -// protected Real pipe3.n86[5](quantity = \"Length\", unit = \"m\"); -// protected Real pipe3.n86[6](quantity = \"Length\", unit = \"m\"); -// protected Real pipe3.n87[1](quantity = \"Area\", unit = \"m2\"); -// protected Real pipe3.n87[2](quantity = \"Area\", unit = \"m2\"); -// protected Real pipe3.n87[3](quantity = \"Area\", unit = \"m2\"); -// protected Real pipe3.n87[4](quantity = \"Area\", unit = \"m2\"); -// protected Real pipe3.n87[5](quantity = \"Area\", unit = \"m2\"); -// protected Real pipe3.n87[6](quantity = \"Area\", unit = \"m2\"); -// protected Real pipe3.n87[7](quantity = \"Area\", unit = \"m2\"); -// protected Real pipe3.n88[1](quantity = \"Velocity\", unit = \"m/s\"); -// protected Real pipe3.n88[2](quantity = \"Velocity\", unit = \"m/s\"); -// protected Real pipe3.n88[3](quantity = \"Velocity\", unit = \"m/s\"); -// protected Real pipe3.n88[4](quantity = \"Velocity\", unit = \"m/s\"); -// protected Real pipe3.n88[5](quantity = \"Velocity\", unit = \"m/s\"); -// protected Real pipe3.n88[6](quantity = \"Velocity\", unit = \"m/s\"); -// protected Real pipe3.n88[7](quantity = \"Velocity\", unit = \"m/s\"); -// protected Real pipe3.n89[1](quantity = \"Length\", unit = \"m\"); -// protected Real pipe3.n89[2](quantity = \"Length\", unit = \"m\"); -// protected Real pipe3.n89[3](quantity = \"Length\", unit = \"m\"); -// protected Real pipe3.n89[4](quantity = \"Length\", unit = \"m\"); -// protected Real pipe3.n89[5](quantity = \"Length\", unit = \"m\"); -// protected Real pipe3.n89[6](quantity = \"Length\", unit = \"m\"); -// protected Real pipe3.n89[7](quantity = \"Length\", unit = \"m\"); -// protected Real pipe3.n90[1](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); -// protected Real pipe3.n90[2](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); -// protected Real pipe3.n90[3](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); -// protected Real pipe3.n90[4](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); -// protected Real pipe3.n90[5](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); -// protected Real pipe3.n90[6](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); -// protected Real pipe3.n90[7](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); -// final parameter Boolean pipe3.use_HeatTransfer = false; -// final parameter Integer pipe3.heatTransfer.n = 5; -// final Real pipe3.heatTransfer.states[1].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe3.mediums[1].state.p; -// final Real pipe3.heatTransfer.states[1].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe3.mediums[1].state.T; -// final Real pipe3.heatTransfer.states[1].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// final Real pipe3.heatTransfer.states[1].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final Real pipe3.heatTransfer.states[2].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe3.mediums[2].state.p; -// final Real pipe3.heatTransfer.states[2].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe3.mediums[2].state.T; -// final Real pipe3.heatTransfer.states[2].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// final Real pipe3.heatTransfer.states[2].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final Real pipe3.heatTransfer.states[3].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe3.mediums[3].state.p; -// final Real pipe3.heatTransfer.states[3].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe3.mediums[3].state.T; -// final Real pipe3.heatTransfer.states[3].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// final Real pipe3.heatTransfer.states[3].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final Real pipe3.heatTransfer.states[4].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe3.mediums[4].state.p; -// final Real pipe3.heatTransfer.states[4].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe3.mediums[4].state.T; -// final Real pipe3.heatTransfer.states[4].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// final Real pipe3.heatTransfer.states[4].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final Real pipe3.heatTransfer.states[5].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe3.mediums[5].state.p; -// final Real pipe3.heatTransfer.states[5].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe3.mediums[5].state.T; -// final Real pipe3.heatTransfer.states[5].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// final Real pipe3.heatTransfer.states[5].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final Real pipe3.heatTransfer.surfaceAreas[1](quantity = \"Area\", unit = \"m2\"); -// final Real pipe3.heatTransfer.surfaceAreas[2](quantity = \"Area\", unit = \"m2\"); -// final Real pipe3.heatTransfer.surfaceAreas[3](quantity = \"Area\", unit = \"m2\"); -// final Real pipe3.heatTransfer.surfaceAreas[4](quantity = \"Area\", unit = \"m2\"); -// final Real pipe3.heatTransfer.surfaceAreas[5](quantity = \"Area\", unit = \"m2\"); -// Real pipe3.heatTransfer.Q_flows[1](quantity = \"Power\", unit = \"W\"); -// Real pipe3.heatTransfer.Q_flows[2](quantity = \"Power\", unit = \"W\"); -// Real pipe3.heatTransfer.Q_flows[3](quantity = \"Power\", unit = \"W\"); -// Real pipe3.heatTransfer.Q_flows[4](quantity = \"Power\", unit = \"W\"); -// Real pipe3.heatTransfer.Q_flows[5](quantity = \"Power\", unit = \"W\"); -// final parameter Boolean pipe3.heatTransfer.use_k = false; -// final parameter Real pipe3.heatTransfer.k(quantity = \"CoefficientOfHeatTransfer\", unit = \"W/(m2.K)\") = 0.0; -// parameter Real pipe3.heatTransfer.T_ambient(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) = system.T_ambient; -// Real pipe3.heatTransfer.heatPorts[1].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0); -// Real pipe3.heatTransfer.heatPorts[1].Q_flow(quantity = \"Power\", unit = \"W\"); -// Real pipe3.heatTransfer.heatPorts[2].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0); -// Real pipe3.heatTransfer.heatPorts[2].Q_flow(quantity = \"Power\", unit = \"W\"); -// Real pipe3.heatTransfer.heatPorts[3].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0); -// Real pipe3.heatTransfer.heatPorts[3].Q_flow(quantity = \"Power\", unit = \"W\"); -// Real pipe3.heatTransfer.heatPorts[4].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0); -// Real pipe3.heatTransfer.heatPorts[4].Q_flow(quantity = \"Power\", unit = \"W\"); -// Real pipe3.heatTransfer.heatPorts[5].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0); -// Real pipe3.heatTransfer.heatPorts[5].Q_flow(quantity = \"Power\", unit = \"W\"); -// Real pipe3.heatTransfer.Ts[1](quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0); -// Real pipe3.heatTransfer.Ts[2](quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0); -// Real pipe3.heatTransfer.Ts[3](quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0); -// Real pipe3.heatTransfer.Ts[4](quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0); -// Real pipe3.heatTransfer.Ts[5](quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0); -// final Real pipe3.heatTransfer.vs[1](quantity = \"Velocity\", unit = \"m/s\"); -// final Real pipe3.heatTransfer.vs[2](quantity = \"Velocity\", unit = \"m/s\"); -// final Real pipe3.heatTransfer.vs[3](quantity = \"Velocity\", unit = \"m/s\"); -// final Real pipe3.heatTransfer.vs[4](quantity = \"Velocity\", unit = \"m/s\"); -// final Real pipe3.heatTransfer.vs[5](quantity = \"Velocity\", unit = \"m/s\"); -// final parameter Real pipe3.heatTransfer.nParallel = pipe3.nParallel; -// final Real pipe3.heatTransfer.lengths[1](quantity = \"Length\", unit = \"m\"); -// final Real pipe3.heatTransfer.lengths[2](quantity = \"Length\", unit = \"m\"); -// final Real pipe3.heatTransfer.lengths[3](quantity = \"Length\", unit = \"m\"); -// final Real pipe3.heatTransfer.lengths[4](quantity = \"Length\", unit = \"m\"); -// final Real pipe3.heatTransfer.lengths[5](quantity = \"Length\", unit = \"m\"); -// final Real pipe3.heatTransfer.dimensions[1](quantity = \"Length\", unit = \"m\"); -// final Real pipe3.heatTransfer.dimensions[2](quantity = \"Length\", unit = \"m\"); -// final Real pipe3.heatTransfer.dimensions[3](quantity = \"Length\", unit = \"m\"); -// final Real pipe3.heatTransfer.dimensions[4](quantity = \"Length\", unit = \"m\"); -// final Real pipe3.heatTransfer.dimensions[5](quantity = \"Length\", unit = \"m\"); -// final Real pipe3.heatTransfer.roughnesses[1](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); -// final Real pipe3.heatTransfer.roughnesses[2](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); -// final Real pipe3.heatTransfer.roughnesses[3](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); -// final Real pipe3.heatTransfer.roughnesses[4](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); -// final Real pipe3.heatTransfer.roughnesses[5](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); +// final parameter Integer pipe3.iLumped = 3 \"Index of control volume with representative state if useLumpedPressure\"; +// final parameter Boolean pipe3.useInnerPortProperties = false \"=true to take port properties for flow models from internal control volumes\"; +// Real pipe3.state_a.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Absolute pressure of medium\"; +// Real pipe3.state_a.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature of medium\"; +// Real pipe3.state_a.X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe3.state_a.X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe3.state_b.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Absolute pressure of medium\"; +// Real pipe3.state_b.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature of medium\"; +// Real pipe3.state_b.X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe3.state_b.X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe3.statesFM[1].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Absolute pressure of medium\"; +// Real pipe3.statesFM[1].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature of medium\"; +// Real pipe3.statesFM[1].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe3.statesFM[1].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe3.statesFM[2].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Absolute pressure of medium\"; +// Real pipe3.statesFM[2].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature of medium\"; +// Real pipe3.statesFM[2].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe3.statesFM[2].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe3.statesFM[3].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Absolute pressure of medium\"; +// Real pipe3.statesFM[3].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature of medium\"; +// Real pipe3.statesFM[3].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe3.statesFM[3].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe3.statesFM[4].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Absolute pressure of medium\"; +// Real pipe3.statesFM[4].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature of medium\"; +// Real pipe3.statesFM[4].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe3.statesFM[4].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe3.statesFM[5].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Absolute pressure of medium\"; +// Real pipe3.statesFM[5].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature of medium\"; +// Real pipe3.statesFM[5].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe3.statesFM[5].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe3.statesFM[6].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Absolute pressure of medium\"; +// Real pipe3.statesFM[6].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature of medium\"; +// Real pipe3.statesFM[6].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe3.statesFM[6].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe3.statesFM[7].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Absolute pressure of medium\"; +// Real pipe3.statesFM[7].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature of medium\"; +// Real pipe3.statesFM[7].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe3.statesFM[7].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final parameter Boolean pipe3.flowModel.from_dp = true \"= true, use m_flow = f(dp), otherwise dp = f(m_flow)\"; +// final parameter Integer pipe3.flowModel.n = 7 \"Number of discrete flow volumes\"; +// final Real pipe3.flowModel.states[1].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe3.statesFM[1].p \"Absolute pressure of medium\"; +// final Real pipe3.flowModel.states[1].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe3.statesFM[1].T \"Temperature of medium\"; +// final Real pipe3.flowModel.states[1].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe3.flowModel.states[1].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe3.flowModel.states[2].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe3.statesFM[2].p \"Absolute pressure of medium\"; +// final Real pipe3.flowModel.states[2].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe3.statesFM[2].T \"Temperature of medium\"; +// final Real pipe3.flowModel.states[2].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe3.flowModel.states[2].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe3.flowModel.states[3].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe3.statesFM[3].p \"Absolute pressure of medium\"; +// final Real pipe3.flowModel.states[3].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe3.statesFM[3].T \"Temperature of medium\"; +// final Real pipe3.flowModel.states[3].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe3.flowModel.states[3].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe3.flowModel.states[4].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe3.statesFM[4].p \"Absolute pressure of medium\"; +// final Real pipe3.flowModel.states[4].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe3.statesFM[4].T \"Temperature of medium\"; +// final Real pipe3.flowModel.states[4].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe3.flowModel.states[4].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe3.flowModel.states[5].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe3.statesFM[5].p \"Absolute pressure of medium\"; +// final Real pipe3.flowModel.states[5].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe3.statesFM[5].T \"Temperature of medium\"; +// final Real pipe3.flowModel.states[5].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe3.flowModel.states[5].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe3.flowModel.states[6].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe3.statesFM[6].p \"Absolute pressure of medium\"; +// final Real pipe3.flowModel.states[6].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe3.statesFM[6].T \"Temperature of medium\"; +// final Real pipe3.flowModel.states[6].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe3.flowModel.states[6].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe3.flowModel.states[7].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe3.statesFM[7].p \"Absolute pressure of medium\"; +// final Real pipe3.flowModel.states[7].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe3.statesFM[7].T \"Temperature of medium\"; +// final Real pipe3.flowModel.states[7].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe3.flowModel.states[7].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe3.flowModel.vs[1](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities of fluid flow\"; +// final Real pipe3.flowModel.vs[2](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities of fluid flow\"; +// final Real pipe3.flowModel.vs[3](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities of fluid flow\"; +// final Real pipe3.flowModel.vs[4](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities of fluid flow\"; +// final Real pipe3.flowModel.vs[5](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities of fluid flow\"; +// final Real pipe3.flowModel.vs[6](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities of fluid flow\"; +// final Real pipe3.flowModel.vs[7](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities of fluid flow\"; +// final parameter Real pipe3.flowModel.nParallel = pipe3.nParallel \"number of identical parallel flow devices\"; +// final Real pipe3.flowModel.crossAreas[1](quantity = \"Area\", unit = \"m2\") \"Cross flow areas at segment boundaries\"; +// final Real pipe3.flowModel.crossAreas[2](quantity = \"Area\", unit = \"m2\") \"Cross flow areas at segment boundaries\"; +// final Real pipe3.flowModel.crossAreas[3](quantity = \"Area\", unit = \"m2\") \"Cross flow areas at segment boundaries\"; +// final Real pipe3.flowModel.crossAreas[4](quantity = \"Area\", unit = \"m2\") \"Cross flow areas at segment boundaries\"; +// final Real pipe3.flowModel.crossAreas[5](quantity = \"Area\", unit = \"m2\") \"Cross flow areas at segment boundaries\"; +// final Real pipe3.flowModel.crossAreas[6](quantity = \"Area\", unit = \"m2\") \"Cross flow areas at segment boundaries\"; +// final Real pipe3.flowModel.crossAreas[7](quantity = \"Area\", unit = \"m2\") \"Cross flow areas at segment boundaries\"; +// final Real pipe3.flowModel.dimensions[1](quantity = \"Length\", unit = \"m\") \"Characteristic dimensions for fluid flow (diameters for pipe flow)\"; +// final Real pipe3.flowModel.dimensions[2](quantity = \"Length\", unit = \"m\") \"Characteristic dimensions for fluid flow (diameters for pipe flow)\"; +// final Real pipe3.flowModel.dimensions[3](quantity = \"Length\", unit = \"m\") \"Characteristic dimensions for fluid flow (diameters for pipe flow)\"; +// final Real pipe3.flowModel.dimensions[4](quantity = \"Length\", unit = \"m\") \"Characteristic dimensions for fluid flow (diameters for pipe flow)\"; +// final Real pipe3.flowModel.dimensions[5](quantity = \"Length\", unit = \"m\") \"Characteristic dimensions for fluid flow (diameters for pipe flow)\"; +// final Real pipe3.flowModel.dimensions[6](quantity = \"Length\", unit = \"m\") \"Characteristic dimensions for fluid flow (diameters for pipe flow)\"; +// final Real pipe3.flowModel.dimensions[7](quantity = \"Length\", unit = \"m\") \"Characteristic dimensions for fluid flow (diameters for pipe flow)\"; +// final Real pipe3.flowModel.roughnesses[1](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average height of surface asperities\"; +// final Real pipe3.flowModel.roughnesses[2](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average height of surface asperities\"; +// final Real pipe3.flowModel.roughnesses[3](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average height of surface asperities\"; +// final Real pipe3.flowModel.roughnesses[4](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average height of surface asperities\"; +// final Real pipe3.flowModel.roughnesses[5](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average height of surface asperities\"; +// final Real pipe3.flowModel.roughnesses[6](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average height of surface asperities\"; +// final Real pipe3.flowModel.roughnesses[7](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average height of surface asperities\"; +// final Real pipe3.flowModel.dheights[1](quantity = \"Length\", unit = \"m\") \"Height(states[2:n]) - Height(states[1:n-1])\"; +// final Real pipe3.flowModel.dheights[2](quantity = \"Length\", unit = \"m\") \"Height(states[2:n]) - Height(states[1:n-1])\"; +// final Real pipe3.flowModel.dheights[3](quantity = \"Length\", unit = \"m\") \"Height(states[2:n]) - Height(states[1:n-1])\"; +// final Real pipe3.flowModel.dheights[4](quantity = \"Length\", unit = \"m\") \"Height(states[2:n]) - Height(states[1:n-1])\"; +// final Real pipe3.flowModel.dheights[5](quantity = \"Length\", unit = \"m\") \"Height(states[2:n]) - Height(states[1:n-1])\"; +// final Real pipe3.flowModel.dheights[6](quantity = \"Length\", unit = \"m\") \"Height(states[2:n]) - Height(states[1:n-1])\"; +// final parameter Real pipe3.flowModel.g(quantity = \"Acceleration\", unit = \"m/s2\") = system.g \"Constant gravity acceleration\"; +// final parameter Boolean pipe3.flowModel.allowFlowReversal = true \"= true to allow flow reversal, false restricts to design direction (states[1] -> states[n+1])\"; +// final parameter enumeration(DynamicFreeInitial, FixedInitial, SteadyStateInitial, SteadyState) pipe3.flowModel.momentumDynamics = Modelica.Fluid.Types.Dynamics.SteadyStateInitial \"Formulation of momentum balance\"; +// final parameter Real pipe3.flowModel.m_flow_start(quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) = 0.01 \"Start value of mass flow rates\"; +// final parameter Real pipe3.flowModel.p_a_start(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe3.p_a_start \"Start value for p[1] at design inflow\"; +// final parameter Real pipe3.flowModel.p_b_start(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe3.p_b_start \"Start value for p[n+1] at design outflow\"; +// final parameter Integer pipe3.flowModel.m = 6 \"Number of flow segments\"; +// final Real pipe3.flowModel.pathLengths[1](quantity = \"Length\", unit = \"m\") \"Lengths along flow path\"; +// final Real pipe3.flowModel.pathLengths[2](quantity = \"Length\", unit = \"m\") \"Lengths along flow path\"; +// final Real pipe3.flowModel.pathLengths[3](quantity = \"Length\", unit = \"m\") \"Lengths along flow path\"; +// final Real pipe3.flowModel.pathLengths[4](quantity = \"Length\", unit = \"m\") \"Lengths along flow path\"; +// final Real pipe3.flowModel.pathLengths[5](quantity = \"Length\", unit = \"m\") \"Lengths along flow path\"; +// final Real pipe3.flowModel.pathLengths[6](quantity = \"Length\", unit = \"m\") \"Lengths along flow path\"; +// Real pipe3.flowModel.m_flows[1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e60, max = 1e5, start = 0.01, stateSelect = StateSelect.prefer) \"mass flow rates between states\"; +// Real pipe3.flowModel.m_flows[2](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e60, max = 1e5, start = 0.01, stateSelect = StateSelect.prefer) \"mass flow rates between states\"; +// Real pipe3.flowModel.m_flows[3](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e60, max = 1e5, start = 0.01, stateSelect = StateSelect.prefer) \"mass flow rates between states\"; +// Real pipe3.flowModel.m_flows[4](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e60, max = 1e5, start = 0.01, stateSelect = StateSelect.prefer) \"mass flow rates between states\"; +// Real pipe3.flowModel.m_flows[5](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e60, max = 1e5, start = 0.01, stateSelect = StateSelect.prefer) \"mass flow rates between states\"; +// Real pipe3.flowModel.m_flows[6](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e60, max = 1e5, start = 0.01, stateSelect = StateSelect.prefer) \"mass flow rates between states\"; +// Real pipe3.flowModel.Is[1](quantity = \"Momentum\", unit = \"kg.m/s\") \"Momenta of flow segments\"; +// Real pipe3.flowModel.Is[2](quantity = \"Momentum\", unit = \"kg.m/s\") \"Momenta of flow segments\"; +// Real pipe3.flowModel.Is[3](quantity = \"Momentum\", unit = \"kg.m/s\") \"Momenta of flow segments\"; +// Real pipe3.flowModel.Is[4](quantity = \"Momentum\", unit = \"kg.m/s\") \"Momenta of flow segments\"; +// Real pipe3.flowModel.Is[5](quantity = \"Momentum\", unit = \"kg.m/s\") \"Momenta of flow segments\"; +// Real pipe3.flowModel.Is[6](quantity = \"Momentum\", unit = \"kg.m/s\") \"Momenta of flow segments\"; +// Real pipe3.flowModel.Ib_flows[1](quantity = \"Force\", unit = \"N\") \"Flow of momentum across boundaries\"; +// Real pipe3.flowModel.Ib_flows[2](quantity = \"Force\", unit = \"N\") \"Flow of momentum across boundaries\"; +// Real pipe3.flowModel.Ib_flows[3](quantity = \"Force\", unit = \"N\") \"Flow of momentum across boundaries\"; +// Real pipe3.flowModel.Ib_flows[4](quantity = \"Force\", unit = \"N\") \"Flow of momentum across boundaries\"; +// Real pipe3.flowModel.Ib_flows[5](quantity = \"Force\", unit = \"N\") \"Flow of momentum across boundaries\"; +// Real pipe3.flowModel.Ib_flows[6](quantity = \"Force\", unit = \"N\") \"Flow of momentum across boundaries\"; +// Real pipe3.flowModel.Fs_p[1](quantity = \"Force\", unit = \"N\") \"Pressure forces\"; +// Real pipe3.flowModel.Fs_p[2](quantity = \"Force\", unit = \"N\") \"Pressure forces\"; +// Real pipe3.flowModel.Fs_p[3](quantity = \"Force\", unit = \"N\") \"Pressure forces\"; +// Real pipe3.flowModel.Fs_p[4](quantity = \"Force\", unit = \"N\") \"Pressure forces\"; +// Real pipe3.flowModel.Fs_p[5](quantity = \"Force\", unit = \"N\") \"Pressure forces\"; +// Real pipe3.flowModel.Fs_p[6](quantity = \"Force\", unit = \"N\") \"Pressure forces\"; +// Real pipe3.flowModel.Fs_fg[1](quantity = \"Force\", unit = \"N\") \"Friction and gravity forces\"; +// Real pipe3.flowModel.Fs_fg[2](quantity = \"Force\", unit = \"N\") \"Friction and gravity forces\"; +// Real pipe3.flowModel.Fs_fg[3](quantity = \"Force\", unit = \"N\") \"Friction and gravity forces\"; +// Real pipe3.flowModel.Fs_fg[4](quantity = \"Force\", unit = \"N\") \"Friction and gravity forces\"; +// Real pipe3.flowModel.Fs_fg[5](quantity = \"Force\", unit = \"N\") \"Friction and gravity forces\"; +// Real pipe3.flowModel.Fs_fg[6](quantity = \"Force\", unit = \"N\") \"Friction and gravity forces\"; +// final parameter Boolean pipe3.flowModel.useUpstreamScheme = true \"= false to average upstream and downstream properties across flow segments\"; +// final parameter Boolean pipe3.flowModel.use_Ib_flows = true \"= true to consider differences in flow of momentum through boundaries\"; +// Real pipe3.flowModel.rhos[1](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0); +// Real pipe3.flowModel.rhos[2](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0); +// Real pipe3.flowModel.rhos[3](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0); +// Real pipe3.flowModel.rhos[4](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0); +// Real pipe3.flowModel.rhos[5](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0); +// Real pipe3.flowModel.rhos[6](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0); +// Real pipe3.flowModel.rhos[7](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0); +// Real pipe3.flowModel.rhos_act[1](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0) \"Actual density per segment\"; +// Real pipe3.flowModel.rhos_act[2](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0) \"Actual density per segment\"; +// Real pipe3.flowModel.rhos_act[3](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0) \"Actual density per segment\"; +// Real pipe3.flowModel.rhos_act[4](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0) \"Actual density per segment\"; +// Real pipe3.flowModel.rhos_act[5](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0) \"Actual density per segment\"; +// Real pipe3.flowModel.rhos_act[6](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0) \"Actual density per segment\"; +// Real pipe3.flowModel.mus[1](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 1e8, start = 0.001, nominal = 0.001); +// Real pipe3.flowModel.mus[2](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 1e8, start = 0.001, nominal = 0.001); +// Real pipe3.flowModel.mus[3](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 1e8, start = 0.001, nominal = 0.001); +// Real pipe3.flowModel.mus[4](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 1e8, start = 0.001, nominal = 0.001); +// Real pipe3.flowModel.mus[5](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 1e8, start = 0.001, nominal = 0.001); +// Real pipe3.flowModel.mus[6](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 1e8, start = 0.001, nominal = 0.001); +// Real pipe3.flowModel.mus[7](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 1e8, start = 0.001, nominal = 0.001); +// Real pipe3.flowModel.mus_act[1](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 1e8, start = 0.001, nominal = 0.001) \"Actual viscosity per segment\"; +// Real pipe3.flowModel.mus_act[2](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 1e8, start = 0.001, nominal = 0.001) \"Actual viscosity per segment\"; +// Real pipe3.flowModel.mus_act[3](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 1e8, start = 0.001, nominal = 0.001) \"Actual viscosity per segment\"; +// Real pipe3.flowModel.mus_act[4](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 1e8, start = 0.001, nominal = 0.001) \"Actual viscosity per segment\"; +// Real pipe3.flowModel.mus_act[5](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 1e8, start = 0.001, nominal = 0.001) \"Actual viscosity per segment\"; +// Real pipe3.flowModel.mus_act[6](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 1e8, start = 0.001, nominal = 0.001) \"Actual viscosity per segment\"; +// Real pipe3.flowModel.dps_fg[1](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", start = (pipe3.flowModel.p_a_start - pipe3.flowModel.p_b_start) / 6.0) \"pressure drop between states\"; +// Real pipe3.flowModel.dps_fg[2](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", start = (pipe3.flowModel.p_a_start - pipe3.flowModel.p_b_start) / 6.0) \"pressure drop between states\"; +// Real pipe3.flowModel.dps_fg[3](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", start = (pipe3.flowModel.p_a_start - pipe3.flowModel.p_b_start) / 6.0) \"pressure drop between states\"; +// Real pipe3.flowModel.dps_fg[4](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", start = (pipe3.flowModel.p_a_start - pipe3.flowModel.p_b_start) / 6.0) \"pressure drop between states\"; +// Real pipe3.flowModel.dps_fg[5](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", start = (pipe3.flowModel.p_a_start - pipe3.flowModel.p_b_start) / 6.0) \"pressure drop between states\"; +// Real pipe3.flowModel.dps_fg[6](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", start = (pipe3.flowModel.p_a_start - pipe3.flowModel.p_b_start) / 6.0) \"pressure drop between states\"; +// final parameter Real pipe3.flowModel.Re_turbulent(quantity = \"ReynoldsNumber\", unit = \"1\") = 4000.0 \"Start of turbulent regime, depending on type of flow device\"; +// final parameter Boolean pipe3.flowModel.show_Res = false \"= true, if Reynolds numbers are included for plotting\"; +// protected final parameter Boolean pipe3.flowModel.n76 = false \"= true, if rho_nominal is used, otherwise computed from medium\"; +// protected parameter Real pipe3.flowModel.n77(quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0) = 1.1968386935810924 \"Nominal density (e.g., rho_liquidWater = 995, rho_air = 1.2)\"; +// protected final parameter Boolean pipe3.flowModel.n78 = false \"= true, if mu_nominal is used, otherwise computed from medium\"; +// protected parameter Real pipe3.flowModel.n79(quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0) = 1.823286547365138e-5 \"Nominal dynamic viscosity (e.g., mu_liquidWater = 1e-3, mu_air = 1.8e-5)\"; +// Real pipe3.flowModel.pathLengths_internal[1](quantity = \"Length\", unit = \"m\") \"pathLengths used internally; to be defined by extending class\"; +// Real pipe3.flowModel.pathLengths_internal[2](quantity = \"Length\", unit = \"m\") \"pathLengths used internally; to be defined by extending class\"; +// Real pipe3.flowModel.pathLengths_internal[3](quantity = \"Length\", unit = \"m\") \"pathLengths used internally; to be defined by extending class\"; +// Real pipe3.flowModel.pathLengths_internal[4](quantity = \"Length\", unit = \"m\") \"pathLengths used internally; to be defined by extending class\"; +// Real pipe3.flowModel.pathLengths_internal[5](quantity = \"Length\", unit = \"m\") \"pathLengths used internally; to be defined by extending class\"; +// Real pipe3.flowModel.pathLengths_internal[6](quantity = \"Length\", unit = \"m\") \"pathLengths used internally; to be defined by extending class\"; +// Real pipe3.flowModel.Res_turbulent_internal[1](quantity = \"ReynoldsNumber\", unit = \"1\") \"Re_turbulent used internally; to be defined by extending class\"; +// Real pipe3.flowModel.Res_turbulent_internal[2](quantity = \"ReynoldsNumber\", unit = \"1\") \"Re_turbulent used internally; to be defined by extending class\"; +// Real pipe3.flowModel.Res_turbulent_internal[3](quantity = \"ReynoldsNumber\", unit = \"1\") \"Re_turbulent used internally; to be defined by extending class\"; +// Real pipe3.flowModel.Res_turbulent_internal[4](quantity = \"ReynoldsNumber\", unit = \"1\") \"Re_turbulent used internally; to be defined by extending class\"; +// Real pipe3.flowModel.Res_turbulent_internal[5](quantity = \"ReynoldsNumber\", unit = \"1\") \"Re_turbulent used internally; to be defined by extending class\"; +// Real pipe3.flowModel.Res_turbulent_internal[6](quantity = \"ReynoldsNumber\", unit = \"1\") \"Re_turbulent used internally; to be defined by extending class\"; +// parameter Real pipe3.flowModel.dp_nominal(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, start = 1.0, fixed = false, nominal = 1e5) \"Nominal pressure loss (only for nominal models)\"; +// parameter Real pipe3.flowModel.m_flow_nominal(quantity = \"MassFlowRate\", unit = \"kg/s\") = 100.0 * pipe3.flowModel.m_flow_small \"Nominal mass flow rate\"; +// parameter Real pipe3.flowModel.m_flow_small(quantity = \"MassFlowRate\", unit = \"kg/s\") = system.m_flow_small \"Within regularization if |m_flows| < m_flow_small (may be wider for large discontinuities in static head)\"; +// protected parameter Real pipe3.flowModel.n80(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, start = 1.0, fixed = false, nominal = 1e5) \"Within regularization if |dp| < dp_small (may be wider for large discontinuities in static head)\"; +// protected final parameter Boolean pipe3.flowModel.n81 = false \"= true if the pressure loss does not depend on fluid states\"; +// protected final parameter Boolean pipe3.flowModel.n82 = false \"= true if the pressure loss is continuous around zero flow\"; +// protected Real pipe3.flowModel.n83[1](quantity = \"Length\", unit = \"m\") \"mean diameters between segments\"; +// protected Real pipe3.flowModel.n83[2](quantity = \"Length\", unit = \"m\") \"mean diameters between segments\"; +// protected Real pipe3.flowModel.n83[3](quantity = \"Length\", unit = \"m\") \"mean diameters between segments\"; +// protected Real pipe3.flowModel.n83[4](quantity = \"Length\", unit = \"m\") \"mean diameters between segments\"; +// protected Real pipe3.flowModel.n83[5](quantity = \"Length\", unit = \"m\") \"mean diameters between segments\"; +// protected Real pipe3.flowModel.n83[6](quantity = \"Length\", unit = \"m\") \"mean diameters between segments\"; +// protected Real pipe3.flowModel.n84(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 1e5) = Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.flowModel.WallFriction.pressureLoss_m_flow(pipe3.flowModel.m_flow_nominal / pipe3.flowModel.nParallel, pipe3.flowModel.n77, pipe3.flowModel.n77, pipe3.flowModel.n79, pipe3.flowModel.n79, pipe3.flowModel.pathLengths_internal[1], pipe3.flowModel.n83[1], (pipe3.flowModel.crossAreas[1] + pipe3.flowModel.crossAreas[2]) / 2.0, (pipe3.flowModel.roughnesses[1] + pipe3.flowModel.roughnesses[2]) / 2.0, pipe3.flowModel.m_flow_small / pipe3.flowModel.nParallel, pipe3.flowModel.Res_turbulent_internal[1]) + Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.flowModel.WallFriction.pressureLoss_m_flow(pipe3.flowModel.m_flow_nominal / pipe3.flowModel.nParallel, pipe3.flowModel.n77, pipe3.flowModel.n77, pipe3.flowModel.n79, pipe3.flowModel.n79, pipe3.flowModel.pathLengths_internal[2], pipe3.flowModel.n83[2], (pipe3.flowModel.crossAreas[2] + pipe3.flowModel.crossAreas[3]) / 2.0, (pipe3.flowModel.roughnesses[2] + pipe3.flowModel.roughnesses[3]) / 2.0, pipe3.flowModel.m_flow_small / pipe3.flowModel.nParallel, pipe3.flowModel.Res_turbulent_internal[2]) + Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.flowModel.WallFriction.pressureLoss_m_flow(pipe3.flowModel.m_flow_nominal / pipe3.flowModel.nParallel, pipe3.flowModel.n77, pipe3.flowModel.n77, pipe3.flowModel.n79, pipe3.flowModel.n79, pipe3.flowModel.pathLengths_internal[3], pipe3.flowModel.n83[3], (pipe3.flowModel.crossAreas[3] + pipe3.flowModel.crossAreas[4]) / 2.0, (pipe3.flowModel.roughnesses[3] + pipe3.flowModel.roughnesses[4]) / 2.0, pipe3.flowModel.m_flow_small / pipe3.flowModel.nParallel, pipe3.flowModel.Res_turbulent_internal[3]) + Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.flowModel.WallFriction.pressureLoss_m_flow(pipe3.flowModel.m_flow_nominal / pipe3.flowModel.nParallel, pipe3.flowModel.n77, pipe3.flowModel.n77, pipe3.flowModel.n79, pipe3.flowModel.n79, pipe3.flowModel.pathLengths_internal[4], pipe3.flowModel.n83[4], (pipe3.flowModel.crossAreas[4] + pipe3.flowModel.crossAreas[5]) / 2.0, (pipe3.flowModel.roughnesses[4] + pipe3.flowModel.roughnesses[5]) / 2.0, pipe3.flowModel.m_flow_small / pipe3.flowModel.nParallel, pipe3.flowModel.Res_turbulent_internal[4]) + Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.flowModel.WallFriction.pressureLoss_m_flow(pipe3.flowModel.m_flow_nominal / pipe3.flowModel.nParallel, pipe3.flowModel.n77, pipe3.flowModel.n77, pipe3.flowModel.n79, pipe3.flowModel.n79, pipe3.flowModel.pathLengths_internal[5], pipe3.flowModel.n83[5], (pipe3.flowModel.crossAreas[5] + pipe3.flowModel.crossAreas[6]) / 2.0, (pipe3.flowModel.roughnesses[5] + pipe3.flowModel.roughnesses[6]) / 2.0, pipe3.flowModel.m_flow_small / pipe3.flowModel.nParallel, pipe3.flowModel.Res_turbulent_internal[5]) + Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.flowModel.WallFriction.pressureLoss_m_flow(pipe3.flowModel.m_flow_nominal / pipe3.flowModel.nParallel, pipe3.flowModel.n77, pipe3.flowModel.n77, pipe3.flowModel.n79, pipe3.flowModel.n79, pipe3.flowModel.pathLengths_internal[6], pipe3.flowModel.n83[6], (pipe3.flowModel.crossAreas[6] + pipe3.flowModel.crossAreas[7]) / 2.0, (pipe3.flowModel.roughnesses[6] + pipe3.flowModel.roughnesses[7]) / 2.0, pipe3.flowModel.m_flow_small / pipe3.flowModel.nParallel, pipe3.flowModel.Res_turbulent_internal[6]) \"pressure loss for nominal conditions\"; +// Real pipe3.m_flows[1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e60, max = 1e5, start = 0.01) \"Mass flow rates of fluid across segment boundaries\"; +// Real pipe3.m_flows[2](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e60, max = 1e5, start = 0.01) \"Mass flow rates of fluid across segment boundaries\"; +// Real pipe3.m_flows[3](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e60, max = 1e5, start = 0.01) \"Mass flow rates of fluid across segment boundaries\"; +// Real pipe3.m_flows[4](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e60, max = 1e5, start = 0.01) \"Mass flow rates of fluid across segment boundaries\"; +// Real pipe3.m_flows[5](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e60, max = 1e5, start = 0.01) \"Mass flow rates of fluid across segment boundaries\"; +// Real pipe3.m_flows[6](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e60, max = 1e5, start = 0.01) \"Mass flow rates of fluid across segment boundaries\"; +// Real pipe3.mXi_flows[1,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) \"Independent mass flow rates across segment boundaries\"; +// Real pipe3.mXi_flows[2,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) \"Independent mass flow rates across segment boundaries\"; +// Real pipe3.mXi_flows[3,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) \"Independent mass flow rates across segment boundaries\"; +// Real pipe3.mXi_flows[4,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) \"Independent mass flow rates across segment boundaries\"; +// Real pipe3.mXi_flows[5,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) \"Independent mass flow rates across segment boundaries\"; +// Real pipe3.mXi_flows[6,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) \"Independent mass flow rates across segment boundaries\"; +// Real pipe3.H_flows[1](quantity = \"EnthalpyFlowRate\", unit = \"W\", min = -1e8, max = 1e8, nominal = 1000.0) \"Enthalpy flow rates of fluid across segment boundaries\"; +// Real pipe3.H_flows[2](quantity = \"EnthalpyFlowRate\", unit = \"W\", min = -1e8, max = 1e8, nominal = 1000.0) \"Enthalpy flow rates of fluid across segment boundaries\"; +// Real pipe3.H_flows[3](quantity = \"EnthalpyFlowRate\", unit = \"W\", min = -1e8, max = 1e8, nominal = 1000.0) \"Enthalpy flow rates of fluid across segment boundaries\"; +// Real pipe3.H_flows[4](quantity = \"EnthalpyFlowRate\", unit = \"W\", min = -1e8, max = 1e8, nominal = 1000.0) \"Enthalpy flow rates of fluid across segment boundaries\"; +// Real pipe3.H_flows[5](quantity = \"EnthalpyFlowRate\", unit = \"W\", min = -1e8, max = 1e8, nominal = 1000.0) \"Enthalpy flow rates of fluid across segment boundaries\"; +// Real pipe3.H_flows[6](quantity = \"EnthalpyFlowRate\", unit = \"W\", min = -1e8, max = 1e8, nominal = 1000.0) \"Enthalpy flow rates of fluid across segment boundaries\"; +// Real pipe3.vs[1](quantity = \"Velocity\", unit = \"m/s\") \"mean velocities in flow segments\"; +// Real pipe3.vs[2](quantity = \"Velocity\", unit = \"m/s\") \"mean velocities in flow segments\"; +// Real pipe3.vs[3](quantity = \"Velocity\", unit = \"m/s\") \"mean velocities in flow segments\"; +// Real pipe3.vs[4](quantity = \"Velocity\", unit = \"m/s\") \"mean velocities in flow segments\"; +// Real pipe3.vs[5](quantity = \"Velocity\", unit = \"m/s\") \"mean velocities in flow segments\"; +// protected Real pipe3.n85[1](quantity = \"Length\", unit = \"m\") \"Lengths along flow path\"; +// protected Real pipe3.n85[2](quantity = \"Length\", unit = \"m\") \"Lengths along flow path\"; +// protected Real pipe3.n85[3](quantity = \"Length\", unit = \"m\") \"Lengths along flow path\"; +// protected Real pipe3.n85[4](quantity = \"Length\", unit = \"m\") \"Lengths along flow path\"; +// protected Real pipe3.n85[5](quantity = \"Length\", unit = \"m\") \"Lengths along flow path\"; +// protected Real pipe3.n85[6](quantity = \"Length\", unit = \"m\") \"Lengths along flow path\"; +// protected Real pipe3.n86[1](quantity = \"Length\", unit = \"m\") \"Differences in heights between flow segments\"; +// protected Real pipe3.n86[2](quantity = \"Length\", unit = \"m\") \"Differences in heights between flow segments\"; +// protected Real pipe3.n86[3](quantity = \"Length\", unit = \"m\") \"Differences in heights between flow segments\"; +// protected Real pipe3.n86[4](quantity = \"Length\", unit = \"m\") \"Differences in heights between flow segments\"; +// protected Real pipe3.n86[5](quantity = \"Length\", unit = \"m\") \"Differences in heights between flow segments\"; +// protected Real pipe3.n86[6](quantity = \"Length\", unit = \"m\") \"Differences in heights between flow segments\"; +// protected Real pipe3.n87[1](quantity = \"Area\", unit = \"m2\") \"Cross flow areas of flow segments\"; +// protected Real pipe3.n87[2](quantity = \"Area\", unit = \"m2\") \"Cross flow areas of flow segments\"; +// protected Real pipe3.n87[3](quantity = \"Area\", unit = \"m2\") \"Cross flow areas of flow segments\"; +// protected Real pipe3.n87[4](quantity = \"Area\", unit = \"m2\") \"Cross flow areas of flow segments\"; +// protected Real pipe3.n87[5](quantity = \"Area\", unit = \"m2\") \"Cross flow areas of flow segments\"; +// protected Real pipe3.n87[6](quantity = \"Area\", unit = \"m2\") \"Cross flow areas of flow segments\"; +// protected Real pipe3.n87[7](quantity = \"Area\", unit = \"m2\") \"Cross flow areas of flow segments\"; +// protected Real pipe3.n88[1](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities in flow segments\"; +// protected Real pipe3.n88[2](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities in flow segments\"; +// protected Real pipe3.n88[3](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities in flow segments\"; +// protected Real pipe3.n88[4](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities in flow segments\"; +// protected Real pipe3.n88[5](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities in flow segments\"; +// protected Real pipe3.n88[6](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities in flow segments\"; +// protected Real pipe3.n88[7](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities in flow segments\"; +// protected Real pipe3.n89[1](quantity = \"Length\", unit = \"m\") \"Hydraulic diameters of flow segments\"; +// protected Real pipe3.n89[2](quantity = \"Length\", unit = \"m\") \"Hydraulic diameters of flow segments\"; +// protected Real pipe3.n89[3](quantity = \"Length\", unit = \"m\") \"Hydraulic diameters of flow segments\"; +// protected Real pipe3.n89[4](quantity = \"Length\", unit = \"m\") \"Hydraulic diameters of flow segments\"; +// protected Real pipe3.n89[5](quantity = \"Length\", unit = \"m\") \"Hydraulic diameters of flow segments\"; +// protected Real pipe3.n89[6](quantity = \"Length\", unit = \"m\") \"Hydraulic diameters of flow segments\"; +// protected Real pipe3.n89[7](quantity = \"Length\", unit = \"m\") \"Hydraulic diameters of flow segments\"; +// protected Real pipe3.n90[1](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average heights of surface asperities\"; +// protected Real pipe3.n90[2](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average heights of surface asperities\"; +// protected Real pipe3.n90[3](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average heights of surface asperities\"; +// protected Real pipe3.n90[4](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average heights of surface asperities\"; +// protected Real pipe3.n90[5](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average heights of surface asperities\"; +// protected Real pipe3.n90[6](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average heights of surface asperities\"; +// protected Real pipe3.n90[7](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average heights of surface asperities\"; +// final parameter Boolean pipe3.use_HeatTransfer = false \"= true to use the HeatTransfer model\"; +// final parameter Integer pipe3.heatTransfer.n = 5 \"Number of heat transfer segments\"; +// final Real pipe3.heatTransfer.states[1].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe3.mediums[1].state.p \"Absolute pressure of medium\"; +// final Real pipe3.heatTransfer.states[1].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe3.mediums[1].state.T \"Temperature of medium\"; +// final Real pipe3.heatTransfer.states[1].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe3.heatTransfer.states[1].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe3.heatTransfer.states[2].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe3.mediums[2].state.p \"Absolute pressure of medium\"; +// final Real pipe3.heatTransfer.states[2].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe3.mediums[2].state.T \"Temperature of medium\"; +// final Real pipe3.heatTransfer.states[2].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe3.heatTransfer.states[2].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe3.heatTransfer.states[3].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe3.mediums[3].state.p \"Absolute pressure of medium\"; +// final Real pipe3.heatTransfer.states[3].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe3.mediums[3].state.T \"Temperature of medium\"; +// final Real pipe3.heatTransfer.states[3].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe3.heatTransfer.states[3].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe3.heatTransfer.states[4].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe3.mediums[4].state.p \"Absolute pressure of medium\"; +// final Real pipe3.heatTransfer.states[4].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe3.mediums[4].state.T \"Temperature of medium\"; +// final Real pipe3.heatTransfer.states[4].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe3.heatTransfer.states[4].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe3.heatTransfer.states[5].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe3.mediums[5].state.p \"Absolute pressure of medium\"; +// final Real pipe3.heatTransfer.states[5].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe3.mediums[5].state.T \"Temperature of medium\"; +// final Real pipe3.heatTransfer.states[5].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe3.heatTransfer.states[5].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe3.heatTransfer.surfaceAreas[1](quantity = \"Area\", unit = \"m2\") \"Heat transfer areas\"; +// final Real pipe3.heatTransfer.surfaceAreas[2](quantity = \"Area\", unit = \"m2\") \"Heat transfer areas\"; +// final Real pipe3.heatTransfer.surfaceAreas[3](quantity = \"Area\", unit = \"m2\") \"Heat transfer areas\"; +// final Real pipe3.heatTransfer.surfaceAreas[4](quantity = \"Area\", unit = \"m2\") \"Heat transfer areas\"; +// final Real pipe3.heatTransfer.surfaceAreas[5](quantity = \"Area\", unit = \"m2\") \"Heat transfer areas\"; +// Real pipe3.heatTransfer.Q_flows[1](quantity = \"Power\", unit = \"W\") \"Heat flow rates\"; +// Real pipe3.heatTransfer.Q_flows[2](quantity = \"Power\", unit = \"W\") \"Heat flow rates\"; +// Real pipe3.heatTransfer.Q_flows[3](quantity = \"Power\", unit = \"W\") \"Heat flow rates\"; +// Real pipe3.heatTransfer.Q_flows[4](quantity = \"Power\", unit = \"W\") \"Heat flow rates\"; +// Real pipe3.heatTransfer.Q_flows[5](quantity = \"Power\", unit = \"W\") \"Heat flow rates\"; +// final parameter Boolean pipe3.heatTransfer.use_k = false \"= true to use k value for thermal isolation\"; +// final parameter Real pipe3.heatTransfer.k(quantity = \"CoefficientOfHeatTransfer\", unit = \"W/(m2.K)\") = 0.0 \"Heat transfer coefficient to ambient\"; +// parameter Real pipe3.heatTransfer.T_ambient(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) = system.T_ambient \"Ambient temperature\"; +// Real pipe3.heatTransfer.heatPorts[1].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) \"Port temperature\"; +// Real pipe3.heatTransfer.heatPorts[1].Q_flow(quantity = \"Power\", unit = \"W\") \"Heat flow rate (positive if flowing from outside into the component)\"; +// Real pipe3.heatTransfer.heatPorts[2].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) \"Port temperature\"; +// Real pipe3.heatTransfer.heatPorts[2].Q_flow(quantity = \"Power\", unit = \"W\") \"Heat flow rate (positive if flowing from outside into the component)\"; +// Real pipe3.heatTransfer.heatPorts[3].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) \"Port temperature\"; +// Real pipe3.heatTransfer.heatPorts[3].Q_flow(quantity = \"Power\", unit = \"W\") \"Heat flow rate (positive if flowing from outside into the component)\"; +// Real pipe3.heatTransfer.heatPorts[4].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) \"Port temperature\"; +// Real pipe3.heatTransfer.heatPorts[4].Q_flow(quantity = \"Power\", unit = \"W\") \"Heat flow rate (positive if flowing from outside into the component)\"; +// Real pipe3.heatTransfer.heatPorts[5].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) \"Port temperature\"; +// Real pipe3.heatTransfer.heatPorts[5].Q_flow(quantity = \"Power\", unit = \"W\") \"Heat flow rate (positive if flowing from outside into the component)\"; +// Real pipe3.heatTransfer.Ts[1](quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) \"Temperatures defined by fluid states\"; +// Real pipe3.heatTransfer.Ts[2](quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) \"Temperatures defined by fluid states\"; +// Real pipe3.heatTransfer.Ts[3](quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) \"Temperatures defined by fluid states\"; +// Real pipe3.heatTransfer.Ts[4](quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) \"Temperatures defined by fluid states\"; +// Real pipe3.heatTransfer.Ts[5](quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) \"Temperatures defined by fluid states\"; +// final Real pipe3.heatTransfer.vs[1](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities of fluid flow in segments\"; +// final Real pipe3.heatTransfer.vs[2](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities of fluid flow in segments\"; +// final Real pipe3.heatTransfer.vs[3](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities of fluid flow in segments\"; +// final Real pipe3.heatTransfer.vs[4](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities of fluid flow in segments\"; +// final Real pipe3.heatTransfer.vs[5](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities of fluid flow in segments\"; +// final parameter Real pipe3.heatTransfer.nParallel = pipe3.nParallel \"number of identical parallel flow devices\"; +// final Real pipe3.heatTransfer.lengths[1](quantity = \"Length\", unit = \"m\") \"Lengths along flow path\"; +// final Real pipe3.heatTransfer.lengths[2](quantity = \"Length\", unit = \"m\") \"Lengths along flow path\"; +// final Real pipe3.heatTransfer.lengths[3](quantity = \"Length\", unit = \"m\") \"Lengths along flow path\"; +// final Real pipe3.heatTransfer.lengths[4](quantity = \"Length\", unit = \"m\") \"Lengths along flow path\"; +// final Real pipe3.heatTransfer.lengths[5](quantity = \"Length\", unit = \"m\") \"Lengths along flow path\"; +// final Real pipe3.heatTransfer.dimensions[1](quantity = \"Length\", unit = \"m\") \"Characteristic dimensions for fluid flow (diameter for pipe flow)\"; +// final Real pipe3.heatTransfer.dimensions[2](quantity = \"Length\", unit = \"m\") \"Characteristic dimensions for fluid flow (diameter for pipe flow)\"; +// final Real pipe3.heatTransfer.dimensions[3](quantity = \"Length\", unit = \"m\") \"Characteristic dimensions for fluid flow (diameter for pipe flow)\"; +// final Real pipe3.heatTransfer.dimensions[4](quantity = \"Length\", unit = \"m\") \"Characteristic dimensions for fluid flow (diameter for pipe flow)\"; +// final Real pipe3.heatTransfer.dimensions[5](quantity = \"Length\", unit = \"m\") \"Characteristic dimensions for fluid flow (diameter for pipe flow)\"; +// final Real pipe3.heatTransfer.roughnesses[1](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average heights of surface asperities\"; +// final Real pipe3.heatTransfer.roughnesses[2](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average heights of surface asperities\"; +// final Real pipe3.heatTransfer.roughnesses[3](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average heights of surface asperities\"; +// final Real pipe3.heatTransfer.roughnesses[4](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average heights of surface asperities\"; +// final Real pipe3.heatTransfer.roughnesses[5](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average heights of surface asperities\"; // final parameter Real pipe3.dxs[1] = 0.2; // final parameter Real pipe3.dxs[2] = 0.2; // final parameter Real pipe3.dxs[3] = 0.2; // final parameter Real pipe3.dxs[4] = 0.2; // final parameter Real pipe3.dxs[5] = 0.2; -// final parameter Boolean pipe4.allowFlowReversal = true; -// Real pipe4.port_a.m_flow(quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -9.999999999999999e+59, max = 100000.0); -// Real pipe4.port_a.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe4.port_a.h_outflow(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -10000000000.0, max = 10000000000.0, nominal = 1000000.0); -// Real pipe4.port_a.Xi_outflow[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// Real pipe4.port_b.m_flow(quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 9.999999999999999e+59); -// Real pipe4.port_b.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe4.port_b.h_outflow(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -10000000000.0, max = 10000000000.0, nominal = 1000000.0); -// Real pipe4.port_b.Xi_outflow[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected final parameter Boolean pipe4.n91 = false; -// protected final parameter Boolean pipe4.n92 = false; -// protected parameter Boolean pipe4.n93 = true; -// parameter Real pipe4.nParallel(min = 1.0) = 1.0; -// final parameter Real pipe4.length(quantity = \"Length\", unit = \"m\") = 50.0; -// parameter Boolean pipe4.isCircular = true; -// parameter Real pipe4.diameter(quantity = \"Length\", unit = \"m\", min = 0.0) = 0.0254; -// parameter Real pipe4.crossArea(quantity = \"Area\", unit = \"m2\") = 3.141592653589793 * pipe4.diameter * pipe4.diameter / 4.0; -// parameter Real pipe4.perimeter(quantity = \"Length\", unit = \"m\", min = 0.0) = 3.141592653589793 * pipe4.diameter; -// parameter Real pipe4.roughness(quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) = 2.5e-05; -// final parameter Real pipe4.V(quantity = \"Volume\", unit = \"m3\") = pipe4.crossArea * 50.0 * pipe4.nParallel; -// final parameter Real pipe4.height_ab(quantity = \"Length\", unit = \"m\") = 50.0; -// final parameter Integer pipe4.n = 5; -// final Real pipe4.fluidVolumes[1](quantity = \"Volume\", unit = \"m3\"); -// final Real pipe4.fluidVolumes[2](quantity = \"Volume\", unit = \"m3\"); -// final Real pipe4.fluidVolumes[3](quantity = \"Volume\", unit = \"m3\"); -// final Real pipe4.fluidVolumes[4](quantity = \"Volume\", unit = \"m3\"); -// final Real pipe4.fluidVolumes[5](quantity = \"Volume\", unit = \"m3\"); -// final parameter enumeration(DynamicFreeInitial, FixedInitial, SteadyStateInitial, SteadyState) pipe4.energyDynamics = Modelica.Fluid.Types.Dynamics.SteadyStateInitial; -// final parameter enumeration(DynamicFreeInitial, FixedInitial, SteadyStateInitial, SteadyState) pipe4.massDynamics = Modelica.Fluid.Types.Dynamics.SteadyStateInitial; -// final parameter enumeration(DynamicFreeInitial, FixedInitial, SteadyStateInitial, SteadyState) pipe4.substanceDynamics = Modelica.Fluid.Types.Dynamics.SteadyStateInitial; -// final parameter enumeration(DynamicFreeInitial, FixedInitial, SteadyStateInitial, SteadyState) pipe4.traceDynamics = Modelica.Fluid.Types.Dynamics.SteadyStateInitial; -// parameter Real pipe4.p_a_start(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = 120000.0; -// parameter Real pipe4.p_b_start(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = 100000.0; -// final parameter Real pipe4.ps_start[1](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe4.p_a_start; -// final parameter Real pipe4.ps_start[2](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe4.p_a_start + (pipe4.p_b_start - pipe4.p_a_start) / 4.0; -// final parameter Real pipe4.ps_start[3](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe4.p_a_start + (pipe4.p_b_start - pipe4.p_a_start) * 2.0 / 4.0; -// final parameter Real pipe4.ps_start[4](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe4.p_a_start + (pipe4.p_b_start - pipe4.p_a_start) * 3.0 / 4.0; -// final parameter Real pipe4.ps_start[5](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe4.p_a_start + (pipe4.p_b_start - pipe4.p_a_start) * 4.0 / 4.0; -// final parameter Boolean pipe4.use_T_start = true; -// parameter Real pipe4.T_start(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = system.T_start; -// parameter Real pipe4.h_start(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -10000000000.0, max = 10000000000.0, nominal = 1000000.0) = Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.Medium.specificEnthalpy_pTX((pipe4.p_a_start + pipe4.p_b_start) / 2.0, pipe4.T_start, pipe4.X_start); -// parameter Real pipe4.X_start[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) = 0.01; -// parameter Real pipe4.X_start[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) = 0.99; -// Real pipe4.Us[1](quantity = \"Energy\", unit = \"J\"); -// Real pipe4.Us[2](quantity = \"Energy\", unit = \"J\"); -// Real pipe4.Us[3](quantity = \"Energy\", unit = \"J\"); -// Real pipe4.Us[4](quantity = \"Energy\", unit = \"J\"); -// Real pipe4.Us[5](quantity = \"Energy\", unit = \"J\"); -// Real pipe4.ms[1](quantity = \"Mass\", unit = \"kg\", min = 0.0); -// Real pipe4.ms[2](quantity = \"Mass\", unit = \"kg\", min = 0.0); -// Real pipe4.ms[3](quantity = \"Mass\", unit = \"kg\", min = 0.0); -// Real pipe4.ms[4](quantity = \"Mass\", unit = \"kg\", min = 0.0); -// Real pipe4.ms[5](quantity = \"Mass\", unit = \"kg\", min = 0.0); -// Real pipe4.mXis[1,1](quantity = \"Mass\", unit = \"kg\", min = 0.0); -// Real pipe4.mXis[2,1](quantity = \"Mass\", unit = \"kg\", min = 0.0); -// Real pipe4.mXis[3,1](quantity = \"Mass\", unit = \"kg\", min = 0.0); -// Real pipe4.mXis[4,1](quantity = \"Mass\", unit = \"kg\", min = 0.0); -// Real pipe4.mXis[5,1](quantity = \"Mass\", unit = \"kg\", min = 0.0); -// Real pipe4.mediums[1].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, start = pipe4.ps_start[1], nominal = 100000.0, stateSelect = StateSelect.prefer); -// Real pipe4.mediums[1].Xi[1](quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0, start = pipe4.X_start[1], stateSelect = StateSelect.prefer); -// Real pipe4.mediums[1].h(quantity = \"SpecificEnergy\", unit = \"J/kg\", start = pipe4.h_start); -// Real pipe4.mediums[1].d(quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe4.mediums[1].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = pipe4.T_start, nominal = 300.0, stateSelect = StateSelect.prefer); -// Real pipe4.mediums[1].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe4.mediums[1].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// Real pipe4.mediums[1].u(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -100000000.0, max = 100000000.0, nominal = 1000000.0); -// Real pipe4.mediums[1].R(quantity = \"SpecificHeatCapacity\", unit = \"J/(kg.K)\", min = 0.0, max = 10000000.0, start = 1000.0, nominal = 1000.0); -// Real pipe4.mediums[1].MM(quantity = \"MolarMass\", unit = \"kg/mol\", min = 0.001, max = 0.25, nominal = 0.032); -// Real pipe4.mediums[1].state.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe4.mediums[1].state.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0); -// Real pipe4.mediums[1].state.X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe4.mediums[1].state.X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final parameter Boolean pipe4.mediums[1].preferredMediumStates = true; -// final parameter Boolean pipe4.mediums[1].standardOrderComponents = true; -// Real pipe4.mediums[1].T_degC(quantity = \"ThermodynamicTemperature\", unit = \"degC\") = Modelica.SIunits.Conversions.to_degC(pipe4.mediums[1].T); -// Real pipe4.mediums[1].p_bar(quantity = \"Pressure\", unit = \"bar\") = Modelica.SIunits.Conversions.to_bar(pipe4.mediums[1].p); -// Real pipe4.mediums[1].x_water(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// Real pipe4.mediums[1].phi; -// protected Real pipe4.mediums[1].n94(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe4.mediums[1].n95(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe4.mediums[1].n96(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe4.mediums[1].n97(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe4.mediums[1].n98(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe4.mediums[1].n99(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe4.mediums[2].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, start = pipe4.ps_start[2], nominal = 100000.0, stateSelect = StateSelect.prefer); -// Real pipe4.mediums[2].Xi[1](quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0, start = pipe4.X_start[1], stateSelect = StateSelect.prefer); -// Real pipe4.mediums[2].h(quantity = \"SpecificEnergy\", unit = \"J/kg\", start = pipe4.h_start); -// Real pipe4.mediums[2].d(quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe4.mediums[2].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = pipe4.T_start, nominal = 300.0, stateSelect = StateSelect.prefer); -// Real pipe4.mediums[2].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe4.mediums[2].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// Real pipe4.mediums[2].u(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -100000000.0, max = 100000000.0, nominal = 1000000.0); -// Real pipe4.mediums[2].R(quantity = \"SpecificHeatCapacity\", unit = \"J/(kg.K)\", min = 0.0, max = 10000000.0, start = 1000.0, nominal = 1000.0); -// Real pipe4.mediums[2].MM(quantity = \"MolarMass\", unit = \"kg/mol\", min = 0.001, max = 0.25, nominal = 0.032); -// Real pipe4.mediums[2].state.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe4.mediums[2].state.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0); -// Real pipe4.mediums[2].state.X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe4.mediums[2].state.X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final parameter Boolean pipe4.mediums[2].preferredMediumStates = true; -// final parameter Boolean pipe4.mediums[2].standardOrderComponents = true; -// Real pipe4.mediums[2].T_degC(quantity = \"ThermodynamicTemperature\", unit = \"degC\") = Modelica.SIunits.Conversions.to_degC(pipe4.mediums[2].T); -// Real pipe4.mediums[2].p_bar(quantity = \"Pressure\", unit = \"bar\") = Modelica.SIunits.Conversions.to_bar(pipe4.mediums[2].p); -// Real pipe4.mediums[2].x_water(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// Real pipe4.mediums[2].phi; -// protected Real pipe4.mediums[2].n94(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe4.mediums[2].n95(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe4.mediums[2].n96(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe4.mediums[2].n97(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe4.mediums[2].n98(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe4.mediums[2].n99(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe4.mediums[3].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, start = pipe4.ps_start[3], nominal = 100000.0, stateSelect = StateSelect.prefer); -// Real pipe4.mediums[3].Xi[1](quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0, start = pipe4.X_start[1], stateSelect = StateSelect.prefer); -// Real pipe4.mediums[3].h(quantity = \"SpecificEnergy\", unit = \"J/kg\", start = pipe4.h_start); -// Real pipe4.mediums[3].d(quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe4.mediums[3].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = pipe4.T_start, nominal = 300.0, stateSelect = StateSelect.prefer); -// Real pipe4.mediums[3].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe4.mediums[3].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// Real pipe4.mediums[3].u(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -100000000.0, max = 100000000.0, nominal = 1000000.0); -// Real pipe4.mediums[3].R(quantity = \"SpecificHeatCapacity\", unit = \"J/(kg.K)\", min = 0.0, max = 10000000.0, start = 1000.0, nominal = 1000.0); -// Real pipe4.mediums[3].MM(quantity = \"MolarMass\", unit = \"kg/mol\", min = 0.001, max = 0.25, nominal = 0.032); -// Real pipe4.mediums[3].state.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe4.mediums[3].state.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0); -// Real pipe4.mediums[3].state.X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe4.mediums[3].state.X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final parameter Boolean pipe4.mediums[3].preferredMediumStates = true; -// final parameter Boolean pipe4.mediums[3].standardOrderComponents = true; -// Real pipe4.mediums[3].T_degC(quantity = \"ThermodynamicTemperature\", unit = \"degC\") = Modelica.SIunits.Conversions.to_degC(pipe4.mediums[3].T); -// Real pipe4.mediums[3].p_bar(quantity = \"Pressure\", unit = \"bar\") = Modelica.SIunits.Conversions.to_bar(pipe4.mediums[3].p); -// Real pipe4.mediums[3].x_water(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// Real pipe4.mediums[3].phi; -// protected Real pipe4.mediums[3].n94(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe4.mediums[3].n95(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe4.mediums[3].n96(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe4.mediums[3].n97(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe4.mediums[3].n98(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe4.mediums[3].n99(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe4.mediums[4].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, start = pipe4.ps_start[4], nominal = 100000.0, stateSelect = StateSelect.prefer); -// Real pipe4.mediums[4].Xi[1](quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0, start = pipe4.X_start[1], stateSelect = StateSelect.prefer); -// Real pipe4.mediums[4].h(quantity = \"SpecificEnergy\", unit = \"J/kg\", start = pipe4.h_start); -// Real pipe4.mediums[4].d(quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe4.mediums[4].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = pipe4.T_start, nominal = 300.0, stateSelect = StateSelect.prefer); -// Real pipe4.mediums[4].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe4.mediums[4].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// Real pipe4.mediums[4].u(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -100000000.0, max = 100000000.0, nominal = 1000000.0); -// Real pipe4.mediums[4].R(quantity = \"SpecificHeatCapacity\", unit = \"J/(kg.K)\", min = 0.0, max = 10000000.0, start = 1000.0, nominal = 1000.0); -// Real pipe4.mediums[4].MM(quantity = \"MolarMass\", unit = \"kg/mol\", min = 0.001, max = 0.25, nominal = 0.032); -// Real pipe4.mediums[4].state.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe4.mediums[4].state.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0); -// Real pipe4.mediums[4].state.X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe4.mediums[4].state.X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final parameter Boolean pipe4.mediums[4].preferredMediumStates = true; -// final parameter Boolean pipe4.mediums[4].standardOrderComponents = true; -// Real pipe4.mediums[4].T_degC(quantity = \"ThermodynamicTemperature\", unit = \"degC\") = Modelica.SIunits.Conversions.to_degC(pipe4.mediums[4].T); -// Real pipe4.mediums[4].p_bar(quantity = \"Pressure\", unit = \"bar\") = Modelica.SIunits.Conversions.to_bar(pipe4.mediums[4].p); -// Real pipe4.mediums[4].x_water(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// Real pipe4.mediums[4].phi; -// protected Real pipe4.mediums[4].n94(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe4.mediums[4].n95(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe4.mediums[4].n96(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe4.mediums[4].n97(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe4.mediums[4].n98(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe4.mediums[4].n99(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe4.mediums[5].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, start = pipe4.ps_start[5], nominal = 100000.0, stateSelect = StateSelect.prefer); -// Real pipe4.mediums[5].Xi[1](quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0, start = pipe4.X_start[1], stateSelect = StateSelect.prefer); -// Real pipe4.mediums[5].h(quantity = \"SpecificEnergy\", unit = \"J/kg\", start = pipe4.h_start); -// Real pipe4.mediums[5].d(quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe4.mediums[5].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = pipe4.T_start, nominal = 300.0, stateSelect = StateSelect.prefer); -// Real pipe4.mediums[5].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe4.mediums[5].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// Real pipe4.mediums[5].u(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -100000000.0, max = 100000000.0, nominal = 1000000.0); -// Real pipe4.mediums[5].R(quantity = \"SpecificHeatCapacity\", unit = \"J/(kg.K)\", min = 0.0, max = 10000000.0, start = 1000.0, nominal = 1000.0); -// Real pipe4.mediums[5].MM(quantity = \"MolarMass\", unit = \"kg/mol\", min = 0.001, max = 0.25, nominal = 0.032); -// Real pipe4.mediums[5].state.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe4.mediums[5].state.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0); -// Real pipe4.mediums[5].state.X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe4.mediums[5].state.X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final parameter Boolean pipe4.mediums[5].preferredMediumStates = true; -// final parameter Boolean pipe4.mediums[5].standardOrderComponents = true; -// Real pipe4.mediums[5].T_degC(quantity = \"ThermodynamicTemperature\", unit = \"degC\") = Modelica.SIunits.Conversions.to_degC(pipe4.mediums[5].T); -// Real pipe4.mediums[5].p_bar(quantity = \"Pressure\", unit = \"bar\") = Modelica.SIunits.Conversions.to_bar(pipe4.mediums[5].p); -// Real pipe4.mediums[5].x_water(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// Real pipe4.mediums[5].phi; -// protected Real pipe4.mediums[5].n94(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe4.mediums[5].n95(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe4.mediums[5].n96(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe4.mediums[5].n97(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe4.mediums[5].n98(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real pipe4.mediums[5].n99(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe4.mb_flows[1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0); -// Real pipe4.mb_flows[2](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0); -// Real pipe4.mb_flows[3](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0); -// Real pipe4.mb_flows[4](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0); -// Real pipe4.mb_flows[5](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0); -// Real pipe4.mbXi_flows[1,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0); -// Real pipe4.mbXi_flows[2,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0); -// Real pipe4.mbXi_flows[3,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0); -// Real pipe4.mbXi_flows[4,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0); -// Real pipe4.mbXi_flows[5,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0); -// Real pipe4.Hb_flows[1](quantity = \"EnthalpyFlowRate\", unit = \"W\"); -// Real pipe4.Hb_flows[2](quantity = \"EnthalpyFlowRate\", unit = \"W\"); -// Real pipe4.Hb_flows[3](quantity = \"EnthalpyFlowRate\", unit = \"W\"); -// Real pipe4.Hb_flows[4](quantity = \"EnthalpyFlowRate\", unit = \"W\"); -// Real pipe4.Hb_flows[5](quantity = \"EnthalpyFlowRate\", unit = \"W\"); -// Real pipe4.Qb_flows[1](quantity = \"Power\", unit = \"W\"); -// Real pipe4.Qb_flows[2](quantity = \"Power\", unit = \"W\"); -// Real pipe4.Qb_flows[3](quantity = \"Power\", unit = \"W\"); -// Real pipe4.Qb_flows[4](quantity = \"Power\", unit = \"W\"); -// Real pipe4.Qb_flows[5](quantity = \"Power\", unit = \"W\"); -// Real pipe4.Wb_flows[1](quantity = \"Power\", unit = \"W\"); -// Real pipe4.Wb_flows[2](quantity = \"Power\", unit = \"W\"); -// Real pipe4.Wb_flows[3](quantity = \"Power\", unit = \"W\"); -// Real pipe4.Wb_flows[4](quantity = \"Power\", unit = \"W\"); -// Real pipe4.Wb_flows[5](quantity = \"Power\", unit = \"W\"); -// protected final parameter Boolean pipe4.n100 = true; -// final parameter Real pipe4.lengths[1](quantity = \"Length\", unit = \"m\") = 10.0; -// final parameter Real pipe4.lengths[2](quantity = \"Length\", unit = \"m\") = 10.0; -// final parameter Real pipe4.lengths[3](quantity = \"Length\", unit = \"m\") = 10.0; -// final parameter Real pipe4.lengths[4](quantity = \"Length\", unit = \"m\") = 10.0; -// final parameter Real pipe4.lengths[5](quantity = \"Length\", unit = \"m\") = 10.0; -// final parameter Real pipe4.crossAreas[1](quantity = \"Area\", unit = \"m2\") = pipe4.crossArea; -// final parameter Real pipe4.crossAreas[2](quantity = \"Area\", unit = \"m2\") = pipe4.crossArea; -// final parameter Real pipe4.crossAreas[3](quantity = \"Area\", unit = \"m2\") = pipe4.crossArea; -// final parameter Real pipe4.crossAreas[4](quantity = \"Area\", unit = \"m2\") = pipe4.crossArea; -// final parameter Real pipe4.crossAreas[5](quantity = \"Area\", unit = \"m2\") = pipe4.crossArea; -// final parameter Real pipe4.dimensions[1](quantity = \"Length\", unit = \"m\") = 4.0 * pipe4.crossArea / pipe4.perimeter; -// final parameter Real pipe4.dimensions[2](quantity = \"Length\", unit = \"m\") = 4.0 * pipe4.crossArea / pipe4.perimeter; -// final parameter Real pipe4.dimensions[3](quantity = \"Length\", unit = \"m\") = 4.0 * pipe4.crossArea / pipe4.perimeter; -// final parameter Real pipe4.dimensions[4](quantity = \"Length\", unit = \"m\") = 4.0 * pipe4.crossArea / pipe4.perimeter; -// final parameter Real pipe4.dimensions[5](quantity = \"Length\", unit = \"m\") = 4.0 * pipe4.crossArea / pipe4.perimeter; -// final parameter Real pipe4.roughnesses[1](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) = pipe4.roughness; -// final parameter Real pipe4.roughnesses[2](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) = pipe4.roughness; -// final parameter Real pipe4.roughnesses[3](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) = pipe4.roughness; -// final parameter Real pipe4.roughnesses[4](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) = pipe4.roughness; -// final parameter Real pipe4.roughnesses[5](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) = pipe4.roughness; -// final parameter Real pipe4.dheights[1](quantity = \"Length\", unit = \"m\") = 10.0; -// final parameter Real pipe4.dheights[2](quantity = \"Length\", unit = \"m\") = 10.0; -// final parameter Real pipe4.dheights[3](quantity = \"Length\", unit = \"m\") = 10.0; -// final parameter Real pipe4.dheights[4](quantity = \"Length\", unit = \"m\") = 10.0; -// final parameter Real pipe4.dheights[5](quantity = \"Length\", unit = \"m\") = 10.0; -// final parameter enumeration(DynamicFreeInitial, FixedInitial, SteadyStateInitial, SteadyState) pipe4.momentumDynamics = Modelica.Fluid.Types.Dynamics.SteadyStateInitial; -// final parameter Real pipe4.m_flow_start(quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0) = 0.02; -// final parameter Integer pipe4.nNodes(min = 1) = 5; -// final parameter enumeration(av_vb, a_v_b, av_b, a_vb) pipe4.modelStructure = Modelica.Fluid.Types.ModelStructure.a_v_b; -// final parameter Boolean pipe4.useLumpedPressure = false; -// final parameter Integer pipe4.nFM = 6; +// final parameter Boolean pipe4.allowFlowReversal = true \"= true to allow flow reversal, false restricts to design direction (port_a -> port_b)\"; +// Real pipe4.port_a.m_flow(quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e60, max = 1e5) \"Mass flow rate from the connection point into the component\"; +// Real pipe4.port_a.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Thermodynamic pressure in the connection point\"; +// Real pipe4.port_a.h_outflow(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -1e10, max = 1e10, nominal = 1e6) \"Specific thermodynamic enthalpy close to the connection point if m_flow < 0\"; +// Real pipe4.port_a.Xi_outflow[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Independent mixture mass fractions m_i/m close to the connection point if m_flow < 0\"; +// Real pipe4.port_b.m_flow(quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e60) \"Mass flow rate from the connection point into the component\"; +// Real pipe4.port_b.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Thermodynamic pressure in the connection point\"; +// Real pipe4.port_b.h_outflow(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -1e10, max = 1e10, nominal = 1e6) \"Specific thermodynamic enthalpy close to the connection point if m_flow < 0\"; +// Real pipe4.port_b.Xi_outflow[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Independent mixture mass fractions m_i/m close to the connection point if m_flow < 0\"; +// protected final parameter Boolean pipe4.n91 = false \"= true if port_a exposes the state of a fluid volume\"; +// protected final parameter Boolean pipe4.n92 = false \"= true if port_b.p exposes the state of a fluid volume\"; +// protected parameter Boolean pipe4.n93 = true \"= false to hide the arrow in the model icon\"; +// parameter Real pipe4.nParallel(min = 1.0) = 1.0 \"Number of identical parallel pipes\"; +// final parameter Real pipe4.length(quantity = \"Length\", unit = \"m\") = 50.0 \"Length\"; +// parameter Boolean pipe4.isCircular = true \"= true if cross sectional area is circular\"; +// parameter Real pipe4.diameter(quantity = \"Length\", unit = \"m\", min = 0.0) = 0.0254 \"Diameter of circular pipe\"; +// parameter Real pipe4.crossArea(quantity = \"Area\", unit = \"m2\") = 3.141592653589793 * pipe4.diameter * pipe4.diameter / 4.0 \"Inner cross section area\"; +// parameter Real pipe4.perimeter(quantity = \"Length\", unit = \"m\", min = 0.0) = 3.141592653589793 * pipe4.diameter \"Inner perimeter\"; +// parameter Real pipe4.roughness(quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) = 2.5e-5 \"Average height of surface asperities (default: smooth steel pipe)\"; +// final parameter Real pipe4.V(quantity = \"Volume\", unit = \"m3\") = pipe4.crossArea * 50.0 * pipe4.nParallel \"volume size\"; +// final parameter Real pipe4.height_ab(quantity = \"Length\", unit = \"m\") = 50.0 \"Height(port_b) - Height(port_a)\"; +// final parameter Integer pipe4.n = 5 \"Number of discrete volumes\"; +// final Real pipe4.fluidVolumes[1](quantity = \"Volume\", unit = \"m3\") \"Discretized volume, determine in inheriting class\"; +// final Real pipe4.fluidVolumes[2](quantity = \"Volume\", unit = \"m3\") \"Discretized volume, determine in inheriting class\"; +// final Real pipe4.fluidVolumes[3](quantity = \"Volume\", unit = \"m3\") \"Discretized volume, determine in inheriting class\"; +// final Real pipe4.fluidVolumes[4](quantity = \"Volume\", unit = \"m3\") \"Discretized volume, determine in inheriting class\"; +// final Real pipe4.fluidVolumes[5](quantity = \"Volume\", unit = \"m3\") \"Discretized volume, determine in inheriting class\"; +// final parameter enumeration(DynamicFreeInitial, FixedInitial, SteadyStateInitial, SteadyState) pipe4.energyDynamics = Modelica.Fluid.Types.Dynamics.SteadyStateInitial \"Formulation of energy balances\"; +// final parameter enumeration(DynamicFreeInitial, FixedInitial, SteadyStateInitial, SteadyState) pipe4.massDynamics = Modelica.Fluid.Types.Dynamics.SteadyStateInitial \"Formulation of mass balances\"; +// final parameter enumeration(DynamicFreeInitial, FixedInitial, SteadyStateInitial, SteadyState) pipe4.substanceDynamics = Modelica.Fluid.Types.Dynamics.SteadyStateInitial \"Formulation of substance balances\"; +// final parameter enumeration(DynamicFreeInitial, FixedInitial, SteadyStateInitial, SteadyState) pipe4.traceDynamics = Modelica.Fluid.Types.Dynamics.SteadyStateInitial \"Formulation of trace substance balances\"; +// parameter Real pipe4.p_a_start(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = 1.2e5 \"Start value of pressure at port a\"; +// parameter Real pipe4.p_b_start(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = 1e5 \"Start value of pressure at port b\"; +// final parameter Real pipe4.ps_start[1](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe4.p_a_start \"Start value of pressure\"; +// final parameter Real pipe4.ps_start[2](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe4.p_a_start + (pipe4.p_b_start - pipe4.p_a_start) / 4.0 \"Start value of pressure\"; +// final parameter Real pipe4.ps_start[3](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe4.p_a_start + (pipe4.p_b_start - pipe4.p_a_start) * 2.0 / 4.0 \"Start value of pressure\"; +// final parameter Real pipe4.ps_start[4](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe4.p_a_start + (pipe4.p_b_start - pipe4.p_a_start) * 3.0 / 4.0 \"Start value of pressure\"; +// final parameter Real pipe4.ps_start[5](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe4.p_a_start + (pipe4.p_b_start - pipe4.p_a_start) * 4.0 / 4.0 \"Start value of pressure\"; +// final parameter Boolean pipe4.use_T_start = true \"Use T_start if true, otherwise h_start\"; +// parameter Real pipe4.T_start(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = system.T_start \"Start value of temperature\"; +// parameter Real pipe4.h_start(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -1e10, max = 1e10, nominal = 1e6) = Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.Medium.specificEnthalpy_pTX((pipe4.p_a_start + pipe4.p_b_start) / 2.0, pipe4.T_start, pipe4.X_start) \"Start value of specific enthalpy\"; +// parameter Real pipe4.X_start[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) = 0.01 \"Start value of mass fractions m_i/m\"; +// parameter Real pipe4.X_start[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) = 0.99 \"Start value of mass fractions m_i/m\"; +// Real pipe4.Us[1](quantity = \"Energy\", unit = \"J\") \"Internal energy of fluid\"; +// Real pipe4.Us[2](quantity = \"Energy\", unit = \"J\") \"Internal energy of fluid\"; +// Real pipe4.Us[3](quantity = \"Energy\", unit = \"J\") \"Internal energy of fluid\"; +// Real pipe4.Us[4](quantity = \"Energy\", unit = \"J\") \"Internal energy of fluid\"; +// Real pipe4.Us[5](quantity = \"Energy\", unit = \"J\") \"Internal energy of fluid\"; +// Real pipe4.ms[1](quantity = \"Mass\", unit = \"kg\", min = 0.0) \"Fluid mass\"; +// Real pipe4.ms[2](quantity = \"Mass\", unit = \"kg\", min = 0.0) \"Fluid mass\"; +// Real pipe4.ms[3](quantity = \"Mass\", unit = \"kg\", min = 0.0) \"Fluid mass\"; +// Real pipe4.ms[4](quantity = \"Mass\", unit = \"kg\", min = 0.0) \"Fluid mass\"; +// Real pipe4.ms[5](quantity = \"Mass\", unit = \"kg\", min = 0.0) \"Fluid mass\"; +// Real pipe4.mXis[1,1](quantity = \"Mass\", unit = \"kg\", min = 0.0) \"Substance mass\"; +// Real pipe4.mXis[2,1](quantity = \"Mass\", unit = \"kg\", min = 0.0) \"Substance mass\"; +// Real pipe4.mXis[3,1](quantity = \"Mass\", unit = \"kg\", min = 0.0) \"Substance mass\"; +// Real pipe4.mXis[4,1](quantity = \"Mass\", unit = \"kg\", min = 0.0) \"Substance mass\"; +// Real pipe4.mXis[5,1](quantity = \"Mass\", unit = \"kg\", min = 0.0) \"Substance mass\"; +// Real pipe4.mediums[1].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, start = pipe4.ps_start[1], nominal = 1e5, stateSelect = StateSelect.prefer) \"Absolute pressure of medium\"; +// Real pipe4.mediums[1].Xi[1](quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0, start = pipe4.X_start[1], stateSelect = StateSelect.prefer) \"Structurally independent mass fractions\"; +// Real pipe4.mediums[1].h(quantity = \"SpecificEnergy\", unit = \"J/kg\", start = pipe4.h_start) \"Specific enthalpy of medium\"; +// Real pipe4.mediums[1].d(quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0) \"Density of medium\"; +// Real pipe4.mediums[1].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = pipe4.T_start, nominal = 300.0, stateSelect = StateSelect.prefer) \"Temperature of medium\"; +// Real pipe4.mediums[1].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe4.mediums[1].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe4.mediums[1].u(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -1e8, max = 1e8, nominal = 1e6) \"Specific internal energy of medium\"; +// Real pipe4.mediums[1].R(quantity = \"SpecificHeatCapacity\", unit = \"J/(kg.K)\", min = 0.0, max = 1e7, start = 1000.0, nominal = 1000.0) \"Gas constant (of mixture if applicable)\"; +// Real pipe4.mediums[1].MM(quantity = \"MolarMass\", unit = \"kg/mol\", min = 0.001, max = 0.25, nominal = 0.032) \"Molar mass (of mixture or single fluid)\"; +// Real pipe4.mediums[1].state.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Absolute pressure of medium\"; +// Real pipe4.mediums[1].state.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature of medium\"; +// Real pipe4.mediums[1].state.X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe4.mediums[1].state.X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final parameter Boolean pipe4.mediums[1].preferredMediumStates = true \"= true if StateSelect.prefer shall be used for the independent property variables of the medium\"; +// final parameter Boolean pipe4.mediums[1].standardOrderComponents = true \"If true, and reducedX = true, the last element of X will be computed from the other ones\"; +// Real pipe4.mediums[1].T_degC(quantity = \"ThermodynamicTemperature\", unit = \"degC\") = Modelica.SIunits.Conversions.to_degC(pipe4.mediums[1].T) \"Temperature of medium in [degC]\"; +// Real pipe4.mediums[1].p_bar(quantity = \"Pressure\", unit = \"bar\") = Modelica.SIunits.Conversions.to_bar(pipe4.mediums[1].p) \"Absolute pressure of medium in [bar]\"; +// Real pipe4.mediums[1].x_water(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass of total water/mass of dry air\"; +// Real pipe4.mediums[1].phi \"Relative humidity\"; +// protected Real pipe4.mediums[1].n94(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass fraction of liquid or solid water\"; +// protected Real pipe4.mediums[1].n95(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass fraction of steam water\"; +// protected Real pipe4.mediums[1].n96(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass fraction of air\"; +// protected Real pipe4.mediums[1].n97(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Steam water mass fraction of saturation boundary in kg_water/kg_moistair\"; +// protected Real pipe4.mediums[1].n98(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Steam water mass content of saturation boundary in kg_water/kg_dryair\"; +// protected Real pipe4.mediums[1].n99(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"partial saturation pressure of steam\"; +// Real pipe4.mediums[2].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, start = pipe4.ps_start[2], nominal = 1e5, stateSelect = StateSelect.prefer) \"Absolute pressure of medium\"; +// Real pipe4.mediums[2].Xi[1](quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0, start = pipe4.X_start[1], stateSelect = StateSelect.prefer) \"Structurally independent mass fractions\"; +// Real pipe4.mediums[2].h(quantity = \"SpecificEnergy\", unit = \"J/kg\", start = pipe4.h_start) \"Specific enthalpy of medium\"; +// Real pipe4.mediums[2].d(quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0) \"Density of medium\"; +// Real pipe4.mediums[2].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = pipe4.T_start, nominal = 300.0, stateSelect = StateSelect.prefer) \"Temperature of medium\"; +// Real pipe4.mediums[2].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe4.mediums[2].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe4.mediums[2].u(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -1e8, max = 1e8, nominal = 1e6) \"Specific internal energy of medium\"; +// Real pipe4.mediums[2].R(quantity = \"SpecificHeatCapacity\", unit = \"J/(kg.K)\", min = 0.0, max = 1e7, start = 1000.0, nominal = 1000.0) \"Gas constant (of mixture if applicable)\"; +// Real pipe4.mediums[2].MM(quantity = \"MolarMass\", unit = \"kg/mol\", min = 0.001, max = 0.25, nominal = 0.032) \"Molar mass (of mixture or single fluid)\"; +// Real pipe4.mediums[2].state.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Absolute pressure of medium\"; +// Real pipe4.mediums[2].state.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature of medium\"; +// Real pipe4.mediums[2].state.X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe4.mediums[2].state.X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final parameter Boolean pipe4.mediums[2].preferredMediumStates = true \"= true if StateSelect.prefer shall be used for the independent property variables of the medium\"; +// final parameter Boolean pipe4.mediums[2].standardOrderComponents = true \"If true, and reducedX = true, the last element of X will be computed from the other ones\"; +// Real pipe4.mediums[2].T_degC(quantity = \"ThermodynamicTemperature\", unit = \"degC\") = Modelica.SIunits.Conversions.to_degC(pipe4.mediums[2].T) \"Temperature of medium in [degC]\"; +// Real pipe4.mediums[2].p_bar(quantity = \"Pressure\", unit = \"bar\") = Modelica.SIunits.Conversions.to_bar(pipe4.mediums[2].p) \"Absolute pressure of medium in [bar]\"; +// Real pipe4.mediums[2].x_water(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass of total water/mass of dry air\"; +// Real pipe4.mediums[2].phi \"Relative humidity\"; +// protected Real pipe4.mediums[2].n94(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass fraction of liquid or solid water\"; +// protected Real pipe4.mediums[2].n95(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass fraction of steam water\"; +// protected Real pipe4.mediums[2].n96(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass fraction of air\"; +// protected Real pipe4.mediums[2].n97(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Steam water mass fraction of saturation boundary in kg_water/kg_moistair\"; +// protected Real pipe4.mediums[2].n98(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Steam water mass content of saturation boundary in kg_water/kg_dryair\"; +// protected Real pipe4.mediums[2].n99(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"partial saturation pressure of steam\"; +// Real pipe4.mediums[3].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, start = pipe4.ps_start[3], nominal = 1e5, stateSelect = StateSelect.prefer) \"Absolute pressure of medium\"; +// Real pipe4.mediums[3].Xi[1](quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0, start = pipe4.X_start[1], stateSelect = StateSelect.prefer) \"Structurally independent mass fractions\"; +// Real pipe4.mediums[3].h(quantity = \"SpecificEnergy\", unit = \"J/kg\", start = pipe4.h_start) \"Specific enthalpy of medium\"; +// Real pipe4.mediums[3].d(quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0) \"Density of medium\"; +// Real pipe4.mediums[3].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = pipe4.T_start, nominal = 300.0, stateSelect = StateSelect.prefer) \"Temperature of medium\"; +// Real pipe4.mediums[3].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe4.mediums[3].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe4.mediums[3].u(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -1e8, max = 1e8, nominal = 1e6) \"Specific internal energy of medium\"; +// Real pipe4.mediums[3].R(quantity = \"SpecificHeatCapacity\", unit = \"J/(kg.K)\", min = 0.0, max = 1e7, start = 1000.0, nominal = 1000.0) \"Gas constant (of mixture if applicable)\"; +// Real pipe4.mediums[3].MM(quantity = \"MolarMass\", unit = \"kg/mol\", min = 0.001, max = 0.25, nominal = 0.032) \"Molar mass (of mixture or single fluid)\"; +// Real pipe4.mediums[3].state.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Absolute pressure of medium\"; +// Real pipe4.mediums[3].state.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature of medium\"; +// Real pipe4.mediums[3].state.X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe4.mediums[3].state.X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final parameter Boolean pipe4.mediums[3].preferredMediumStates = true \"= true if StateSelect.prefer shall be used for the independent property variables of the medium\"; +// final parameter Boolean pipe4.mediums[3].standardOrderComponents = true \"If true, and reducedX = true, the last element of X will be computed from the other ones\"; +// Real pipe4.mediums[3].T_degC(quantity = \"ThermodynamicTemperature\", unit = \"degC\") = Modelica.SIunits.Conversions.to_degC(pipe4.mediums[3].T) \"Temperature of medium in [degC]\"; +// Real pipe4.mediums[3].p_bar(quantity = \"Pressure\", unit = \"bar\") = Modelica.SIunits.Conversions.to_bar(pipe4.mediums[3].p) \"Absolute pressure of medium in [bar]\"; +// Real pipe4.mediums[3].x_water(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass of total water/mass of dry air\"; +// Real pipe4.mediums[3].phi \"Relative humidity\"; +// protected Real pipe4.mediums[3].n94(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass fraction of liquid or solid water\"; +// protected Real pipe4.mediums[3].n95(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass fraction of steam water\"; +// protected Real pipe4.mediums[3].n96(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass fraction of air\"; +// protected Real pipe4.mediums[3].n97(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Steam water mass fraction of saturation boundary in kg_water/kg_moistair\"; +// protected Real pipe4.mediums[3].n98(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Steam water mass content of saturation boundary in kg_water/kg_dryair\"; +// protected Real pipe4.mediums[3].n99(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"partial saturation pressure of steam\"; +// Real pipe4.mediums[4].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, start = pipe4.ps_start[4], nominal = 1e5, stateSelect = StateSelect.prefer) \"Absolute pressure of medium\"; +// Real pipe4.mediums[4].Xi[1](quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0, start = pipe4.X_start[1], stateSelect = StateSelect.prefer) \"Structurally independent mass fractions\"; +// Real pipe4.mediums[4].h(quantity = \"SpecificEnergy\", unit = \"J/kg\", start = pipe4.h_start) \"Specific enthalpy of medium\"; +// Real pipe4.mediums[4].d(quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0) \"Density of medium\"; +// Real pipe4.mediums[4].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = pipe4.T_start, nominal = 300.0, stateSelect = StateSelect.prefer) \"Temperature of medium\"; +// Real pipe4.mediums[4].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe4.mediums[4].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe4.mediums[4].u(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -1e8, max = 1e8, nominal = 1e6) \"Specific internal energy of medium\"; +// Real pipe4.mediums[4].R(quantity = \"SpecificHeatCapacity\", unit = \"J/(kg.K)\", min = 0.0, max = 1e7, start = 1000.0, nominal = 1000.0) \"Gas constant (of mixture if applicable)\"; +// Real pipe4.mediums[4].MM(quantity = \"MolarMass\", unit = \"kg/mol\", min = 0.001, max = 0.25, nominal = 0.032) \"Molar mass (of mixture or single fluid)\"; +// Real pipe4.mediums[4].state.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Absolute pressure of medium\"; +// Real pipe4.mediums[4].state.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature of medium\"; +// Real pipe4.mediums[4].state.X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe4.mediums[4].state.X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final parameter Boolean pipe4.mediums[4].preferredMediumStates = true \"= true if StateSelect.prefer shall be used for the independent property variables of the medium\"; +// final parameter Boolean pipe4.mediums[4].standardOrderComponents = true \"If true, and reducedX = true, the last element of X will be computed from the other ones\"; +// Real pipe4.mediums[4].T_degC(quantity = \"ThermodynamicTemperature\", unit = \"degC\") = Modelica.SIunits.Conversions.to_degC(pipe4.mediums[4].T) \"Temperature of medium in [degC]\"; +// Real pipe4.mediums[4].p_bar(quantity = \"Pressure\", unit = \"bar\") = Modelica.SIunits.Conversions.to_bar(pipe4.mediums[4].p) \"Absolute pressure of medium in [bar]\"; +// Real pipe4.mediums[4].x_water(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass of total water/mass of dry air\"; +// Real pipe4.mediums[4].phi \"Relative humidity\"; +// protected Real pipe4.mediums[4].n94(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass fraction of liquid or solid water\"; +// protected Real pipe4.mediums[4].n95(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass fraction of steam water\"; +// protected Real pipe4.mediums[4].n96(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass fraction of air\"; +// protected Real pipe4.mediums[4].n97(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Steam water mass fraction of saturation boundary in kg_water/kg_moistair\"; +// protected Real pipe4.mediums[4].n98(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Steam water mass content of saturation boundary in kg_water/kg_dryair\"; +// protected Real pipe4.mediums[4].n99(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"partial saturation pressure of steam\"; +// Real pipe4.mediums[5].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, start = pipe4.ps_start[5], nominal = 1e5, stateSelect = StateSelect.prefer) \"Absolute pressure of medium\"; +// Real pipe4.mediums[5].Xi[1](quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0, start = pipe4.X_start[1], stateSelect = StateSelect.prefer) \"Structurally independent mass fractions\"; +// Real pipe4.mediums[5].h(quantity = \"SpecificEnergy\", unit = \"J/kg\", start = pipe4.h_start) \"Specific enthalpy of medium\"; +// Real pipe4.mediums[5].d(quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0) \"Density of medium\"; +// Real pipe4.mediums[5].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = pipe4.T_start, nominal = 300.0, stateSelect = StateSelect.prefer) \"Temperature of medium\"; +// Real pipe4.mediums[5].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe4.mediums[5].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe4.mediums[5].u(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -1e8, max = 1e8, nominal = 1e6) \"Specific internal energy of medium\"; +// Real pipe4.mediums[5].R(quantity = \"SpecificHeatCapacity\", unit = \"J/(kg.K)\", min = 0.0, max = 1e7, start = 1000.0, nominal = 1000.0) \"Gas constant (of mixture if applicable)\"; +// Real pipe4.mediums[5].MM(quantity = \"MolarMass\", unit = \"kg/mol\", min = 0.001, max = 0.25, nominal = 0.032) \"Molar mass (of mixture or single fluid)\"; +// Real pipe4.mediums[5].state.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Absolute pressure of medium\"; +// Real pipe4.mediums[5].state.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature of medium\"; +// Real pipe4.mediums[5].state.X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe4.mediums[5].state.X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final parameter Boolean pipe4.mediums[5].preferredMediumStates = true \"= true if StateSelect.prefer shall be used for the independent property variables of the medium\"; +// final parameter Boolean pipe4.mediums[5].standardOrderComponents = true \"If true, and reducedX = true, the last element of X will be computed from the other ones\"; +// Real pipe4.mediums[5].T_degC(quantity = \"ThermodynamicTemperature\", unit = \"degC\") = Modelica.SIunits.Conversions.to_degC(pipe4.mediums[5].T) \"Temperature of medium in [degC]\"; +// Real pipe4.mediums[5].p_bar(quantity = \"Pressure\", unit = \"bar\") = Modelica.SIunits.Conversions.to_bar(pipe4.mediums[5].p) \"Absolute pressure of medium in [bar]\"; +// Real pipe4.mediums[5].x_water(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass of total water/mass of dry air\"; +// Real pipe4.mediums[5].phi \"Relative humidity\"; +// protected Real pipe4.mediums[5].n94(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass fraction of liquid or solid water\"; +// protected Real pipe4.mediums[5].n95(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass fraction of steam water\"; +// protected Real pipe4.mediums[5].n96(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass fraction of air\"; +// protected Real pipe4.mediums[5].n97(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Steam water mass fraction of saturation boundary in kg_water/kg_moistair\"; +// protected Real pipe4.mediums[5].n98(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Steam water mass content of saturation boundary in kg_water/kg_dryair\"; +// protected Real pipe4.mediums[5].n99(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"partial saturation pressure of steam\"; +// Real pipe4.mb_flows[1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) \"Mass flow rate, source or sink\"; +// Real pipe4.mb_flows[2](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) \"Mass flow rate, source or sink\"; +// Real pipe4.mb_flows[3](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) \"Mass flow rate, source or sink\"; +// Real pipe4.mb_flows[4](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) \"Mass flow rate, source or sink\"; +// Real pipe4.mb_flows[5](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) \"Mass flow rate, source or sink\"; +// Real pipe4.mbXi_flows[1,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) \"Independent mass flow rates, source or sink\"; +// Real pipe4.mbXi_flows[2,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) \"Independent mass flow rates, source or sink\"; +// Real pipe4.mbXi_flows[3,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) \"Independent mass flow rates, source or sink\"; +// Real pipe4.mbXi_flows[4,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) \"Independent mass flow rates, source or sink\"; +// Real pipe4.mbXi_flows[5,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) \"Independent mass flow rates, source or sink\"; +// Real pipe4.Hb_flows[1](quantity = \"EnthalpyFlowRate\", unit = \"W\") \"Enthalpy flow rate, source or sink\"; +// Real pipe4.Hb_flows[2](quantity = \"EnthalpyFlowRate\", unit = \"W\") \"Enthalpy flow rate, source or sink\"; +// Real pipe4.Hb_flows[3](quantity = \"EnthalpyFlowRate\", unit = \"W\") \"Enthalpy flow rate, source or sink\"; +// Real pipe4.Hb_flows[4](quantity = \"EnthalpyFlowRate\", unit = \"W\") \"Enthalpy flow rate, source or sink\"; +// Real pipe4.Hb_flows[5](quantity = \"EnthalpyFlowRate\", unit = \"W\") \"Enthalpy flow rate, source or sink\"; +// Real pipe4.Qb_flows[1](quantity = \"Power\", unit = \"W\") \"Heat flow rate, source or sink\"; +// Real pipe4.Qb_flows[2](quantity = \"Power\", unit = \"W\") \"Heat flow rate, source or sink\"; +// Real pipe4.Qb_flows[3](quantity = \"Power\", unit = \"W\") \"Heat flow rate, source or sink\"; +// Real pipe4.Qb_flows[4](quantity = \"Power\", unit = \"W\") \"Heat flow rate, source or sink\"; +// Real pipe4.Qb_flows[5](quantity = \"Power\", unit = \"W\") \"Heat flow rate, source or sink\"; +// Real pipe4.Wb_flows[1](quantity = \"Power\", unit = \"W\") \"Mechanical power, p*der(V) etc.\"; +// Real pipe4.Wb_flows[2](quantity = \"Power\", unit = \"W\") \"Mechanical power, p*der(V) etc.\"; +// Real pipe4.Wb_flows[3](quantity = \"Power\", unit = \"W\") \"Mechanical power, p*der(V) etc.\"; +// Real pipe4.Wb_flows[4](quantity = \"Power\", unit = \"W\") \"Mechanical power, p*der(V) etc.\"; +// Real pipe4.Wb_flows[5](quantity = \"Power\", unit = \"W\") \"Mechanical power, p*der(V) etc.\"; +// protected final parameter Boolean pipe4.n100 = true \"= true to set up initial equations for pressure\"; +// final parameter Real pipe4.lengths[1](quantity = \"Length\", unit = \"m\") = 10.0 \"lengths of flow segments\"; +// final parameter Real pipe4.lengths[2](quantity = \"Length\", unit = \"m\") = 10.0 \"lengths of flow segments\"; +// final parameter Real pipe4.lengths[3](quantity = \"Length\", unit = \"m\") = 10.0 \"lengths of flow segments\"; +// final parameter Real pipe4.lengths[4](quantity = \"Length\", unit = \"m\") = 10.0 \"lengths of flow segments\"; +// final parameter Real pipe4.lengths[5](quantity = \"Length\", unit = \"m\") = 10.0 \"lengths of flow segments\"; +// final parameter Real pipe4.crossAreas[1](quantity = \"Area\", unit = \"m2\") = pipe4.crossArea \"cross flow areas of flow segments\"; +// final parameter Real pipe4.crossAreas[2](quantity = \"Area\", unit = \"m2\") = pipe4.crossArea \"cross flow areas of flow segments\"; +// final parameter Real pipe4.crossAreas[3](quantity = \"Area\", unit = \"m2\") = pipe4.crossArea \"cross flow areas of flow segments\"; +// final parameter Real pipe4.crossAreas[4](quantity = \"Area\", unit = \"m2\") = pipe4.crossArea \"cross flow areas of flow segments\"; +// final parameter Real pipe4.crossAreas[5](quantity = \"Area\", unit = \"m2\") = pipe4.crossArea \"cross flow areas of flow segments\"; +// final parameter Real pipe4.dimensions[1](quantity = \"Length\", unit = \"m\") = 4.0 * pipe4.crossArea / pipe4.perimeter \"hydraulic diameters of flow segments\"; +// final parameter Real pipe4.dimensions[2](quantity = \"Length\", unit = \"m\") = 4.0 * pipe4.crossArea / pipe4.perimeter \"hydraulic diameters of flow segments\"; +// final parameter Real pipe4.dimensions[3](quantity = \"Length\", unit = \"m\") = 4.0 * pipe4.crossArea / pipe4.perimeter \"hydraulic diameters of flow segments\"; +// final parameter Real pipe4.dimensions[4](quantity = \"Length\", unit = \"m\") = 4.0 * pipe4.crossArea / pipe4.perimeter \"hydraulic diameters of flow segments\"; +// final parameter Real pipe4.dimensions[5](quantity = \"Length\", unit = \"m\") = 4.0 * pipe4.crossArea / pipe4.perimeter \"hydraulic diameters of flow segments\"; +// final parameter Real pipe4.roughnesses[1](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) = pipe4.roughness \"Average heights of surface asperities\"; +// final parameter Real pipe4.roughnesses[2](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) = pipe4.roughness \"Average heights of surface asperities\"; +// final parameter Real pipe4.roughnesses[3](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) = pipe4.roughness \"Average heights of surface asperities\"; +// final parameter Real pipe4.roughnesses[4](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) = pipe4.roughness \"Average heights of surface asperities\"; +// final parameter Real pipe4.roughnesses[5](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) = pipe4.roughness \"Average heights of surface asperities\"; +// final parameter Real pipe4.dheights[1](quantity = \"Length\", unit = \"m\") = 10.0 \"Differences in heights of flow segments\"; +// final parameter Real pipe4.dheights[2](quantity = \"Length\", unit = \"m\") = 10.0 \"Differences in heights of flow segments\"; +// final parameter Real pipe4.dheights[3](quantity = \"Length\", unit = \"m\") = 10.0 \"Differences in heights of flow segments\"; +// final parameter Real pipe4.dheights[4](quantity = \"Length\", unit = \"m\") = 10.0 \"Differences in heights of flow segments\"; +// final parameter Real pipe4.dheights[5](quantity = \"Length\", unit = \"m\") = 10.0 \"Differences in heights of flow segments\"; +// final parameter enumeration(DynamicFreeInitial, FixedInitial, SteadyStateInitial, SteadyState) pipe4.momentumDynamics = Modelica.Fluid.Types.Dynamics.SteadyStateInitial \"Formulation of momentum balances\"; +// final parameter Real pipe4.m_flow_start(quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) = 0.02 \"Start value for mass flow rate\"; +// final parameter Integer pipe4.nNodes(min = 1) = 5 \"Number of discrete flow volumes\"; +// final parameter enumeration(av_vb, a_v_b, av_b, a_vb) pipe4.modelStructure = Modelica.Fluid.Types.ModelStructure.a_v_b \"Determines whether flow or volume models are present at the ports\"; +// final parameter Boolean pipe4.useLumpedPressure = false \"=true to lump pressure states together\"; +// final parameter Integer pipe4.nFM = 6 \"number of flow models in flowModel\"; // final parameter Integer pipe4.nFMDistributed = 6; // final parameter Integer pipe4.nFMLumped = 2; -// final parameter Integer pipe4.iLumped = 3; -// final parameter Boolean pipe4.useInnerPortProperties = false; -// Real pipe4.state_a.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe4.state_a.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0); -// Real pipe4.state_a.X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe4.state_a.X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// Real pipe4.state_b.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe4.state_b.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0); -// Real pipe4.state_b.X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe4.state_b.X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// Real pipe4.statesFM[1].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe4.statesFM[1].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0); -// Real pipe4.statesFM[1].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe4.statesFM[1].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// Real pipe4.statesFM[2].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe4.statesFM[2].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0); -// Real pipe4.statesFM[2].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe4.statesFM[2].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// Real pipe4.statesFM[3].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe4.statesFM[3].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0); -// Real pipe4.statesFM[3].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe4.statesFM[3].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// Real pipe4.statesFM[4].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe4.statesFM[4].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0); -// Real pipe4.statesFM[4].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe4.statesFM[4].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// Real pipe4.statesFM[5].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe4.statesFM[5].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0); -// Real pipe4.statesFM[5].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe4.statesFM[5].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// Real pipe4.statesFM[6].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe4.statesFM[6].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0); -// Real pipe4.statesFM[6].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe4.statesFM[6].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// Real pipe4.statesFM[7].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real pipe4.statesFM[7].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0); -// Real pipe4.statesFM[7].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real pipe4.statesFM[7].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final parameter Boolean pipe4.flowModel.from_dp = true; -// final parameter Integer pipe4.flowModel.n = 7; -// final Real pipe4.flowModel.states[1].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe4.statesFM[1].p; -// final Real pipe4.flowModel.states[1].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe4.statesFM[1].T; -// final Real pipe4.flowModel.states[1].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// final Real pipe4.flowModel.states[1].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final Real pipe4.flowModel.states[2].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe4.statesFM[2].p; -// final Real pipe4.flowModel.states[2].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe4.statesFM[2].T; -// final Real pipe4.flowModel.states[2].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// final Real pipe4.flowModel.states[2].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final Real pipe4.flowModel.states[3].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe4.statesFM[3].p; -// final Real pipe4.flowModel.states[3].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe4.statesFM[3].T; -// final Real pipe4.flowModel.states[3].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// final Real pipe4.flowModel.states[3].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final Real pipe4.flowModel.states[4].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe4.statesFM[4].p; -// final Real pipe4.flowModel.states[4].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe4.statesFM[4].T; -// final Real pipe4.flowModel.states[4].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// final Real pipe4.flowModel.states[4].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final Real pipe4.flowModel.states[5].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe4.statesFM[5].p; -// final Real pipe4.flowModel.states[5].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe4.statesFM[5].T; -// final Real pipe4.flowModel.states[5].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// final Real pipe4.flowModel.states[5].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final Real pipe4.flowModel.states[6].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe4.statesFM[6].p; -// final Real pipe4.flowModel.states[6].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe4.statesFM[6].T; -// final Real pipe4.flowModel.states[6].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// final Real pipe4.flowModel.states[6].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final Real pipe4.flowModel.states[7].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe4.statesFM[7].p; -// final Real pipe4.flowModel.states[7].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe4.statesFM[7].T; -// final Real pipe4.flowModel.states[7].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// final Real pipe4.flowModel.states[7].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final Real pipe4.flowModel.vs[1](quantity = \"Velocity\", unit = \"m/s\"); -// final Real pipe4.flowModel.vs[2](quantity = \"Velocity\", unit = \"m/s\"); -// final Real pipe4.flowModel.vs[3](quantity = \"Velocity\", unit = \"m/s\"); -// final Real pipe4.flowModel.vs[4](quantity = \"Velocity\", unit = \"m/s\"); -// final Real pipe4.flowModel.vs[5](quantity = \"Velocity\", unit = \"m/s\"); -// final Real pipe4.flowModel.vs[6](quantity = \"Velocity\", unit = \"m/s\"); -// final Real pipe4.flowModel.vs[7](quantity = \"Velocity\", unit = \"m/s\"); -// final parameter Real pipe4.flowModel.nParallel = pipe4.nParallel; -// final Real pipe4.flowModel.crossAreas[1](quantity = \"Area\", unit = \"m2\"); -// final Real pipe4.flowModel.crossAreas[2](quantity = \"Area\", unit = \"m2\"); -// final Real pipe4.flowModel.crossAreas[3](quantity = \"Area\", unit = \"m2\"); -// final Real pipe4.flowModel.crossAreas[4](quantity = \"Area\", unit = \"m2\"); -// final Real pipe4.flowModel.crossAreas[5](quantity = \"Area\", unit = \"m2\"); -// final Real pipe4.flowModel.crossAreas[6](quantity = \"Area\", unit = \"m2\"); -// final Real pipe4.flowModel.crossAreas[7](quantity = \"Area\", unit = \"m2\"); -// final Real pipe4.flowModel.dimensions[1](quantity = \"Length\", unit = \"m\"); -// final Real pipe4.flowModel.dimensions[2](quantity = \"Length\", unit = \"m\"); -// final Real pipe4.flowModel.dimensions[3](quantity = \"Length\", unit = \"m\"); -// final Real pipe4.flowModel.dimensions[4](quantity = \"Length\", unit = \"m\"); -// final Real pipe4.flowModel.dimensions[5](quantity = \"Length\", unit = \"m\"); -// final Real pipe4.flowModel.dimensions[6](quantity = \"Length\", unit = \"m\"); -// final Real pipe4.flowModel.dimensions[7](quantity = \"Length\", unit = \"m\"); -// final Real pipe4.flowModel.roughnesses[1](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); -// final Real pipe4.flowModel.roughnesses[2](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); -// final Real pipe4.flowModel.roughnesses[3](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); -// final Real pipe4.flowModel.roughnesses[4](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); -// final Real pipe4.flowModel.roughnesses[5](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); -// final Real pipe4.flowModel.roughnesses[6](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); -// final Real pipe4.flowModel.roughnesses[7](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); -// final Real pipe4.flowModel.dheights[1](quantity = \"Length\", unit = \"m\"); -// final Real pipe4.flowModel.dheights[2](quantity = \"Length\", unit = \"m\"); -// final Real pipe4.flowModel.dheights[3](quantity = \"Length\", unit = \"m\"); -// final Real pipe4.flowModel.dheights[4](quantity = \"Length\", unit = \"m\"); -// final Real pipe4.flowModel.dheights[5](quantity = \"Length\", unit = \"m\"); -// final Real pipe4.flowModel.dheights[6](quantity = \"Length\", unit = \"m\"); -// final parameter Real pipe4.flowModel.g(quantity = \"Acceleration\", unit = \"m/s2\") = system.g; -// final parameter Boolean pipe4.flowModel.allowFlowReversal = true; -// final parameter enumeration(DynamicFreeInitial, FixedInitial, SteadyStateInitial, SteadyState) pipe4.flowModel.momentumDynamics = Modelica.Fluid.Types.Dynamics.SteadyStateInitial; -// final parameter Real pipe4.flowModel.m_flow_start(quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0) = 0.02; -// final parameter Real pipe4.flowModel.p_a_start(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe4.p_a_start; -// final parameter Real pipe4.flowModel.p_b_start(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe4.p_b_start; -// final parameter Integer pipe4.flowModel.m = 6; -// final Real pipe4.flowModel.pathLengths[1](quantity = \"Length\", unit = \"m\"); -// final Real pipe4.flowModel.pathLengths[2](quantity = \"Length\", unit = \"m\"); -// final Real pipe4.flowModel.pathLengths[3](quantity = \"Length\", unit = \"m\"); -// final Real pipe4.flowModel.pathLengths[4](quantity = \"Length\", unit = \"m\"); -// final Real pipe4.flowModel.pathLengths[5](quantity = \"Length\", unit = \"m\"); -// final Real pipe4.flowModel.pathLengths[6](quantity = \"Length\", unit = \"m\"); -// Real pipe4.flowModel.m_flows[1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -9.999999999999999e+59, max = 100000.0, start = 0.02, stateSelect = StateSelect.prefer); -// Real pipe4.flowModel.m_flows[2](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -9.999999999999999e+59, max = 100000.0, start = 0.02, stateSelect = StateSelect.prefer); -// Real pipe4.flowModel.m_flows[3](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -9.999999999999999e+59, max = 100000.0, start = 0.02, stateSelect = StateSelect.prefer); -// Real pipe4.flowModel.m_flows[4](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -9.999999999999999e+59, max = 100000.0, start = 0.02, stateSelect = StateSelect.prefer); -// Real pipe4.flowModel.m_flows[5](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -9.999999999999999e+59, max = 100000.0, start = 0.02, stateSelect = StateSelect.prefer); -// Real pipe4.flowModel.m_flows[6](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -9.999999999999999e+59, max = 100000.0, start = 0.02, stateSelect = StateSelect.prefer); -// Real pipe4.flowModel.Is[1](quantity = \"Momentum\", unit = \"kg.m/s\"); -// Real pipe4.flowModel.Is[2](quantity = \"Momentum\", unit = \"kg.m/s\"); -// Real pipe4.flowModel.Is[3](quantity = \"Momentum\", unit = \"kg.m/s\"); -// Real pipe4.flowModel.Is[4](quantity = \"Momentum\", unit = \"kg.m/s\"); -// Real pipe4.flowModel.Is[5](quantity = \"Momentum\", unit = \"kg.m/s\"); -// Real pipe4.flowModel.Is[6](quantity = \"Momentum\", unit = \"kg.m/s\"); -// Real pipe4.flowModel.Ib_flows[1](quantity = \"Force\", unit = \"N\"); -// Real pipe4.flowModel.Ib_flows[2](quantity = \"Force\", unit = \"N\"); -// Real pipe4.flowModel.Ib_flows[3](quantity = \"Force\", unit = \"N\"); -// Real pipe4.flowModel.Ib_flows[4](quantity = \"Force\", unit = \"N\"); -// Real pipe4.flowModel.Ib_flows[5](quantity = \"Force\", unit = \"N\"); -// Real pipe4.flowModel.Ib_flows[6](quantity = \"Force\", unit = \"N\"); -// Real pipe4.flowModel.Fs_p[1](quantity = \"Force\", unit = \"N\"); -// Real pipe4.flowModel.Fs_p[2](quantity = \"Force\", unit = \"N\"); -// Real pipe4.flowModel.Fs_p[3](quantity = \"Force\", unit = \"N\"); -// Real pipe4.flowModel.Fs_p[4](quantity = \"Force\", unit = \"N\"); -// Real pipe4.flowModel.Fs_p[5](quantity = \"Force\", unit = \"N\"); -// Real pipe4.flowModel.Fs_p[6](quantity = \"Force\", unit = \"N\"); -// Real pipe4.flowModel.Fs_fg[1](quantity = \"Force\", unit = \"N\"); -// Real pipe4.flowModel.Fs_fg[2](quantity = \"Force\", unit = \"N\"); -// Real pipe4.flowModel.Fs_fg[3](quantity = \"Force\", unit = \"N\"); -// Real pipe4.flowModel.Fs_fg[4](quantity = \"Force\", unit = \"N\"); -// Real pipe4.flowModel.Fs_fg[5](quantity = \"Force\", unit = \"N\"); -// Real pipe4.flowModel.Fs_fg[6](quantity = \"Force\", unit = \"N\"); -// final parameter Boolean pipe4.flowModel.useUpstreamScheme = true; -// final parameter Boolean pipe4.flowModel.use_Ib_flows = true; -// Real pipe4.flowModel.rhos[1](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe4.flowModel.rhos[2](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe4.flowModel.rhos[3](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe4.flowModel.rhos[4](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe4.flowModel.rhos[5](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe4.flowModel.rhos[6](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe4.flowModel.rhos[7](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe4.flowModel.rhos_act[1](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe4.flowModel.rhos_act[2](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe4.flowModel.rhos_act[3](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe4.flowModel.rhos_act[4](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe4.flowModel.rhos_act[5](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe4.flowModel.rhos_act[6](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real pipe4.flowModel.mus[1](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 100000000.0, start = 0.001, nominal = 0.001); -// Real pipe4.flowModel.mus[2](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 100000000.0, start = 0.001, nominal = 0.001); -// Real pipe4.flowModel.mus[3](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 100000000.0, start = 0.001, nominal = 0.001); -// Real pipe4.flowModel.mus[4](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 100000000.0, start = 0.001, nominal = 0.001); -// Real pipe4.flowModel.mus[5](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 100000000.0, start = 0.001, nominal = 0.001); -// Real pipe4.flowModel.mus[6](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 100000000.0, start = 0.001, nominal = 0.001); -// Real pipe4.flowModel.mus[7](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 100000000.0, start = 0.001, nominal = 0.001); -// Real pipe4.flowModel.mus_act[1](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 100000000.0, start = 0.001, nominal = 0.001); -// Real pipe4.flowModel.mus_act[2](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 100000000.0, start = 0.001, nominal = 0.001); -// Real pipe4.flowModel.mus_act[3](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 100000000.0, start = 0.001, nominal = 0.001); -// Real pipe4.flowModel.mus_act[4](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 100000000.0, start = 0.001, nominal = 0.001); -// Real pipe4.flowModel.mus_act[5](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 100000000.0, start = 0.001, nominal = 0.001); -// Real pipe4.flowModel.mus_act[6](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 100000000.0, start = 0.001, nominal = 0.001); -// Real pipe4.flowModel.dps_fg[1](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", start = (pipe4.flowModel.p_a_start - pipe4.flowModel.p_b_start) / 6.0); -// Real pipe4.flowModel.dps_fg[2](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", start = (pipe4.flowModel.p_a_start - pipe4.flowModel.p_b_start) / 6.0); -// Real pipe4.flowModel.dps_fg[3](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", start = (pipe4.flowModel.p_a_start - pipe4.flowModel.p_b_start) / 6.0); -// Real pipe4.flowModel.dps_fg[4](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", start = (pipe4.flowModel.p_a_start - pipe4.flowModel.p_b_start) / 6.0); -// Real pipe4.flowModel.dps_fg[5](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", start = (pipe4.flowModel.p_a_start - pipe4.flowModel.p_b_start) / 6.0); -// Real pipe4.flowModel.dps_fg[6](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", start = (pipe4.flowModel.p_a_start - pipe4.flowModel.p_b_start) / 6.0); -// final parameter Real pipe4.flowModel.Re_turbulent(quantity = \"ReynoldsNumber\", unit = \"1\") = 4000.0; -// final parameter Boolean pipe4.flowModel.show_Res = false; -// protected final parameter Boolean pipe4.flowModel.n101 = false; -// protected parameter Real pipe4.flowModel.n102(quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0) = 1.196838693581092; -// protected final parameter Boolean pipe4.flowModel.n103 = false; -// protected parameter Real pipe4.flowModel.n104(quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0) = 1.823286547365138e-05; -// Real pipe4.flowModel.pathLengths_internal[1](quantity = \"Length\", unit = \"m\"); -// Real pipe4.flowModel.pathLengths_internal[2](quantity = \"Length\", unit = \"m\"); -// Real pipe4.flowModel.pathLengths_internal[3](quantity = \"Length\", unit = \"m\"); -// Real pipe4.flowModel.pathLengths_internal[4](quantity = \"Length\", unit = \"m\"); -// Real pipe4.flowModel.pathLengths_internal[5](quantity = \"Length\", unit = \"m\"); -// Real pipe4.flowModel.pathLengths_internal[6](quantity = \"Length\", unit = \"m\"); -// Real pipe4.flowModel.Res_turbulent_internal[1](quantity = \"ReynoldsNumber\", unit = \"1\"); -// Real pipe4.flowModel.Res_turbulent_internal[2](quantity = \"ReynoldsNumber\", unit = \"1\"); -// Real pipe4.flowModel.Res_turbulent_internal[3](quantity = \"ReynoldsNumber\", unit = \"1\"); -// Real pipe4.flowModel.Res_turbulent_internal[4](quantity = \"ReynoldsNumber\", unit = \"1\"); -// Real pipe4.flowModel.Res_turbulent_internal[5](quantity = \"ReynoldsNumber\", unit = \"1\"); -// Real pipe4.flowModel.Res_turbulent_internal[6](quantity = \"ReynoldsNumber\", unit = \"1\"); -// parameter Real pipe4.flowModel.dp_nominal(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, start = 1.0, fixed = false, nominal = 100000.0); -// parameter Real pipe4.flowModel.m_flow_nominal(quantity = \"MassFlowRate\", unit = \"kg/s\") = 100.0 * pipe4.flowModel.m_flow_small; -// parameter Real pipe4.flowModel.m_flow_small(quantity = \"MassFlowRate\", unit = \"kg/s\") = system.m_flow_small; -// protected parameter Real pipe4.flowModel.n105(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, start = 1.0, fixed = false, nominal = 100000.0); -// protected final parameter Boolean pipe4.flowModel.n106 = false; -// protected final parameter Boolean pipe4.flowModel.n107 = false; -// protected Real pipe4.flowModel.n108[1](quantity = \"Length\", unit = \"m\"); -// protected Real pipe4.flowModel.n108[2](quantity = \"Length\", unit = \"m\"); -// protected Real pipe4.flowModel.n108[3](quantity = \"Length\", unit = \"m\"); -// protected Real pipe4.flowModel.n108[4](quantity = \"Length\", unit = \"m\"); -// protected Real pipe4.flowModel.n108[5](quantity = \"Length\", unit = \"m\"); -// protected Real pipe4.flowModel.n108[6](quantity = \"Length\", unit = \"m\"); -// protected Real pipe4.flowModel.n109(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 100000.0) = Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.flowModel.WallFriction.pressureLoss_m_flow(pipe4.flowModel.m_flow_nominal / pipe4.flowModel.nParallel, pipe4.flowModel.n102, pipe4.flowModel.n102, pipe4.flowModel.n104, pipe4.flowModel.n104, pipe4.flowModel.pathLengths_internal[1], pipe4.flowModel.n108[1], (pipe4.flowModel.crossAreas[1] + pipe4.flowModel.crossAreas[2]) / 2.0, (pipe4.flowModel.roughnesses[1] + pipe4.flowModel.roughnesses[2]) / 2.0, pipe4.flowModel.m_flow_small / pipe4.flowModel.nParallel, pipe4.flowModel.Res_turbulent_internal[1]) + Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.flowModel.WallFriction.pressureLoss_m_flow(pipe4.flowModel.m_flow_nominal / pipe4.flowModel.nParallel, pipe4.flowModel.n102, pipe4.flowModel.n102, pipe4.flowModel.n104, pipe4.flowModel.n104, pipe4.flowModel.pathLengths_internal[2], pipe4.flowModel.n108[2], (pipe4.flowModel.crossAreas[2] + pipe4.flowModel.crossAreas[3]) / 2.0, (pipe4.flowModel.roughnesses[2] + pipe4.flowModel.roughnesses[3]) / 2.0, pipe4.flowModel.m_flow_small / pipe4.flowModel.nParallel, pipe4.flowModel.Res_turbulent_internal[2]) + Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.flowModel.WallFriction.pressureLoss_m_flow(pipe4.flowModel.m_flow_nominal / pipe4.flowModel.nParallel, pipe4.flowModel.n102, pipe4.flowModel.n102, pipe4.flowModel.n104, pipe4.flowModel.n104, pipe4.flowModel.pathLengths_internal[3], pipe4.flowModel.n108[3], (pipe4.flowModel.crossAreas[3] + pipe4.flowModel.crossAreas[4]) / 2.0, (pipe4.flowModel.roughnesses[3] + pipe4.flowModel.roughnesses[4]) / 2.0, pipe4.flowModel.m_flow_small / pipe4.flowModel.nParallel, pipe4.flowModel.Res_turbulent_internal[3]) + Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.flowModel.WallFriction.pressureLoss_m_flow(pipe4.flowModel.m_flow_nominal / pipe4.flowModel.nParallel, pipe4.flowModel.n102, pipe4.flowModel.n102, pipe4.flowModel.n104, pipe4.flowModel.n104, pipe4.flowModel.pathLengths_internal[4], pipe4.flowModel.n108[4], (pipe4.flowModel.crossAreas[4] + pipe4.flowModel.crossAreas[5]) / 2.0, (pipe4.flowModel.roughnesses[4] + pipe4.flowModel.roughnesses[5]) / 2.0, pipe4.flowModel.m_flow_small / pipe4.flowModel.nParallel, pipe4.flowModel.Res_turbulent_internal[4]) + Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.flowModel.WallFriction.pressureLoss_m_flow(pipe4.flowModel.m_flow_nominal / pipe4.flowModel.nParallel, pipe4.flowModel.n102, pipe4.flowModel.n102, pipe4.flowModel.n104, pipe4.flowModel.n104, pipe4.flowModel.pathLengths_internal[5], pipe4.flowModel.n108[5], (pipe4.flowModel.crossAreas[5] + pipe4.flowModel.crossAreas[6]) / 2.0, (pipe4.flowModel.roughnesses[5] + pipe4.flowModel.roughnesses[6]) / 2.0, pipe4.flowModel.m_flow_small / pipe4.flowModel.nParallel, pipe4.flowModel.Res_turbulent_internal[5]) + Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.flowModel.WallFriction.pressureLoss_m_flow(pipe4.flowModel.m_flow_nominal / pipe4.flowModel.nParallel, pipe4.flowModel.n102, pipe4.flowModel.n102, pipe4.flowModel.n104, pipe4.flowModel.n104, pipe4.flowModel.pathLengths_internal[6], pipe4.flowModel.n108[6], (pipe4.flowModel.crossAreas[6] + pipe4.flowModel.crossAreas[7]) / 2.0, (pipe4.flowModel.roughnesses[6] + pipe4.flowModel.roughnesses[7]) / 2.0, pipe4.flowModel.m_flow_small / pipe4.flowModel.nParallel, pipe4.flowModel.Res_turbulent_internal[6]); -// Real pipe4.m_flows[1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -9.999999999999999e+59, max = 100000.0, start = 0.02); -// Real pipe4.m_flows[2](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -9.999999999999999e+59, max = 100000.0, start = 0.02); -// Real pipe4.m_flows[3](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -9.999999999999999e+59, max = 100000.0, start = 0.02); -// Real pipe4.m_flows[4](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -9.999999999999999e+59, max = 100000.0, start = 0.02); -// Real pipe4.m_flows[5](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -9.999999999999999e+59, max = 100000.0, start = 0.02); -// Real pipe4.m_flows[6](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -9.999999999999999e+59, max = 100000.0, start = 0.02); -// Real pipe4.mXi_flows[1,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0); -// Real pipe4.mXi_flows[2,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0); -// Real pipe4.mXi_flows[3,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0); -// Real pipe4.mXi_flows[4,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0); -// Real pipe4.mXi_flows[5,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0); -// Real pipe4.mXi_flows[6,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -100000.0, max = 100000.0); -// Real pipe4.H_flows[1](quantity = \"EnthalpyFlowRate\", unit = \"W\", min = -100000000.0, max = 100000000.0, nominal = 1000.0); -// Real pipe4.H_flows[2](quantity = \"EnthalpyFlowRate\", unit = \"W\", min = -100000000.0, max = 100000000.0, nominal = 1000.0); -// Real pipe4.H_flows[3](quantity = \"EnthalpyFlowRate\", unit = \"W\", min = -100000000.0, max = 100000000.0, nominal = 1000.0); -// Real pipe4.H_flows[4](quantity = \"EnthalpyFlowRate\", unit = \"W\", min = -100000000.0, max = 100000000.0, nominal = 1000.0); -// Real pipe4.H_flows[5](quantity = \"EnthalpyFlowRate\", unit = \"W\", min = -100000000.0, max = 100000000.0, nominal = 1000.0); -// Real pipe4.H_flows[6](quantity = \"EnthalpyFlowRate\", unit = \"W\", min = -100000000.0, max = 100000000.0, nominal = 1000.0); -// Real pipe4.vs[1](quantity = \"Velocity\", unit = \"m/s\"); -// Real pipe4.vs[2](quantity = \"Velocity\", unit = \"m/s\"); -// Real pipe4.vs[3](quantity = \"Velocity\", unit = \"m/s\"); -// Real pipe4.vs[4](quantity = \"Velocity\", unit = \"m/s\"); -// Real pipe4.vs[5](quantity = \"Velocity\", unit = \"m/s\"); -// protected Real pipe4.n110[1](quantity = \"Length\", unit = \"m\"); -// protected Real pipe4.n110[2](quantity = \"Length\", unit = \"m\"); -// protected Real pipe4.n110[3](quantity = \"Length\", unit = \"m\"); -// protected Real pipe4.n110[4](quantity = \"Length\", unit = \"m\"); -// protected Real pipe4.n110[5](quantity = \"Length\", unit = \"m\"); -// protected Real pipe4.n110[6](quantity = \"Length\", unit = \"m\"); -// protected Real pipe4.n111[1](quantity = \"Length\", unit = \"m\"); -// protected Real pipe4.n111[2](quantity = \"Length\", unit = \"m\"); -// protected Real pipe4.n111[3](quantity = \"Length\", unit = \"m\"); -// protected Real pipe4.n111[4](quantity = \"Length\", unit = \"m\"); -// protected Real pipe4.n111[5](quantity = \"Length\", unit = \"m\"); -// protected Real pipe4.n111[6](quantity = \"Length\", unit = \"m\"); -// protected Real pipe4.n112[1](quantity = \"Area\", unit = \"m2\"); -// protected Real pipe4.n112[2](quantity = \"Area\", unit = \"m2\"); -// protected Real pipe4.n112[3](quantity = \"Area\", unit = \"m2\"); -// protected Real pipe4.n112[4](quantity = \"Area\", unit = \"m2\"); -// protected Real pipe4.n112[5](quantity = \"Area\", unit = \"m2\"); -// protected Real pipe4.n112[6](quantity = \"Area\", unit = \"m2\"); -// protected Real pipe4.n112[7](quantity = \"Area\", unit = \"m2\"); -// protected Real pipe4.n113[1](quantity = \"Velocity\", unit = \"m/s\"); -// protected Real pipe4.n113[2](quantity = \"Velocity\", unit = \"m/s\"); -// protected Real pipe4.n113[3](quantity = \"Velocity\", unit = \"m/s\"); -// protected Real pipe4.n113[4](quantity = \"Velocity\", unit = \"m/s\"); -// protected Real pipe4.n113[5](quantity = \"Velocity\", unit = \"m/s\"); -// protected Real pipe4.n113[6](quantity = \"Velocity\", unit = \"m/s\"); -// protected Real pipe4.n113[7](quantity = \"Velocity\", unit = \"m/s\"); -// protected Real pipe4.n114[1](quantity = \"Length\", unit = \"m\"); -// protected Real pipe4.n114[2](quantity = \"Length\", unit = \"m\"); -// protected Real pipe4.n114[3](quantity = \"Length\", unit = \"m\"); -// protected Real pipe4.n114[4](quantity = \"Length\", unit = \"m\"); -// protected Real pipe4.n114[5](quantity = \"Length\", unit = \"m\"); -// protected Real pipe4.n114[6](quantity = \"Length\", unit = \"m\"); -// protected Real pipe4.n114[7](quantity = \"Length\", unit = \"m\"); -// protected Real pipe4.n115[1](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); -// protected Real pipe4.n115[2](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); -// protected Real pipe4.n115[3](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); -// protected Real pipe4.n115[4](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); -// protected Real pipe4.n115[5](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); -// protected Real pipe4.n115[6](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); -// protected Real pipe4.n115[7](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); -// final parameter Boolean pipe4.use_HeatTransfer = false; -// final parameter Integer pipe4.heatTransfer.n = 5; -// final Real pipe4.heatTransfer.states[1].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe4.mediums[1].state.p; -// final Real pipe4.heatTransfer.states[1].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe4.mediums[1].state.T; -// final Real pipe4.heatTransfer.states[1].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// final Real pipe4.heatTransfer.states[1].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final Real pipe4.heatTransfer.states[2].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe4.mediums[2].state.p; -// final Real pipe4.heatTransfer.states[2].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe4.mediums[2].state.T; -// final Real pipe4.heatTransfer.states[2].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// final Real pipe4.heatTransfer.states[2].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final Real pipe4.heatTransfer.states[3].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe4.mediums[3].state.p; -// final Real pipe4.heatTransfer.states[3].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe4.mediums[3].state.T; -// final Real pipe4.heatTransfer.states[3].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// final Real pipe4.heatTransfer.states[3].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final Real pipe4.heatTransfer.states[4].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe4.mediums[4].state.p; -// final Real pipe4.heatTransfer.states[4].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe4.mediums[4].state.T; -// final Real pipe4.heatTransfer.states[4].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// final Real pipe4.heatTransfer.states[4].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final Real pipe4.heatTransfer.states[5].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = pipe4.mediums[5].state.p; -// final Real pipe4.heatTransfer.states[5].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe4.mediums[5].state.T; -// final Real pipe4.heatTransfer.states[5].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// final Real pipe4.heatTransfer.states[5].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final Real pipe4.heatTransfer.surfaceAreas[1](quantity = \"Area\", unit = \"m2\"); -// final Real pipe4.heatTransfer.surfaceAreas[2](quantity = \"Area\", unit = \"m2\"); -// final Real pipe4.heatTransfer.surfaceAreas[3](quantity = \"Area\", unit = \"m2\"); -// final Real pipe4.heatTransfer.surfaceAreas[4](quantity = \"Area\", unit = \"m2\"); -// final Real pipe4.heatTransfer.surfaceAreas[5](quantity = \"Area\", unit = \"m2\"); -// Real pipe4.heatTransfer.Q_flows[1](quantity = \"Power\", unit = \"W\"); -// Real pipe4.heatTransfer.Q_flows[2](quantity = \"Power\", unit = \"W\"); -// Real pipe4.heatTransfer.Q_flows[3](quantity = \"Power\", unit = \"W\"); -// Real pipe4.heatTransfer.Q_flows[4](quantity = \"Power\", unit = \"W\"); -// Real pipe4.heatTransfer.Q_flows[5](quantity = \"Power\", unit = \"W\"); -// final parameter Boolean pipe4.heatTransfer.use_k = false; -// final parameter Real pipe4.heatTransfer.k(quantity = \"CoefficientOfHeatTransfer\", unit = \"W/(m2.K)\") = 0.0; -// parameter Real pipe4.heatTransfer.T_ambient(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) = system.T_ambient; -// Real pipe4.heatTransfer.heatPorts[1].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0); -// Real pipe4.heatTransfer.heatPorts[1].Q_flow(quantity = \"Power\", unit = \"W\"); -// Real pipe4.heatTransfer.heatPorts[2].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0); -// Real pipe4.heatTransfer.heatPorts[2].Q_flow(quantity = \"Power\", unit = \"W\"); -// Real pipe4.heatTransfer.heatPorts[3].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0); -// Real pipe4.heatTransfer.heatPorts[3].Q_flow(quantity = \"Power\", unit = \"W\"); -// Real pipe4.heatTransfer.heatPorts[4].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0); -// Real pipe4.heatTransfer.heatPorts[4].Q_flow(quantity = \"Power\", unit = \"W\"); -// Real pipe4.heatTransfer.heatPorts[5].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0); -// Real pipe4.heatTransfer.heatPorts[5].Q_flow(quantity = \"Power\", unit = \"W\"); -// Real pipe4.heatTransfer.Ts[1](quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0); -// Real pipe4.heatTransfer.Ts[2](quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0); -// Real pipe4.heatTransfer.Ts[3](quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0); -// Real pipe4.heatTransfer.Ts[4](quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0); -// Real pipe4.heatTransfer.Ts[5](quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0); -// final Real pipe4.heatTransfer.vs[1](quantity = \"Velocity\", unit = \"m/s\"); -// final Real pipe4.heatTransfer.vs[2](quantity = \"Velocity\", unit = \"m/s\"); -// final Real pipe4.heatTransfer.vs[3](quantity = \"Velocity\", unit = \"m/s\"); -// final Real pipe4.heatTransfer.vs[4](quantity = \"Velocity\", unit = \"m/s\"); -// final Real pipe4.heatTransfer.vs[5](quantity = \"Velocity\", unit = \"m/s\"); -// final parameter Real pipe4.heatTransfer.nParallel = pipe4.nParallel; -// final Real pipe4.heatTransfer.lengths[1](quantity = \"Length\", unit = \"m\"); -// final Real pipe4.heatTransfer.lengths[2](quantity = \"Length\", unit = \"m\"); -// final Real pipe4.heatTransfer.lengths[3](quantity = \"Length\", unit = \"m\"); -// final Real pipe4.heatTransfer.lengths[4](quantity = \"Length\", unit = \"m\"); -// final Real pipe4.heatTransfer.lengths[5](quantity = \"Length\", unit = \"m\"); -// final Real pipe4.heatTransfer.dimensions[1](quantity = \"Length\", unit = \"m\"); -// final Real pipe4.heatTransfer.dimensions[2](quantity = \"Length\", unit = \"m\"); -// final Real pipe4.heatTransfer.dimensions[3](quantity = \"Length\", unit = \"m\"); -// final Real pipe4.heatTransfer.dimensions[4](quantity = \"Length\", unit = \"m\"); -// final Real pipe4.heatTransfer.dimensions[5](quantity = \"Length\", unit = \"m\"); -// final Real pipe4.heatTransfer.roughnesses[1](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); -// final Real pipe4.heatTransfer.roughnesses[2](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); -// final Real pipe4.heatTransfer.roughnesses[3](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); -// final Real pipe4.heatTransfer.roughnesses[4](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); -// final Real pipe4.heatTransfer.roughnesses[5](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0); +// final parameter Integer pipe4.iLumped = 3 \"Index of control volume with representative state if useLumpedPressure\"; +// final parameter Boolean pipe4.useInnerPortProperties = false \"=true to take port properties for flow models from internal control volumes\"; +// Real pipe4.state_a.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Absolute pressure of medium\"; +// Real pipe4.state_a.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature of medium\"; +// Real pipe4.state_a.X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe4.state_a.X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe4.state_b.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Absolute pressure of medium\"; +// Real pipe4.state_b.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature of medium\"; +// Real pipe4.state_b.X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe4.state_b.X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe4.statesFM[1].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Absolute pressure of medium\"; +// Real pipe4.statesFM[1].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature of medium\"; +// Real pipe4.statesFM[1].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe4.statesFM[1].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe4.statesFM[2].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Absolute pressure of medium\"; +// Real pipe4.statesFM[2].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature of medium\"; +// Real pipe4.statesFM[2].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe4.statesFM[2].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe4.statesFM[3].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Absolute pressure of medium\"; +// Real pipe4.statesFM[3].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature of medium\"; +// Real pipe4.statesFM[3].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe4.statesFM[3].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe4.statesFM[4].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Absolute pressure of medium\"; +// Real pipe4.statesFM[4].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature of medium\"; +// Real pipe4.statesFM[4].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe4.statesFM[4].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe4.statesFM[5].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Absolute pressure of medium\"; +// Real pipe4.statesFM[5].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature of medium\"; +// Real pipe4.statesFM[5].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe4.statesFM[5].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe4.statesFM[6].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Absolute pressure of medium\"; +// Real pipe4.statesFM[6].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature of medium\"; +// Real pipe4.statesFM[6].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe4.statesFM[6].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe4.statesFM[7].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Absolute pressure of medium\"; +// Real pipe4.statesFM[7].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature of medium\"; +// Real pipe4.statesFM[7].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real pipe4.statesFM[7].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final parameter Boolean pipe4.flowModel.from_dp = true \"= true, use m_flow = f(dp), otherwise dp = f(m_flow)\"; +// final parameter Integer pipe4.flowModel.n = 7 \"Number of discrete flow volumes\"; +// final Real pipe4.flowModel.states[1].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe4.statesFM[1].p \"Absolute pressure of medium\"; +// final Real pipe4.flowModel.states[1].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe4.statesFM[1].T \"Temperature of medium\"; +// final Real pipe4.flowModel.states[1].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe4.flowModel.states[1].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe4.flowModel.states[2].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe4.statesFM[2].p \"Absolute pressure of medium\"; +// final Real pipe4.flowModel.states[2].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe4.statesFM[2].T \"Temperature of medium\"; +// final Real pipe4.flowModel.states[2].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe4.flowModel.states[2].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe4.flowModel.states[3].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe4.statesFM[3].p \"Absolute pressure of medium\"; +// final Real pipe4.flowModel.states[3].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe4.statesFM[3].T \"Temperature of medium\"; +// final Real pipe4.flowModel.states[3].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe4.flowModel.states[3].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe4.flowModel.states[4].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe4.statesFM[4].p \"Absolute pressure of medium\"; +// final Real pipe4.flowModel.states[4].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe4.statesFM[4].T \"Temperature of medium\"; +// final Real pipe4.flowModel.states[4].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe4.flowModel.states[4].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe4.flowModel.states[5].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe4.statesFM[5].p \"Absolute pressure of medium\"; +// final Real pipe4.flowModel.states[5].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe4.statesFM[5].T \"Temperature of medium\"; +// final Real pipe4.flowModel.states[5].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe4.flowModel.states[5].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe4.flowModel.states[6].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe4.statesFM[6].p \"Absolute pressure of medium\"; +// final Real pipe4.flowModel.states[6].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe4.statesFM[6].T \"Temperature of medium\"; +// final Real pipe4.flowModel.states[6].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe4.flowModel.states[6].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe4.flowModel.states[7].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe4.statesFM[7].p \"Absolute pressure of medium\"; +// final Real pipe4.flowModel.states[7].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe4.statesFM[7].T \"Temperature of medium\"; +// final Real pipe4.flowModel.states[7].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe4.flowModel.states[7].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe4.flowModel.vs[1](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities of fluid flow\"; +// final Real pipe4.flowModel.vs[2](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities of fluid flow\"; +// final Real pipe4.flowModel.vs[3](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities of fluid flow\"; +// final Real pipe4.flowModel.vs[4](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities of fluid flow\"; +// final Real pipe4.flowModel.vs[5](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities of fluid flow\"; +// final Real pipe4.flowModel.vs[6](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities of fluid flow\"; +// final Real pipe4.flowModel.vs[7](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities of fluid flow\"; +// final parameter Real pipe4.flowModel.nParallel = pipe4.nParallel \"number of identical parallel flow devices\"; +// final Real pipe4.flowModel.crossAreas[1](quantity = \"Area\", unit = \"m2\") \"Cross flow areas at segment boundaries\"; +// final Real pipe4.flowModel.crossAreas[2](quantity = \"Area\", unit = \"m2\") \"Cross flow areas at segment boundaries\"; +// final Real pipe4.flowModel.crossAreas[3](quantity = \"Area\", unit = \"m2\") \"Cross flow areas at segment boundaries\"; +// final Real pipe4.flowModel.crossAreas[4](quantity = \"Area\", unit = \"m2\") \"Cross flow areas at segment boundaries\"; +// final Real pipe4.flowModel.crossAreas[5](quantity = \"Area\", unit = \"m2\") \"Cross flow areas at segment boundaries\"; +// final Real pipe4.flowModel.crossAreas[6](quantity = \"Area\", unit = \"m2\") \"Cross flow areas at segment boundaries\"; +// final Real pipe4.flowModel.crossAreas[7](quantity = \"Area\", unit = \"m2\") \"Cross flow areas at segment boundaries\"; +// final Real pipe4.flowModel.dimensions[1](quantity = \"Length\", unit = \"m\") \"Characteristic dimensions for fluid flow (diameters for pipe flow)\"; +// final Real pipe4.flowModel.dimensions[2](quantity = \"Length\", unit = \"m\") \"Characteristic dimensions for fluid flow (diameters for pipe flow)\"; +// final Real pipe4.flowModel.dimensions[3](quantity = \"Length\", unit = \"m\") \"Characteristic dimensions for fluid flow (diameters for pipe flow)\"; +// final Real pipe4.flowModel.dimensions[4](quantity = \"Length\", unit = \"m\") \"Characteristic dimensions for fluid flow (diameters for pipe flow)\"; +// final Real pipe4.flowModel.dimensions[5](quantity = \"Length\", unit = \"m\") \"Characteristic dimensions for fluid flow (diameters for pipe flow)\"; +// final Real pipe4.flowModel.dimensions[6](quantity = \"Length\", unit = \"m\") \"Characteristic dimensions for fluid flow (diameters for pipe flow)\"; +// final Real pipe4.flowModel.dimensions[7](quantity = \"Length\", unit = \"m\") \"Characteristic dimensions for fluid flow (diameters for pipe flow)\"; +// final Real pipe4.flowModel.roughnesses[1](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average height of surface asperities\"; +// final Real pipe4.flowModel.roughnesses[2](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average height of surface asperities\"; +// final Real pipe4.flowModel.roughnesses[3](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average height of surface asperities\"; +// final Real pipe4.flowModel.roughnesses[4](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average height of surface asperities\"; +// final Real pipe4.flowModel.roughnesses[5](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average height of surface asperities\"; +// final Real pipe4.flowModel.roughnesses[6](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average height of surface asperities\"; +// final Real pipe4.flowModel.roughnesses[7](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average height of surface asperities\"; +// final Real pipe4.flowModel.dheights[1](quantity = \"Length\", unit = \"m\") \"Height(states[2:n]) - Height(states[1:n-1])\"; +// final Real pipe4.flowModel.dheights[2](quantity = \"Length\", unit = \"m\") \"Height(states[2:n]) - Height(states[1:n-1])\"; +// final Real pipe4.flowModel.dheights[3](quantity = \"Length\", unit = \"m\") \"Height(states[2:n]) - Height(states[1:n-1])\"; +// final Real pipe4.flowModel.dheights[4](quantity = \"Length\", unit = \"m\") \"Height(states[2:n]) - Height(states[1:n-1])\"; +// final Real pipe4.flowModel.dheights[5](quantity = \"Length\", unit = \"m\") \"Height(states[2:n]) - Height(states[1:n-1])\"; +// final Real pipe4.flowModel.dheights[6](quantity = \"Length\", unit = \"m\") \"Height(states[2:n]) - Height(states[1:n-1])\"; +// final parameter Real pipe4.flowModel.g(quantity = \"Acceleration\", unit = \"m/s2\") = system.g \"Constant gravity acceleration\"; +// final parameter Boolean pipe4.flowModel.allowFlowReversal = true \"= true to allow flow reversal, false restricts to design direction (states[1] -> states[n+1])\"; +// final parameter enumeration(DynamicFreeInitial, FixedInitial, SteadyStateInitial, SteadyState) pipe4.flowModel.momentumDynamics = Modelica.Fluid.Types.Dynamics.SteadyStateInitial \"Formulation of momentum balance\"; +// final parameter Real pipe4.flowModel.m_flow_start(quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) = 0.02 \"Start value of mass flow rates\"; +// final parameter Real pipe4.flowModel.p_a_start(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe4.p_a_start \"Start value for p[1] at design inflow\"; +// final parameter Real pipe4.flowModel.p_b_start(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe4.p_b_start \"Start value for p[n+1] at design outflow\"; +// final parameter Integer pipe4.flowModel.m = 6 \"Number of flow segments\"; +// final Real pipe4.flowModel.pathLengths[1](quantity = \"Length\", unit = \"m\") \"Lengths along flow path\"; +// final Real pipe4.flowModel.pathLengths[2](quantity = \"Length\", unit = \"m\") \"Lengths along flow path\"; +// final Real pipe4.flowModel.pathLengths[3](quantity = \"Length\", unit = \"m\") \"Lengths along flow path\"; +// final Real pipe4.flowModel.pathLengths[4](quantity = \"Length\", unit = \"m\") \"Lengths along flow path\"; +// final Real pipe4.flowModel.pathLengths[5](quantity = \"Length\", unit = \"m\") \"Lengths along flow path\"; +// final Real pipe4.flowModel.pathLengths[6](quantity = \"Length\", unit = \"m\") \"Lengths along flow path\"; +// Real pipe4.flowModel.m_flows[1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e60, max = 1e5, start = 0.02, stateSelect = StateSelect.prefer) \"mass flow rates between states\"; +// Real pipe4.flowModel.m_flows[2](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e60, max = 1e5, start = 0.02, stateSelect = StateSelect.prefer) \"mass flow rates between states\"; +// Real pipe4.flowModel.m_flows[3](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e60, max = 1e5, start = 0.02, stateSelect = StateSelect.prefer) \"mass flow rates between states\"; +// Real pipe4.flowModel.m_flows[4](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e60, max = 1e5, start = 0.02, stateSelect = StateSelect.prefer) \"mass flow rates between states\"; +// Real pipe4.flowModel.m_flows[5](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e60, max = 1e5, start = 0.02, stateSelect = StateSelect.prefer) \"mass flow rates between states\"; +// Real pipe4.flowModel.m_flows[6](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e60, max = 1e5, start = 0.02, stateSelect = StateSelect.prefer) \"mass flow rates between states\"; +// Real pipe4.flowModel.Is[1](quantity = \"Momentum\", unit = \"kg.m/s\") \"Momenta of flow segments\"; +// Real pipe4.flowModel.Is[2](quantity = \"Momentum\", unit = \"kg.m/s\") \"Momenta of flow segments\"; +// Real pipe4.flowModel.Is[3](quantity = \"Momentum\", unit = \"kg.m/s\") \"Momenta of flow segments\"; +// Real pipe4.flowModel.Is[4](quantity = \"Momentum\", unit = \"kg.m/s\") \"Momenta of flow segments\"; +// Real pipe4.flowModel.Is[5](quantity = \"Momentum\", unit = \"kg.m/s\") \"Momenta of flow segments\"; +// Real pipe4.flowModel.Is[6](quantity = \"Momentum\", unit = \"kg.m/s\") \"Momenta of flow segments\"; +// Real pipe4.flowModel.Ib_flows[1](quantity = \"Force\", unit = \"N\") \"Flow of momentum across boundaries\"; +// Real pipe4.flowModel.Ib_flows[2](quantity = \"Force\", unit = \"N\") \"Flow of momentum across boundaries\"; +// Real pipe4.flowModel.Ib_flows[3](quantity = \"Force\", unit = \"N\") \"Flow of momentum across boundaries\"; +// Real pipe4.flowModel.Ib_flows[4](quantity = \"Force\", unit = \"N\") \"Flow of momentum across boundaries\"; +// Real pipe4.flowModel.Ib_flows[5](quantity = \"Force\", unit = \"N\") \"Flow of momentum across boundaries\"; +// Real pipe4.flowModel.Ib_flows[6](quantity = \"Force\", unit = \"N\") \"Flow of momentum across boundaries\"; +// Real pipe4.flowModel.Fs_p[1](quantity = \"Force\", unit = \"N\") \"Pressure forces\"; +// Real pipe4.flowModel.Fs_p[2](quantity = \"Force\", unit = \"N\") \"Pressure forces\"; +// Real pipe4.flowModel.Fs_p[3](quantity = \"Force\", unit = \"N\") \"Pressure forces\"; +// Real pipe4.flowModel.Fs_p[4](quantity = \"Force\", unit = \"N\") \"Pressure forces\"; +// Real pipe4.flowModel.Fs_p[5](quantity = \"Force\", unit = \"N\") \"Pressure forces\"; +// Real pipe4.flowModel.Fs_p[6](quantity = \"Force\", unit = \"N\") \"Pressure forces\"; +// Real pipe4.flowModel.Fs_fg[1](quantity = \"Force\", unit = \"N\") \"Friction and gravity forces\"; +// Real pipe4.flowModel.Fs_fg[2](quantity = \"Force\", unit = \"N\") \"Friction and gravity forces\"; +// Real pipe4.flowModel.Fs_fg[3](quantity = \"Force\", unit = \"N\") \"Friction and gravity forces\"; +// Real pipe4.flowModel.Fs_fg[4](quantity = \"Force\", unit = \"N\") \"Friction and gravity forces\"; +// Real pipe4.flowModel.Fs_fg[5](quantity = \"Force\", unit = \"N\") \"Friction and gravity forces\"; +// Real pipe4.flowModel.Fs_fg[6](quantity = \"Force\", unit = \"N\") \"Friction and gravity forces\"; +// final parameter Boolean pipe4.flowModel.useUpstreamScheme = true \"= false to average upstream and downstream properties across flow segments\"; +// final parameter Boolean pipe4.flowModel.use_Ib_flows = true \"= true to consider differences in flow of momentum through boundaries\"; +// Real pipe4.flowModel.rhos[1](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0); +// Real pipe4.flowModel.rhos[2](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0); +// Real pipe4.flowModel.rhos[3](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0); +// Real pipe4.flowModel.rhos[4](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0); +// Real pipe4.flowModel.rhos[5](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0); +// Real pipe4.flowModel.rhos[6](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0); +// Real pipe4.flowModel.rhos[7](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0); +// Real pipe4.flowModel.rhos_act[1](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0) \"Actual density per segment\"; +// Real pipe4.flowModel.rhos_act[2](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0) \"Actual density per segment\"; +// Real pipe4.flowModel.rhos_act[3](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0) \"Actual density per segment\"; +// Real pipe4.flowModel.rhos_act[4](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0) \"Actual density per segment\"; +// Real pipe4.flowModel.rhos_act[5](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0) \"Actual density per segment\"; +// Real pipe4.flowModel.rhos_act[6](quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0) \"Actual density per segment\"; +// Real pipe4.flowModel.mus[1](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 1e8, start = 0.001, nominal = 0.001); +// Real pipe4.flowModel.mus[2](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 1e8, start = 0.001, nominal = 0.001); +// Real pipe4.flowModel.mus[3](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 1e8, start = 0.001, nominal = 0.001); +// Real pipe4.flowModel.mus[4](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 1e8, start = 0.001, nominal = 0.001); +// Real pipe4.flowModel.mus[5](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 1e8, start = 0.001, nominal = 0.001); +// Real pipe4.flowModel.mus[6](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 1e8, start = 0.001, nominal = 0.001); +// Real pipe4.flowModel.mus[7](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 1e8, start = 0.001, nominal = 0.001); +// Real pipe4.flowModel.mus_act[1](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 1e8, start = 0.001, nominal = 0.001) \"Actual viscosity per segment\"; +// Real pipe4.flowModel.mus_act[2](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 1e8, start = 0.001, nominal = 0.001) \"Actual viscosity per segment\"; +// Real pipe4.flowModel.mus_act[3](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 1e8, start = 0.001, nominal = 0.001) \"Actual viscosity per segment\"; +// Real pipe4.flowModel.mus_act[4](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 1e8, start = 0.001, nominal = 0.001) \"Actual viscosity per segment\"; +// Real pipe4.flowModel.mus_act[5](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 1e8, start = 0.001, nominal = 0.001) \"Actual viscosity per segment\"; +// Real pipe4.flowModel.mus_act[6](quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 1e8, start = 0.001, nominal = 0.001) \"Actual viscosity per segment\"; +// Real pipe4.flowModel.dps_fg[1](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", start = (pipe4.flowModel.p_a_start - pipe4.flowModel.p_b_start) / 6.0) \"pressure drop between states\"; +// Real pipe4.flowModel.dps_fg[2](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", start = (pipe4.flowModel.p_a_start - pipe4.flowModel.p_b_start) / 6.0) \"pressure drop between states\"; +// Real pipe4.flowModel.dps_fg[3](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", start = (pipe4.flowModel.p_a_start - pipe4.flowModel.p_b_start) / 6.0) \"pressure drop between states\"; +// Real pipe4.flowModel.dps_fg[4](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", start = (pipe4.flowModel.p_a_start - pipe4.flowModel.p_b_start) / 6.0) \"pressure drop between states\"; +// Real pipe4.flowModel.dps_fg[5](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", start = (pipe4.flowModel.p_a_start - pipe4.flowModel.p_b_start) / 6.0) \"pressure drop between states\"; +// Real pipe4.flowModel.dps_fg[6](quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", start = (pipe4.flowModel.p_a_start - pipe4.flowModel.p_b_start) / 6.0) \"pressure drop between states\"; +// final parameter Real pipe4.flowModel.Re_turbulent(quantity = \"ReynoldsNumber\", unit = \"1\") = 4000.0 \"Start of turbulent regime, depending on type of flow device\"; +// final parameter Boolean pipe4.flowModel.show_Res = false \"= true, if Reynolds numbers are included for plotting\"; +// protected final parameter Boolean pipe4.flowModel.n101 = false \"= true, if rho_nominal is used, otherwise computed from medium\"; +// protected parameter Real pipe4.flowModel.n102(quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0) = 1.1968386935810924 \"Nominal density (e.g., rho_liquidWater = 995, rho_air = 1.2)\"; +// protected final parameter Boolean pipe4.flowModel.n103 = false \"= true, if mu_nominal is used, otherwise computed from medium\"; +// protected parameter Real pipe4.flowModel.n104(quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0) = 1.823286547365138e-5 \"Nominal dynamic viscosity (e.g., mu_liquidWater = 1e-3, mu_air = 1.8e-5)\"; +// Real pipe4.flowModel.pathLengths_internal[1](quantity = \"Length\", unit = \"m\") \"pathLengths used internally; to be defined by extending class\"; +// Real pipe4.flowModel.pathLengths_internal[2](quantity = \"Length\", unit = \"m\") \"pathLengths used internally; to be defined by extending class\"; +// Real pipe4.flowModel.pathLengths_internal[3](quantity = \"Length\", unit = \"m\") \"pathLengths used internally; to be defined by extending class\"; +// Real pipe4.flowModel.pathLengths_internal[4](quantity = \"Length\", unit = \"m\") \"pathLengths used internally; to be defined by extending class\"; +// Real pipe4.flowModel.pathLengths_internal[5](quantity = \"Length\", unit = \"m\") \"pathLengths used internally; to be defined by extending class\"; +// Real pipe4.flowModel.pathLengths_internal[6](quantity = \"Length\", unit = \"m\") \"pathLengths used internally; to be defined by extending class\"; +// Real pipe4.flowModel.Res_turbulent_internal[1](quantity = \"ReynoldsNumber\", unit = \"1\") \"Re_turbulent used internally; to be defined by extending class\"; +// Real pipe4.flowModel.Res_turbulent_internal[2](quantity = \"ReynoldsNumber\", unit = \"1\") \"Re_turbulent used internally; to be defined by extending class\"; +// Real pipe4.flowModel.Res_turbulent_internal[3](quantity = \"ReynoldsNumber\", unit = \"1\") \"Re_turbulent used internally; to be defined by extending class\"; +// Real pipe4.flowModel.Res_turbulent_internal[4](quantity = \"ReynoldsNumber\", unit = \"1\") \"Re_turbulent used internally; to be defined by extending class\"; +// Real pipe4.flowModel.Res_turbulent_internal[5](quantity = \"ReynoldsNumber\", unit = \"1\") \"Re_turbulent used internally; to be defined by extending class\"; +// Real pipe4.flowModel.Res_turbulent_internal[6](quantity = \"ReynoldsNumber\", unit = \"1\") \"Re_turbulent used internally; to be defined by extending class\"; +// parameter Real pipe4.flowModel.dp_nominal(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, start = 1.0, fixed = false, nominal = 1e5) \"Nominal pressure loss (only for nominal models)\"; +// parameter Real pipe4.flowModel.m_flow_nominal(quantity = \"MassFlowRate\", unit = \"kg/s\") = 100.0 * pipe4.flowModel.m_flow_small \"Nominal mass flow rate\"; +// parameter Real pipe4.flowModel.m_flow_small(quantity = \"MassFlowRate\", unit = \"kg/s\") = system.m_flow_small \"Within regularization if |m_flows| < m_flow_small (may be wider for large discontinuities in static head)\"; +// protected parameter Real pipe4.flowModel.n105(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, start = 1.0, fixed = false, nominal = 1e5) \"Within regularization if |dp| < dp_small (may be wider for large discontinuities in static head)\"; +// protected final parameter Boolean pipe4.flowModel.n106 = false \"= true if the pressure loss does not depend on fluid states\"; +// protected final parameter Boolean pipe4.flowModel.n107 = false \"= true if the pressure loss is continuous around zero flow\"; +// protected Real pipe4.flowModel.n108[1](quantity = \"Length\", unit = \"m\") \"mean diameters between segments\"; +// protected Real pipe4.flowModel.n108[2](quantity = \"Length\", unit = \"m\") \"mean diameters between segments\"; +// protected Real pipe4.flowModel.n108[3](quantity = \"Length\", unit = \"m\") \"mean diameters between segments\"; +// protected Real pipe4.flowModel.n108[4](quantity = \"Length\", unit = \"m\") \"mean diameters between segments\"; +// protected Real pipe4.flowModel.n108[5](quantity = \"Length\", unit = \"m\") \"mean diameters between segments\"; +// protected Real pipe4.flowModel.n108[6](quantity = \"Length\", unit = \"m\") \"mean diameters between segments\"; +// protected Real pipe4.flowModel.n109(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 1e5) = Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.flowModel.WallFriction.pressureLoss_m_flow(pipe4.flowModel.m_flow_nominal / pipe4.flowModel.nParallel, pipe4.flowModel.n102, pipe4.flowModel.n102, pipe4.flowModel.n104, pipe4.flowModel.n104, pipe4.flowModel.pathLengths_internal[1], pipe4.flowModel.n108[1], (pipe4.flowModel.crossAreas[1] + pipe4.flowModel.crossAreas[2]) / 2.0, (pipe4.flowModel.roughnesses[1] + pipe4.flowModel.roughnesses[2]) / 2.0, pipe4.flowModel.m_flow_small / pipe4.flowModel.nParallel, pipe4.flowModel.Res_turbulent_internal[1]) + Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.flowModel.WallFriction.pressureLoss_m_flow(pipe4.flowModel.m_flow_nominal / pipe4.flowModel.nParallel, pipe4.flowModel.n102, pipe4.flowModel.n102, pipe4.flowModel.n104, pipe4.flowModel.n104, pipe4.flowModel.pathLengths_internal[2], pipe4.flowModel.n108[2], (pipe4.flowModel.crossAreas[2] + pipe4.flowModel.crossAreas[3]) / 2.0, (pipe4.flowModel.roughnesses[2] + pipe4.flowModel.roughnesses[3]) / 2.0, pipe4.flowModel.m_flow_small / pipe4.flowModel.nParallel, pipe4.flowModel.Res_turbulent_internal[2]) + Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.flowModel.WallFriction.pressureLoss_m_flow(pipe4.flowModel.m_flow_nominal / pipe4.flowModel.nParallel, pipe4.flowModel.n102, pipe4.flowModel.n102, pipe4.flowModel.n104, pipe4.flowModel.n104, pipe4.flowModel.pathLengths_internal[3], pipe4.flowModel.n108[3], (pipe4.flowModel.crossAreas[3] + pipe4.flowModel.crossAreas[4]) / 2.0, (pipe4.flowModel.roughnesses[3] + pipe4.flowModel.roughnesses[4]) / 2.0, pipe4.flowModel.m_flow_small / pipe4.flowModel.nParallel, pipe4.flowModel.Res_turbulent_internal[3]) + Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.flowModel.WallFriction.pressureLoss_m_flow(pipe4.flowModel.m_flow_nominal / pipe4.flowModel.nParallel, pipe4.flowModel.n102, pipe4.flowModel.n102, pipe4.flowModel.n104, pipe4.flowModel.n104, pipe4.flowModel.pathLengths_internal[4], pipe4.flowModel.n108[4], (pipe4.flowModel.crossAreas[4] + pipe4.flowModel.crossAreas[5]) / 2.0, (pipe4.flowModel.roughnesses[4] + pipe4.flowModel.roughnesses[5]) / 2.0, pipe4.flowModel.m_flow_small / pipe4.flowModel.nParallel, pipe4.flowModel.Res_turbulent_internal[4]) + Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.flowModel.WallFriction.pressureLoss_m_flow(pipe4.flowModel.m_flow_nominal / pipe4.flowModel.nParallel, pipe4.flowModel.n102, pipe4.flowModel.n102, pipe4.flowModel.n104, pipe4.flowModel.n104, pipe4.flowModel.pathLengths_internal[5], pipe4.flowModel.n108[5], (pipe4.flowModel.crossAreas[5] + pipe4.flowModel.crossAreas[6]) / 2.0, (pipe4.flowModel.roughnesses[5] + pipe4.flowModel.roughnesses[6]) / 2.0, pipe4.flowModel.m_flow_small / pipe4.flowModel.nParallel, pipe4.flowModel.Res_turbulent_internal[5]) + Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.flowModel.WallFriction.pressureLoss_m_flow(pipe4.flowModel.m_flow_nominal / pipe4.flowModel.nParallel, pipe4.flowModel.n102, pipe4.flowModel.n102, pipe4.flowModel.n104, pipe4.flowModel.n104, pipe4.flowModel.pathLengths_internal[6], pipe4.flowModel.n108[6], (pipe4.flowModel.crossAreas[6] + pipe4.flowModel.crossAreas[7]) / 2.0, (pipe4.flowModel.roughnesses[6] + pipe4.flowModel.roughnesses[7]) / 2.0, pipe4.flowModel.m_flow_small / pipe4.flowModel.nParallel, pipe4.flowModel.Res_turbulent_internal[6]) \"pressure loss for nominal conditions\"; +// Real pipe4.m_flows[1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e60, max = 1e5, start = 0.02) \"Mass flow rates of fluid across segment boundaries\"; +// Real pipe4.m_flows[2](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e60, max = 1e5, start = 0.02) \"Mass flow rates of fluid across segment boundaries\"; +// Real pipe4.m_flows[3](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e60, max = 1e5, start = 0.02) \"Mass flow rates of fluid across segment boundaries\"; +// Real pipe4.m_flows[4](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e60, max = 1e5, start = 0.02) \"Mass flow rates of fluid across segment boundaries\"; +// Real pipe4.m_flows[5](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e60, max = 1e5, start = 0.02) \"Mass flow rates of fluid across segment boundaries\"; +// Real pipe4.m_flows[6](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e60, max = 1e5, start = 0.02) \"Mass flow rates of fluid across segment boundaries\"; +// Real pipe4.mXi_flows[1,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) \"Independent mass flow rates across segment boundaries\"; +// Real pipe4.mXi_flows[2,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) \"Independent mass flow rates across segment boundaries\"; +// Real pipe4.mXi_flows[3,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) \"Independent mass flow rates across segment boundaries\"; +// Real pipe4.mXi_flows[4,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) \"Independent mass flow rates across segment boundaries\"; +// Real pipe4.mXi_flows[5,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) \"Independent mass flow rates across segment boundaries\"; +// Real pipe4.mXi_flows[6,1](quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e5, max = 1e5) \"Independent mass flow rates across segment boundaries\"; +// Real pipe4.H_flows[1](quantity = \"EnthalpyFlowRate\", unit = \"W\", min = -1e8, max = 1e8, nominal = 1000.0) \"Enthalpy flow rates of fluid across segment boundaries\"; +// Real pipe4.H_flows[2](quantity = \"EnthalpyFlowRate\", unit = \"W\", min = -1e8, max = 1e8, nominal = 1000.0) \"Enthalpy flow rates of fluid across segment boundaries\"; +// Real pipe4.H_flows[3](quantity = \"EnthalpyFlowRate\", unit = \"W\", min = -1e8, max = 1e8, nominal = 1000.0) \"Enthalpy flow rates of fluid across segment boundaries\"; +// Real pipe4.H_flows[4](quantity = \"EnthalpyFlowRate\", unit = \"W\", min = -1e8, max = 1e8, nominal = 1000.0) \"Enthalpy flow rates of fluid across segment boundaries\"; +// Real pipe4.H_flows[5](quantity = \"EnthalpyFlowRate\", unit = \"W\", min = -1e8, max = 1e8, nominal = 1000.0) \"Enthalpy flow rates of fluid across segment boundaries\"; +// Real pipe4.H_flows[6](quantity = \"EnthalpyFlowRate\", unit = \"W\", min = -1e8, max = 1e8, nominal = 1000.0) \"Enthalpy flow rates of fluid across segment boundaries\"; +// Real pipe4.vs[1](quantity = \"Velocity\", unit = \"m/s\") \"mean velocities in flow segments\"; +// Real pipe4.vs[2](quantity = \"Velocity\", unit = \"m/s\") \"mean velocities in flow segments\"; +// Real pipe4.vs[3](quantity = \"Velocity\", unit = \"m/s\") \"mean velocities in flow segments\"; +// Real pipe4.vs[4](quantity = \"Velocity\", unit = \"m/s\") \"mean velocities in flow segments\"; +// Real pipe4.vs[5](quantity = \"Velocity\", unit = \"m/s\") \"mean velocities in flow segments\"; +// protected Real pipe4.n110[1](quantity = \"Length\", unit = \"m\") \"Lengths along flow path\"; +// protected Real pipe4.n110[2](quantity = \"Length\", unit = \"m\") \"Lengths along flow path\"; +// protected Real pipe4.n110[3](quantity = \"Length\", unit = \"m\") \"Lengths along flow path\"; +// protected Real pipe4.n110[4](quantity = \"Length\", unit = \"m\") \"Lengths along flow path\"; +// protected Real pipe4.n110[5](quantity = \"Length\", unit = \"m\") \"Lengths along flow path\"; +// protected Real pipe4.n110[6](quantity = \"Length\", unit = \"m\") \"Lengths along flow path\"; +// protected Real pipe4.n111[1](quantity = \"Length\", unit = \"m\") \"Differences in heights between flow segments\"; +// protected Real pipe4.n111[2](quantity = \"Length\", unit = \"m\") \"Differences in heights between flow segments\"; +// protected Real pipe4.n111[3](quantity = \"Length\", unit = \"m\") \"Differences in heights between flow segments\"; +// protected Real pipe4.n111[4](quantity = \"Length\", unit = \"m\") \"Differences in heights between flow segments\"; +// protected Real pipe4.n111[5](quantity = \"Length\", unit = \"m\") \"Differences in heights between flow segments\"; +// protected Real pipe4.n111[6](quantity = \"Length\", unit = \"m\") \"Differences in heights between flow segments\"; +// protected Real pipe4.n112[1](quantity = \"Area\", unit = \"m2\") \"Cross flow areas of flow segments\"; +// protected Real pipe4.n112[2](quantity = \"Area\", unit = \"m2\") \"Cross flow areas of flow segments\"; +// protected Real pipe4.n112[3](quantity = \"Area\", unit = \"m2\") \"Cross flow areas of flow segments\"; +// protected Real pipe4.n112[4](quantity = \"Area\", unit = \"m2\") \"Cross flow areas of flow segments\"; +// protected Real pipe4.n112[5](quantity = \"Area\", unit = \"m2\") \"Cross flow areas of flow segments\"; +// protected Real pipe4.n112[6](quantity = \"Area\", unit = \"m2\") \"Cross flow areas of flow segments\"; +// protected Real pipe4.n112[7](quantity = \"Area\", unit = \"m2\") \"Cross flow areas of flow segments\"; +// protected Real pipe4.n113[1](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities in flow segments\"; +// protected Real pipe4.n113[2](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities in flow segments\"; +// protected Real pipe4.n113[3](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities in flow segments\"; +// protected Real pipe4.n113[4](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities in flow segments\"; +// protected Real pipe4.n113[5](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities in flow segments\"; +// protected Real pipe4.n113[6](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities in flow segments\"; +// protected Real pipe4.n113[7](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities in flow segments\"; +// protected Real pipe4.n114[1](quantity = \"Length\", unit = \"m\") \"Hydraulic diameters of flow segments\"; +// protected Real pipe4.n114[2](quantity = \"Length\", unit = \"m\") \"Hydraulic diameters of flow segments\"; +// protected Real pipe4.n114[3](quantity = \"Length\", unit = \"m\") \"Hydraulic diameters of flow segments\"; +// protected Real pipe4.n114[4](quantity = \"Length\", unit = \"m\") \"Hydraulic diameters of flow segments\"; +// protected Real pipe4.n114[5](quantity = \"Length\", unit = \"m\") \"Hydraulic diameters of flow segments\"; +// protected Real pipe4.n114[6](quantity = \"Length\", unit = \"m\") \"Hydraulic diameters of flow segments\"; +// protected Real pipe4.n114[7](quantity = \"Length\", unit = \"m\") \"Hydraulic diameters of flow segments\"; +// protected Real pipe4.n115[1](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average heights of surface asperities\"; +// protected Real pipe4.n115[2](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average heights of surface asperities\"; +// protected Real pipe4.n115[3](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average heights of surface asperities\"; +// protected Real pipe4.n115[4](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average heights of surface asperities\"; +// protected Real pipe4.n115[5](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average heights of surface asperities\"; +// protected Real pipe4.n115[6](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average heights of surface asperities\"; +// protected Real pipe4.n115[7](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average heights of surface asperities\"; +// final parameter Boolean pipe4.use_HeatTransfer = false \"= true to use the HeatTransfer model\"; +// final parameter Integer pipe4.heatTransfer.n = 5 \"Number of heat transfer segments\"; +// final Real pipe4.heatTransfer.states[1].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe4.mediums[1].state.p \"Absolute pressure of medium\"; +// final Real pipe4.heatTransfer.states[1].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe4.mediums[1].state.T \"Temperature of medium\"; +// final Real pipe4.heatTransfer.states[1].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe4.heatTransfer.states[1].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe4.heatTransfer.states[2].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe4.mediums[2].state.p \"Absolute pressure of medium\"; +// final Real pipe4.heatTransfer.states[2].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe4.mediums[2].state.T \"Temperature of medium\"; +// final Real pipe4.heatTransfer.states[2].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe4.heatTransfer.states[2].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe4.heatTransfer.states[3].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe4.mediums[3].state.p \"Absolute pressure of medium\"; +// final Real pipe4.heatTransfer.states[3].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe4.mediums[3].state.T \"Temperature of medium\"; +// final Real pipe4.heatTransfer.states[3].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe4.heatTransfer.states[3].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe4.heatTransfer.states[4].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe4.mediums[4].state.p \"Absolute pressure of medium\"; +// final Real pipe4.heatTransfer.states[4].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe4.mediums[4].state.T \"Temperature of medium\"; +// final Real pipe4.heatTransfer.states[4].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe4.heatTransfer.states[4].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe4.heatTransfer.states[5].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = pipe4.mediums[5].state.p \"Absolute pressure of medium\"; +// final Real pipe4.heatTransfer.states[5].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = pipe4.mediums[5].state.T \"Temperature of medium\"; +// final Real pipe4.heatTransfer.states[5].X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe4.heatTransfer.states[5].X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final Real pipe4.heatTransfer.surfaceAreas[1](quantity = \"Area\", unit = \"m2\") \"Heat transfer areas\"; +// final Real pipe4.heatTransfer.surfaceAreas[2](quantity = \"Area\", unit = \"m2\") \"Heat transfer areas\"; +// final Real pipe4.heatTransfer.surfaceAreas[3](quantity = \"Area\", unit = \"m2\") \"Heat transfer areas\"; +// final Real pipe4.heatTransfer.surfaceAreas[4](quantity = \"Area\", unit = \"m2\") \"Heat transfer areas\"; +// final Real pipe4.heatTransfer.surfaceAreas[5](quantity = \"Area\", unit = \"m2\") \"Heat transfer areas\"; +// Real pipe4.heatTransfer.Q_flows[1](quantity = \"Power\", unit = \"W\") \"Heat flow rates\"; +// Real pipe4.heatTransfer.Q_flows[2](quantity = \"Power\", unit = \"W\") \"Heat flow rates\"; +// Real pipe4.heatTransfer.Q_flows[3](quantity = \"Power\", unit = \"W\") \"Heat flow rates\"; +// Real pipe4.heatTransfer.Q_flows[4](quantity = \"Power\", unit = \"W\") \"Heat flow rates\"; +// Real pipe4.heatTransfer.Q_flows[5](quantity = \"Power\", unit = \"W\") \"Heat flow rates\"; +// final parameter Boolean pipe4.heatTransfer.use_k = false \"= true to use k value for thermal isolation\"; +// final parameter Real pipe4.heatTransfer.k(quantity = \"CoefficientOfHeatTransfer\", unit = \"W/(m2.K)\") = 0.0 \"Heat transfer coefficient to ambient\"; +// parameter Real pipe4.heatTransfer.T_ambient(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) = system.T_ambient \"Ambient temperature\"; +// Real pipe4.heatTransfer.heatPorts[1].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) \"Port temperature\"; +// Real pipe4.heatTransfer.heatPorts[1].Q_flow(quantity = \"Power\", unit = \"W\") \"Heat flow rate (positive if flowing from outside into the component)\"; +// Real pipe4.heatTransfer.heatPorts[2].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) \"Port temperature\"; +// Real pipe4.heatTransfer.heatPorts[2].Q_flow(quantity = \"Power\", unit = \"W\") \"Heat flow rate (positive if flowing from outside into the component)\"; +// Real pipe4.heatTransfer.heatPorts[3].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) \"Port temperature\"; +// Real pipe4.heatTransfer.heatPorts[3].Q_flow(quantity = \"Power\", unit = \"W\") \"Heat flow rate (positive if flowing from outside into the component)\"; +// Real pipe4.heatTransfer.heatPorts[4].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) \"Port temperature\"; +// Real pipe4.heatTransfer.heatPorts[4].Q_flow(quantity = \"Power\", unit = \"W\") \"Heat flow rate (positive if flowing from outside into the component)\"; +// Real pipe4.heatTransfer.heatPorts[5].T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) \"Port temperature\"; +// Real pipe4.heatTransfer.heatPorts[5].Q_flow(quantity = \"Power\", unit = \"W\") \"Heat flow rate (positive if flowing from outside into the component)\"; +// Real pipe4.heatTransfer.Ts[1](quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) \"Temperatures defined by fluid states\"; +// Real pipe4.heatTransfer.Ts[2](quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) \"Temperatures defined by fluid states\"; +// Real pipe4.heatTransfer.Ts[3](quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) \"Temperatures defined by fluid states\"; +// Real pipe4.heatTransfer.Ts[4](quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) \"Temperatures defined by fluid states\"; +// Real pipe4.heatTransfer.Ts[5](quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) \"Temperatures defined by fluid states\"; +// final Real pipe4.heatTransfer.vs[1](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities of fluid flow in segments\"; +// final Real pipe4.heatTransfer.vs[2](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities of fluid flow in segments\"; +// final Real pipe4.heatTransfer.vs[3](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities of fluid flow in segments\"; +// final Real pipe4.heatTransfer.vs[4](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities of fluid flow in segments\"; +// final Real pipe4.heatTransfer.vs[5](quantity = \"Velocity\", unit = \"m/s\") \"Mean velocities of fluid flow in segments\"; +// final parameter Real pipe4.heatTransfer.nParallel = pipe4.nParallel \"number of identical parallel flow devices\"; +// final Real pipe4.heatTransfer.lengths[1](quantity = \"Length\", unit = \"m\") \"Lengths along flow path\"; +// final Real pipe4.heatTransfer.lengths[2](quantity = \"Length\", unit = \"m\") \"Lengths along flow path\"; +// final Real pipe4.heatTransfer.lengths[3](quantity = \"Length\", unit = \"m\") \"Lengths along flow path\"; +// final Real pipe4.heatTransfer.lengths[4](quantity = \"Length\", unit = \"m\") \"Lengths along flow path\"; +// final Real pipe4.heatTransfer.lengths[5](quantity = \"Length\", unit = \"m\") \"Lengths along flow path\"; +// final Real pipe4.heatTransfer.dimensions[1](quantity = \"Length\", unit = \"m\") \"Characteristic dimensions for fluid flow (diameter for pipe flow)\"; +// final Real pipe4.heatTransfer.dimensions[2](quantity = \"Length\", unit = \"m\") \"Characteristic dimensions for fluid flow (diameter for pipe flow)\"; +// final Real pipe4.heatTransfer.dimensions[3](quantity = \"Length\", unit = \"m\") \"Characteristic dimensions for fluid flow (diameter for pipe flow)\"; +// final Real pipe4.heatTransfer.dimensions[4](quantity = \"Length\", unit = \"m\") \"Characteristic dimensions for fluid flow (diameter for pipe flow)\"; +// final Real pipe4.heatTransfer.dimensions[5](quantity = \"Length\", unit = \"m\") \"Characteristic dimensions for fluid flow (diameter for pipe flow)\"; +// final Real pipe4.heatTransfer.roughnesses[1](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average heights of surface asperities\"; +// final Real pipe4.heatTransfer.roughnesses[2](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average heights of surface asperities\"; +// final Real pipe4.heatTransfer.roughnesses[3](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average heights of surface asperities\"; +// final Real pipe4.heatTransfer.roughnesses[4](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average heights of surface asperities\"; +// final Real pipe4.heatTransfer.roughnesses[5](quantity = \"Length\", unit = \"m\", displayUnit = \"mm\", min = 0.0) \"Average heights of surface asperities\"; // final parameter Real pipe4.dxs[1] = 0.2; // final parameter Real pipe4.dxs[2] = 0.2; // final parameter Real pipe4.dxs[3] = 0.2; // final parameter Real pipe4.dxs[4] = 0.2; // final parameter Real pipe4.dxs[5] = 0.2; -// final parameter Integer boundary4.nPorts = 1; -// Real boundary4.medium.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 100000.0, stateSelect = StateSelect.default); -// Real boundary4.medium.Xi[1](quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0, start = 0.01, stateSelect = StateSelect.default); -// Real boundary4.medium.h(quantity = \"SpecificEnergy\", unit = \"J/kg\"); -// Real boundary4.medium.d(quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0); -// Real boundary4.medium.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0, stateSelect = StateSelect.default); -// Real boundary4.medium.X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real boundary4.medium.X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// Real boundary4.medium.u(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -100000000.0, max = 100000000.0, nominal = 1000000.0); -// Real boundary4.medium.R(quantity = \"SpecificHeatCapacity\", unit = \"J/(kg.K)\", min = 0.0, max = 10000000.0, start = 1000.0, nominal = 1000.0); -// Real boundary4.medium.MM(quantity = \"MolarMass\", unit = \"kg/mol\", min = 0.001, max = 0.25, nominal = 0.032); -// Real boundary4.medium.state.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real boundary4.medium.state.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0); -// Real boundary4.medium.state.X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1); -// Real boundary4.medium.state.X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1); -// final parameter Boolean boundary4.medium.preferredMediumStates = false; -// final parameter Boolean boundary4.medium.standardOrderComponents = true; -// Real boundary4.medium.T_degC(quantity = \"ThermodynamicTemperature\", unit = \"degC\") = Modelica.SIunits.Conversions.to_degC(boundary4.medium.T); -// Real boundary4.medium.p_bar(quantity = \"Pressure\", unit = \"bar\") = Modelica.SIunits.Conversions.to_bar(boundary4.medium.p); -// Real boundary4.medium.x_water(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// Real boundary4.medium.phi; -// protected Real boundary4.medium.n116(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real boundary4.medium.n117(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real boundary4.medium.n118(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real boundary4.medium.n119(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real boundary4.medium.n120(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected Real boundary4.medium.n121(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real boundary4.ports[1].m_flow(quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -9.999999999999999e+59, max = 9.999999999999999e+59); -// Real boundary4.ports[1].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0); -// Real boundary4.ports[1].h_outflow(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -10000000000.0, max = 10000000000.0, nominal = 1000000.0); -// Real boundary4.ports[1].Xi_outflow[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1); -// protected final parameter enumeration(Entering, Leaving, Bidirectional) boundary4.n122 = Modelica.Fluid.Types.PortFlowDirection.Bidirectional; -// final parameter Boolean boundary4.use_p_in = true; -// final parameter Boolean boundary4.use_T_in = false; -// final parameter Boolean boundary4.use_X_in = false; -// final parameter Boolean boundary4.use_C_in = false; -// parameter Real boundary4.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) = 100000.0; -// parameter Real boundary4.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = 293.15; -// parameter Real boundary4.X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) = 0.01; -// parameter Real boundary4.X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) = 0.99; -// Real boundary4.p_in; -// protected Real boundary4.n123; -// protected Real boundary4.n124; -// protected Real boundary4.n125[1]; -// protected Real boundary4.n125[2]; -// parameter Real ramp1.height = 100000.0; -// parameter Real ramp1.duration(quantity = \"Time\", unit = \"s\", min = 0.0, start = 2.0) = 0.0; -// Real ramp1.y; -// parameter Real ramp1.offset = 100000.0; -// parameter Real ramp1.startTime(quantity = \"Time\", unit = \"s\") = 2.0; -// parameter Real heat2[1].Q_flow(quantity = \"Power\", unit = \"W\") = 40.0; -// parameter Real heat2[1].T_ref(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) = 293.15; -// parameter Real heat2[1].alpha(quantity = \"LinearTemperatureCoefficient\", unit = \"1/K\") = -0.01; -// Real heat2[1].port.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0); -// Real heat2[1].port.Q_flow(quantity = \"Power\", unit = \"W\"); -// parameter Real heat2[2].Q_flow(quantity = \"Power\", unit = \"W\") = 40.0; -// parameter Real heat2[2].T_ref(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) = 293.15; -// parameter Real heat2[2].alpha(quantity = \"LinearTemperatureCoefficient\", unit = \"1/K\") = -0.01; -// Real heat2[2].port.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0); -// Real heat2[2].port.Q_flow(quantity = \"Power\", unit = \"W\"); -// parameter Real heat2[3].Q_flow(quantity = \"Power\", unit = \"W\") = 40.0; -// parameter Real heat2[3].T_ref(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) = 293.15; -// parameter Real heat2[3].alpha(quantity = \"LinearTemperatureCoefficient\", unit = \"1/K\") = -0.01; -// Real heat2[3].port.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0); -// Real heat2[3].port.Q_flow(quantity = \"Power\", unit = \"W\"); -// parameter Real heat2[4].Q_flow(quantity = \"Power\", unit = \"W\") = 40.0; -// parameter Real heat2[4].T_ref(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) = 293.15; -// parameter Real heat2[4].alpha(quantity = \"LinearTemperatureCoefficient\", unit = \"1/K\") = -0.01; -// Real heat2[4].port.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0); -// Real heat2[4].port.Q_flow(quantity = \"Power\", unit = \"W\"); -// parameter Real heat2[5].Q_flow(quantity = \"Power\", unit = \"W\") = 40.0; -// parameter Real heat2[5].T_ref(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) = 293.15; -// parameter Real heat2[5].alpha(quantity = \"LinearTemperatureCoefficient\", unit = \"1/K\") = -0.01; -// Real heat2[5].port.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0); -// Real heat2[5].port.Q_flow(quantity = \"Power\", unit = \"W\"); +// final parameter Integer boundary4.nPorts = 1 \"Number of ports\"; +// Real boundary4.medium.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, nominal = 1e5, stateSelect = StateSelect.default) \"Absolute pressure of medium\"; +// Real boundary4.medium.Xi[1](quantity = \"MassFraction\", unit = \"1\", min = 0.0, max = 1.0, start = 0.01, stateSelect = StateSelect.default) \"Structurally independent mass fractions\"; +// Real boundary4.medium.h(quantity = \"SpecificEnergy\", unit = \"J/kg\") \"Specific enthalpy of medium\"; +// Real boundary4.medium.d(quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0) \"Density of medium\"; +// Real boundary4.medium.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0, stateSelect = StateSelect.default) \"Temperature of medium\"; +// Real boundary4.medium.X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real boundary4.medium.X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real boundary4.medium.u(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -1e8, max = 1e8, nominal = 1e6) \"Specific internal energy of medium\"; +// Real boundary4.medium.R(quantity = \"SpecificHeatCapacity\", unit = \"J/(kg.K)\", min = 0.0, max = 1e7, start = 1000.0, nominal = 1000.0) \"Gas constant (of mixture if applicable)\"; +// Real boundary4.medium.MM(quantity = \"MolarMass\", unit = \"kg/mol\", min = 0.001, max = 0.25, nominal = 0.032) \"Molar mass (of mixture or single fluid)\"; +// Real boundary4.medium.state.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Absolute pressure of medium\"; +// Real boundary4.medium.state.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) \"Temperature of medium\"; +// Real boundary4.medium.state.X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.01, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// Real boundary4.medium.state.X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, start = 0.99, nominal = 0.1) \"Mass fractions (= (component mass)/total mass m_i/m)\"; +// final parameter Boolean boundary4.medium.preferredMediumStates = false \"= true if StateSelect.prefer shall be used for the independent property variables of the medium\"; +// final parameter Boolean boundary4.medium.standardOrderComponents = true \"If true, and reducedX = true, the last element of X will be computed from the other ones\"; +// Real boundary4.medium.T_degC(quantity = \"ThermodynamicTemperature\", unit = \"degC\") = Modelica.SIunits.Conversions.to_degC(boundary4.medium.T) \"Temperature of medium in [degC]\"; +// Real boundary4.medium.p_bar(quantity = \"Pressure\", unit = \"bar\") = Modelica.SIunits.Conversions.to_bar(boundary4.medium.p) \"Absolute pressure of medium in [bar]\"; +// Real boundary4.medium.x_water(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass of total water/mass of dry air\"; +// Real boundary4.medium.phi \"Relative humidity\"; +// protected Real boundary4.medium.n116(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass fraction of liquid or solid water\"; +// protected Real boundary4.medium.n117(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass fraction of steam water\"; +// protected Real boundary4.medium.n118(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Mass fraction of air\"; +// protected Real boundary4.medium.n119(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Steam water mass fraction of saturation boundary in kg_water/kg_moistair\"; +// protected Real boundary4.medium.n120(quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Steam water mass content of saturation boundary in kg_water/kg_dryair\"; +// protected Real boundary4.medium.n121(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"partial saturation pressure of steam\"; +// Real boundary4.ports[1].m_flow(quantity = \"MassFlowRate.Moist air\", unit = \"kg/s\", min = -1e60, max = 1e60) \"Mass flow rate from the connection point into the component\"; +// Real boundary4.ports[1].p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Thermodynamic pressure in the connection point\"; +// Real boundary4.ports[1].h_outflow(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -1e10, max = 1e10, nominal = 1e6) \"Specific thermodynamic enthalpy close to the connection point if m_flow < 0\"; +// Real boundary4.ports[1].Xi_outflow[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) \"Independent mixture mass fractions m_i/m close to the connection point if m_flow < 0\"; +// protected final parameter enumeration(Entering, Leaving, Bidirectional) boundary4.n122 = Modelica.Fluid.Types.PortFlowDirection.Bidirectional \"Allowed flow direction\"; +// final parameter Boolean boundary4.use_p_in = true \"Get the pressure from the input connector\"; +// final parameter Boolean boundary4.use_T_in = false \"Get the temperature from the input connector\"; +// final parameter Boolean boundary4.use_X_in = false \"Get the composition from the input connector\"; +// final parameter Boolean boundary4.use_C_in = false \"Get the trace substances from the input connector\"; +// parameter Real boundary4.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) = 1e5 \"Fixed value of pressure\"; +// parameter Real boundary4.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 190.0, max = 647.0, start = 288.15, nominal = 300.0) = 293.15 \"Fixed value of temperature\"; +// parameter Real boundary4.X[1](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) = 0.01 \"Fixed value of composition\"; +// parameter Real boundary4.X[2](quantity = \"MassFraction\", unit = \"kg/kg\", min = 0.0, max = 1.0, nominal = 0.1) = 0.99 \"Fixed value of composition\"; +// Real boundary4.p_in \"Prescribed boundary pressure\"; +// protected Real boundary4.n123 \"Needed to connect to conditional connector\"; +// protected Real boundary4.n124 \"Needed to connect to conditional connector\"; +// protected Real boundary4.n125[1] \"Needed to connect to conditional connector\"; +// protected Real boundary4.n125[2] \"Needed to connect to conditional connector\"; +// parameter Real ramp1.height = 1e5 \"Height of ramps\"; +// parameter Real ramp1.duration(quantity = \"Time\", unit = \"s\", min = 0.0, start = 2.0) = 0.0 \"Duration of ramp (= 0.0 gives a Step)\"; +// Real ramp1.y \"Connector of Real output signal\"; +// parameter Real ramp1.offset = 1e5 \"Offset of output signal y\"; +// parameter Real ramp1.startTime(quantity = \"Time\", unit = \"s\") = 2.0 \"Output y = offset for time < startTime\"; +// parameter Real heat2[1].Q_flow(quantity = \"Power\", unit = \"W\") = 40.0 \"Fixed heat flow rate at port\"; +// parameter Real heat2[1].T_ref(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) = 293.15 \"Reference temperature\"; +// parameter Real heat2[1].alpha(quantity = \"LinearTemperatureCoefficient\", unit = \"1/K\") = -0.01 \"Temperature coefficient of heat flow rate\"; +// Real heat2[1].port.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) \"Port temperature\"; +// Real heat2[1].port.Q_flow(quantity = \"Power\", unit = \"W\") \"Heat flow rate (positive if flowing from outside into the component)\"; +// parameter Real heat2[2].Q_flow(quantity = \"Power\", unit = \"W\") = 40.0 \"Fixed heat flow rate at port\"; +// parameter Real heat2[2].T_ref(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) = 293.15 \"Reference temperature\"; +// parameter Real heat2[2].alpha(quantity = \"LinearTemperatureCoefficient\", unit = \"1/K\") = -0.01 \"Temperature coefficient of heat flow rate\"; +// Real heat2[2].port.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) \"Port temperature\"; +// Real heat2[2].port.Q_flow(quantity = \"Power\", unit = \"W\") \"Heat flow rate (positive if flowing from outside into the component)\"; +// parameter Real heat2[3].Q_flow(quantity = \"Power\", unit = \"W\") = 40.0 \"Fixed heat flow rate at port\"; +// parameter Real heat2[3].T_ref(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) = 293.15 \"Reference temperature\"; +// parameter Real heat2[3].alpha(quantity = \"LinearTemperatureCoefficient\", unit = \"1/K\") = -0.01 \"Temperature coefficient of heat flow rate\"; +// Real heat2[3].port.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) \"Port temperature\"; +// Real heat2[3].port.Q_flow(quantity = \"Power\", unit = \"W\") \"Heat flow rate (positive if flowing from outside into the component)\"; +// parameter Real heat2[4].Q_flow(quantity = \"Power\", unit = \"W\") = 40.0 \"Fixed heat flow rate at port\"; +// parameter Real heat2[4].T_ref(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) = 293.15 \"Reference temperature\"; +// parameter Real heat2[4].alpha(quantity = \"LinearTemperatureCoefficient\", unit = \"1/K\") = -0.01 \"Temperature coefficient of heat flow rate\"; +// Real heat2[4].port.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) \"Port temperature\"; +// Real heat2[4].port.Q_flow(quantity = \"Power\", unit = \"W\") \"Heat flow rate (positive if flowing from outside into the component)\"; +// parameter Real heat2[5].Q_flow(quantity = \"Power\", unit = \"W\") = 40.0 \"Fixed heat flow rate at port\"; +// parameter Real heat2[5].T_ref(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) = 293.15 \"Reference temperature\"; +// parameter Real heat2[5].alpha(quantity = \"LinearTemperatureCoefficient\", unit = \"1/K\") = -0.01 \"Temperature coefficient of heat flow rate\"; +// Real heat2[5].port.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 0.0, start = 288.15, nominal = 300.0) \"Port temperature\"; +// Real heat2[5].port.Q_flow(quantity = \"Power\", unit = \"W\") \"Heat flow rate (positive if flowing from outside into the component)\"; // initial equation // pipe1.flowModel.dp_nominal = 1000.0 * pipe1.flowModel.n25; // pipe1.flowModel.n25 = system.dp_small; @@ -6684,9 +6684,9 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // boundary1.medium.phi = boundary1.medium.p / boundary1.medium.n6 * boundary1.medium.Xi[1] / (boundary1.medium.Xi[1] + 0.6219647130774989 * boundary1.medium.n3); // boundary1.medium.Xi[1] = boundary1.medium.X[1]; // boundary1.medium.X[2] = 1.0 - boundary1.medium.Xi[1]; -// assert(boundary1.medium.X[1] >= -1e-05 and boundary1.medium.X[1] <= 1.00001, \"Mass fraction X[\" + String(1, 0, true) + \"] = \" + String(boundary1.medium.X[1], 6, 0, true) + \"of substance \" + \"water\" + \" +// assert(boundary1.medium.X[1] >= -1e-5 and boundary1.medium.X[1] <= 1.00001, \"Mass fraction X[\" + String(1, 0, true) + \"] = \" + String(boundary1.medium.X[1], 6, 0, true) + \"of substance \" + \"water\" + \" // of medium \" + \"Moist air\" + \" is not in the range 0..1\"); -// assert(boundary1.medium.X[2] >= -1e-05 and boundary1.medium.X[2] <= 1.00001, \"Mass fraction X[\" + String(2, 0, true) + \"] = \" + String(boundary1.medium.X[2], 6, 0, true) + \"of substance \" + \"air\" + \" +// assert(boundary1.medium.X[2] >= -1e-5 and boundary1.medium.X[2] <= 1.00001, \"Mass fraction X[\" + String(2, 0, true) + \"] = \" + String(boundary1.medium.X[2], 6, 0, true) + \"of substance \" + \"air\" + \" // of medium \" + \"Moist air\" + \" is not in the range 0..1\"); // assert(boundary1.medium.p >= 0.0, \"Pressure (= \" + String(boundary1.medium.p, 6, 0, true) + \" Pa) of medium \\\"\" + \"Moist air\" + \"\\\" is negative // (Temperature = \" + String(boundary1.medium.T, 6, 0, true) + \" K)\"); @@ -6725,9 +6725,9 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // pipe1.mediums[1].phi = pipe1.mediums[1].p / pipe1.mediums[1].n19 * pipe1.mediums[1].Xi[1] / (pipe1.mediums[1].Xi[1] + 0.6219647130774989 * pipe1.mediums[1].n16); // pipe1.mediums[1].Xi[1] = pipe1.mediums[1].X[1]; // pipe1.mediums[1].X[2] = 1.0 - pipe1.mediums[1].Xi[1]; -// assert(pipe1.mediums[1].X[1] >= -1e-05 and pipe1.mediums[1].X[1] <= 1.00001, \"Mass fraction X[\" + String(1, 0, true) + \"] = \" + String(pipe1.mediums[1].X[1], 6, 0, true) + \"of substance \" + \"water\" + \" +// assert(pipe1.mediums[1].X[1] >= -1e-5 and pipe1.mediums[1].X[1] <= 1.00001, \"Mass fraction X[\" + String(1, 0, true) + \"] = \" + String(pipe1.mediums[1].X[1], 6, 0, true) + \"of substance \" + \"water\" + \" // of medium \" + \"Moist air\" + \" is not in the range 0..1\"); -// assert(pipe1.mediums[1].X[2] >= -1e-05 and pipe1.mediums[1].X[2] <= 1.00001, \"Mass fraction X[\" + String(2, 0, true) + \"] = \" + String(pipe1.mediums[1].X[2], 6, 0, true) + \"of substance \" + \"air\" + \" +// assert(pipe1.mediums[1].X[2] >= -1e-5 and pipe1.mediums[1].X[2] <= 1.00001, \"Mass fraction X[\" + String(2, 0, true) + \"] = \" + String(pipe1.mediums[1].X[2], 6, 0, true) + \"of substance \" + \"air\" + \" // of medium \" + \"Moist air\" + \" is not in the range 0..1\"); // assert(pipe1.mediums[1].p >= 0.0, \"Pressure (= \" + String(pipe1.mediums[1].p, 6, 0, true) + \" Pa) of medium \\\"\" + \"Moist air\" + \"\\\" is negative // (Temperature = \" + String(pipe1.mediums[1].T, 6, 0, true) + \" K)\"); @@ -6754,9 +6754,9 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // pipe1.mediums[2].phi = pipe1.mediums[2].p / pipe1.mediums[2].n19 * pipe1.mediums[2].Xi[1] / (pipe1.mediums[2].Xi[1] + 0.6219647130774989 * pipe1.mediums[2].n16); // pipe1.mediums[2].Xi[1] = pipe1.mediums[2].X[1]; // pipe1.mediums[2].X[2] = 1.0 - pipe1.mediums[2].Xi[1]; -// assert(pipe1.mediums[2].X[1] >= -1e-05 and pipe1.mediums[2].X[1] <= 1.00001, \"Mass fraction X[\" + String(1, 0, true) + \"] = \" + String(pipe1.mediums[2].X[1], 6, 0, true) + \"of substance \" + \"water\" + \" +// assert(pipe1.mediums[2].X[1] >= -1e-5 and pipe1.mediums[2].X[1] <= 1.00001, \"Mass fraction X[\" + String(1, 0, true) + \"] = \" + String(pipe1.mediums[2].X[1], 6, 0, true) + \"of substance \" + \"water\" + \" // of medium \" + \"Moist air\" + \" is not in the range 0..1\"); -// assert(pipe1.mediums[2].X[2] >= -1e-05 and pipe1.mediums[2].X[2] <= 1.00001, \"Mass fraction X[\" + String(2, 0, true) + \"] = \" + String(pipe1.mediums[2].X[2], 6, 0, true) + \"of substance \" + \"air\" + \" +// assert(pipe1.mediums[2].X[2] >= -1e-5 and pipe1.mediums[2].X[2] <= 1.00001, \"Mass fraction X[\" + String(2, 0, true) + \"] = \" + String(pipe1.mediums[2].X[2], 6, 0, true) + \"of substance \" + \"air\" + \" // of medium \" + \"Moist air\" + \" is not in the range 0..1\"); // assert(pipe1.mediums[2].p >= 0.0, \"Pressure (= \" + String(pipe1.mediums[2].p, 6, 0, true) + \" Pa) of medium \\\"\" + \"Moist air\" + \"\\\" is negative // (Temperature = \" + String(pipe1.mediums[2].T, 6, 0, true) + \" K)\"); @@ -6783,9 +6783,9 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // pipe1.mediums[3].phi = pipe1.mediums[3].p / pipe1.mediums[3].n19 * pipe1.mediums[3].Xi[1] / (pipe1.mediums[3].Xi[1] + 0.6219647130774989 * pipe1.mediums[3].n16); // pipe1.mediums[3].Xi[1] = pipe1.mediums[3].X[1]; // pipe1.mediums[3].X[2] = 1.0 - pipe1.mediums[3].Xi[1]; -// assert(pipe1.mediums[3].X[1] >= -1e-05 and pipe1.mediums[3].X[1] <= 1.00001, \"Mass fraction X[\" + String(1, 0, true) + \"] = \" + String(pipe1.mediums[3].X[1], 6, 0, true) + \"of substance \" + \"water\" + \" +// assert(pipe1.mediums[3].X[1] >= -1e-5 and pipe1.mediums[3].X[1] <= 1.00001, \"Mass fraction X[\" + String(1, 0, true) + \"] = \" + String(pipe1.mediums[3].X[1], 6, 0, true) + \"of substance \" + \"water\" + \" // of medium \" + \"Moist air\" + \" is not in the range 0..1\"); -// assert(pipe1.mediums[3].X[2] >= -1e-05 and pipe1.mediums[3].X[2] <= 1.00001, \"Mass fraction X[\" + String(2, 0, true) + \"] = \" + String(pipe1.mediums[3].X[2], 6, 0, true) + \"of substance \" + \"air\" + \" +// assert(pipe1.mediums[3].X[2] >= -1e-5 and pipe1.mediums[3].X[2] <= 1.00001, \"Mass fraction X[\" + String(2, 0, true) + \"] = \" + String(pipe1.mediums[3].X[2], 6, 0, true) + \"of substance \" + \"air\" + \" // of medium \" + \"Moist air\" + \" is not in the range 0..1\"); // assert(pipe1.mediums[3].p >= 0.0, \"Pressure (= \" + String(pipe1.mediums[3].p, 6, 0, true) + \" Pa) of medium \\\"\" + \"Moist air\" + \"\\\" is negative // (Temperature = \" + String(pipe1.mediums[3].T, 6, 0, true) + \" K)\"); @@ -6812,9 +6812,9 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // pipe1.mediums[4].phi = pipe1.mediums[4].p / pipe1.mediums[4].n19 * pipe1.mediums[4].Xi[1] / (pipe1.mediums[4].Xi[1] + 0.6219647130774989 * pipe1.mediums[4].n16); // pipe1.mediums[4].Xi[1] = pipe1.mediums[4].X[1]; // pipe1.mediums[4].X[2] = 1.0 - pipe1.mediums[4].Xi[1]; -// assert(pipe1.mediums[4].X[1] >= -1e-05 and pipe1.mediums[4].X[1] <= 1.00001, \"Mass fraction X[\" + String(1, 0, true) + \"] = \" + String(pipe1.mediums[4].X[1], 6, 0, true) + \"of substance \" + \"water\" + \" +// assert(pipe1.mediums[4].X[1] >= -1e-5 and pipe1.mediums[4].X[1] <= 1.00001, \"Mass fraction X[\" + String(1, 0, true) + \"] = \" + String(pipe1.mediums[4].X[1], 6, 0, true) + \"of substance \" + \"water\" + \" // of medium \" + \"Moist air\" + \" is not in the range 0..1\"); -// assert(pipe1.mediums[4].X[2] >= -1e-05 and pipe1.mediums[4].X[2] <= 1.00001, \"Mass fraction X[\" + String(2, 0, true) + \"] = \" + String(pipe1.mediums[4].X[2], 6, 0, true) + \"of substance \" + \"air\" + \" +// assert(pipe1.mediums[4].X[2] >= -1e-5 and pipe1.mediums[4].X[2] <= 1.00001, \"Mass fraction X[\" + String(2, 0, true) + \"] = \" + String(pipe1.mediums[4].X[2], 6, 0, true) + \"of substance \" + \"air\" + \" // of medium \" + \"Moist air\" + \" is not in the range 0..1\"); // assert(pipe1.mediums[4].p >= 0.0, \"Pressure (= \" + String(pipe1.mediums[4].p, 6, 0, true) + \" Pa) of medium \\\"\" + \"Moist air\" + \"\\\" is negative // (Temperature = \" + String(pipe1.mediums[4].T, 6, 0, true) + \" K)\"); @@ -6841,9 +6841,9 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // pipe1.mediums[5].phi = pipe1.mediums[5].p / pipe1.mediums[5].n19 * pipe1.mediums[5].Xi[1] / (pipe1.mediums[5].Xi[1] + 0.6219647130774989 * pipe1.mediums[5].n16); // pipe1.mediums[5].Xi[1] = pipe1.mediums[5].X[1]; // pipe1.mediums[5].X[2] = 1.0 - pipe1.mediums[5].Xi[1]; -// assert(pipe1.mediums[5].X[1] >= -1e-05 and pipe1.mediums[5].X[1] <= 1.00001, \"Mass fraction X[\" + String(1, 0, true) + \"] = \" + String(pipe1.mediums[5].X[1], 6, 0, true) + \"of substance \" + \"water\" + \" +// assert(pipe1.mediums[5].X[1] >= -1e-5 and pipe1.mediums[5].X[1] <= 1.00001, \"Mass fraction X[\" + String(1, 0, true) + \"] = \" + String(pipe1.mediums[5].X[1], 6, 0, true) + \"of substance \" + \"water\" + \" // of medium \" + \"Moist air\" + \" is not in the range 0..1\"); -// assert(pipe1.mediums[5].X[2] >= -1e-05 and pipe1.mediums[5].X[2] <= 1.00001, \"Mass fraction X[\" + String(2, 0, true) + \"] = \" + String(pipe1.mediums[5].X[2], 6, 0, true) + \"of substance \" + \"air\" + \" +// assert(pipe1.mediums[5].X[2] >= -1e-5 and pipe1.mediums[5].X[2] <= 1.00001, \"Mass fraction X[\" + String(2, 0, true) + \"] = \" + String(pipe1.mediums[5].X[2], 6, 0, true) + \"of substance \" + \"air\" + \" // of medium \" + \"Moist air\" + \" is not in the range 0..1\"); // assert(pipe1.mediums[5].p >= 0.0, \"Pressure (= \" + String(pipe1.mediums[5].p, 6, 0, true) + \" Pa) of medium \\\"\" + \"Moist air\" + \"\\\" is negative // (Temperature = \" + String(pipe1.mediums[5].T, 6, 0, true) + \" K)\"); @@ -6975,9 +6975,9 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // pipe1.H_flows[5] = semiLinear(pipe1.m_flows[5], pipe1.mediums[4].h, pipe1.mediums[5].h); // pipe1.mXi_flows[5,1] = semiLinear(pipe1.m_flows[5], pipe1.mediums[4].Xi[1], pipe1.mediums[5].Xi[1]); // pipe1.H_flows[1] = semiLinear(pipe1.port_a.m_flow, boundary1.ports[1].h_outflow, pipe1.mediums[1].h); -// pipe1.H_flows[6] = -semiLinear(pipe1.port_b.m_flow, ($OMC$PositiveMax(-pipe2.port_a.m_flow, 1e-07) * pipe2.port_a.h_outflow + $OMC$PositiveMax(-pipe3.port_a.m_flow, 1e-07) * pipe3.port_a.h_outflow) / ($OMC$PositiveMax(-pipe2.port_a.m_flow, 1e-07) + $OMC$PositiveMax(-pipe3.port_a.m_flow, 1e-07)), pipe1.mediums[5].h); +// pipe1.H_flows[6] = -semiLinear(pipe1.port_b.m_flow, ($OMC$PositiveMax(-pipe2.port_a.m_flow, 1e-7) * pipe2.port_a.h_outflow + $OMC$PositiveMax(-pipe3.port_a.m_flow, 1e-7) * pipe3.port_a.h_outflow) / ($OMC$PositiveMax(-pipe2.port_a.m_flow, 1e-7) + $OMC$PositiveMax(-pipe3.port_a.m_flow, 1e-7)), pipe1.mediums[5].h); // pipe1.mXi_flows[1,1] = semiLinear(pipe1.port_a.m_flow, boundary1.ports[1].Xi_outflow[1], pipe1.mediums[1].Xi[1]); -// pipe1.mXi_flows[6,1] = -semiLinear(pipe1.port_b.m_flow, ($OMC$PositiveMax(-pipe2.port_a.m_flow, 1e-07) * pipe2.port_a.Xi_outflow[1] + $OMC$PositiveMax(-pipe3.port_a.m_flow, 1e-07) * pipe3.port_a.Xi_outflow[1]) / ($OMC$PositiveMax(-pipe2.port_a.m_flow, 1e-07) + $OMC$PositiveMax(-pipe3.port_a.m_flow, 1e-07)), pipe1.mediums[5].Xi[1]); +// pipe1.mXi_flows[6,1] = -semiLinear(pipe1.port_b.m_flow, ($OMC$PositiveMax(-pipe2.port_a.m_flow, 1e-7) * pipe2.port_a.Xi_outflow[1] + $OMC$PositiveMax(-pipe3.port_a.m_flow, 1e-7) * pipe3.port_a.Xi_outflow[1]) / ($OMC$PositiveMax(-pipe2.port_a.m_flow, 1e-7) + $OMC$PositiveMax(-pipe3.port_a.m_flow, 1e-7)), pipe1.mediums[5].Xi[1]); // pipe1.port_a.m_flow = pipe1.m_flows[1]; // pipe1.port_b.m_flow = -pipe1.m_flows[6]; // pipe1.port_a.h_outflow = pipe1.mediums[1].h; @@ -6985,7 +6985,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // pipe1.port_a.Xi_outflow[1] = pipe1.mediums[1].Xi[1]; // pipe1.port_b.Xi_outflow[1] = pipe1.mediums[5].Xi[1]; // pipe1.state_a = Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.Medium.setState_phX(pipe1.port_a.p, boundary1.ports[1].h_outflow, {boundary1.ports[1].Xi_outflow[1]}); -// pipe1.state_b = Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.Medium.setState_phX(pipe1.port_b.p, ($OMC$PositiveMax(-pipe2.port_a.m_flow, 1e-07) * pipe2.port_a.h_outflow + $OMC$PositiveMax(-pipe3.port_a.m_flow, 1e-07) * pipe3.port_a.h_outflow) / ($OMC$PositiveMax(-pipe2.port_a.m_flow, 1e-07) + $OMC$PositiveMax(-pipe3.port_a.m_flow, 1e-07)), {($OMC$PositiveMax(-pipe2.port_a.m_flow, 1e-07) * pipe2.port_a.Xi_outflow[1] + $OMC$PositiveMax(-pipe3.port_a.m_flow, 1e-07) * pipe3.port_a.Xi_outflow[1]) / ($OMC$PositiveMax(-pipe2.port_a.m_flow, 1e-07) + $OMC$PositiveMax(-pipe3.port_a.m_flow, 1e-07))}); +// pipe1.state_b = Modelica.Fluid.Examples.BranchingDynamicPipes.pipe1.Medium.setState_phX(pipe1.port_b.p, ($OMC$PositiveMax(-pipe2.port_a.m_flow, 1e-7) * pipe2.port_a.h_outflow + $OMC$PositiveMax(-pipe3.port_a.m_flow, 1e-7) * pipe3.port_a.h_outflow) / ($OMC$PositiveMax(-pipe2.port_a.m_flow, 1e-7) + $OMC$PositiveMax(-pipe3.port_a.m_flow, 1e-7)), {($OMC$PositiveMax(-pipe2.port_a.m_flow, 1e-7) * pipe2.port_a.Xi_outflow[1] + $OMC$PositiveMax(-pipe3.port_a.m_flow, 1e-7) * pipe3.port_a.Xi_outflow[1]) / ($OMC$PositiveMax(-pipe2.port_a.m_flow, 1e-7) + $OMC$PositiveMax(-pipe3.port_a.m_flow, 1e-7))}); // pipe1.statesFM[1] = pipe1.state_a; // pipe1.statesFM[2] = pipe1.mediums[1].state; // pipe1.statesFM[3] = pipe1.mediums[2].state; @@ -7060,9 +7060,9 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // pipe2.mediums[1].phi = pipe2.mediums[1].p / pipe2.mediums[1].n44 * pipe2.mediums[1].Xi[1] / (pipe2.mediums[1].Xi[1] + 0.6219647130774989 * pipe2.mediums[1].n41); // pipe2.mediums[1].Xi[1] = pipe2.mediums[1].X[1]; // pipe2.mediums[1].X[2] = 1.0 - pipe2.mediums[1].Xi[1]; -// assert(pipe2.mediums[1].X[1] >= -1e-05 and pipe2.mediums[1].X[1] <= 1.00001, \"Mass fraction X[\" + String(1, 0, true) + \"] = \" + String(pipe2.mediums[1].X[1], 6, 0, true) + \"of substance \" + \"water\" + \" +// assert(pipe2.mediums[1].X[1] >= -1e-5 and pipe2.mediums[1].X[1] <= 1.00001, \"Mass fraction X[\" + String(1, 0, true) + \"] = \" + String(pipe2.mediums[1].X[1], 6, 0, true) + \"of substance \" + \"water\" + \" // of medium \" + \"Moist air\" + \" is not in the range 0..1\"); -// assert(pipe2.mediums[1].X[2] >= -1e-05 and pipe2.mediums[1].X[2] <= 1.00001, \"Mass fraction X[\" + String(2, 0, true) + \"] = \" + String(pipe2.mediums[1].X[2], 6, 0, true) + \"of substance \" + \"air\" + \" +// assert(pipe2.mediums[1].X[2] >= -1e-5 and pipe2.mediums[1].X[2] <= 1.00001, \"Mass fraction X[\" + String(2, 0, true) + \"] = \" + String(pipe2.mediums[1].X[2], 6, 0, true) + \"of substance \" + \"air\" + \" // of medium \" + \"Moist air\" + \" is not in the range 0..1\"); // assert(pipe2.mediums[1].p >= 0.0, \"Pressure (= \" + String(pipe2.mediums[1].p, 6, 0, true) + \" Pa) of medium \\\"\" + \"Moist air\" + \"\\\" is negative // (Temperature = \" + String(pipe2.mediums[1].T, 6, 0, true) + \" K)\"); @@ -7089,9 +7089,9 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // pipe2.mediums[2].phi = pipe2.mediums[2].p / pipe2.mediums[2].n44 * pipe2.mediums[2].Xi[1] / (pipe2.mediums[2].Xi[1] + 0.6219647130774989 * pipe2.mediums[2].n41); // pipe2.mediums[2].Xi[1] = pipe2.mediums[2].X[1]; // pipe2.mediums[2].X[2] = 1.0 - pipe2.mediums[2].Xi[1]; -// assert(pipe2.mediums[2].X[1] >= -1e-05 and pipe2.mediums[2].X[1] <= 1.00001, \"Mass fraction X[\" + String(1, 0, true) + \"] = \" + String(pipe2.mediums[2].X[1], 6, 0, true) + \"of substance \" + \"water\" + \" +// assert(pipe2.mediums[2].X[1] >= -1e-5 and pipe2.mediums[2].X[1] <= 1.00001, \"Mass fraction X[\" + String(1, 0, true) + \"] = \" + String(pipe2.mediums[2].X[1], 6, 0, true) + \"of substance \" + \"water\" + \" // of medium \" + \"Moist air\" + \" is not in the range 0..1\"); -// assert(pipe2.mediums[2].X[2] >= -1e-05 and pipe2.mediums[2].X[2] <= 1.00001, \"Mass fraction X[\" + String(2, 0, true) + \"] = \" + String(pipe2.mediums[2].X[2], 6, 0, true) + \"of substance \" + \"air\" + \" +// assert(pipe2.mediums[2].X[2] >= -1e-5 and pipe2.mediums[2].X[2] <= 1.00001, \"Mass fraction X[\" + String(2, 0, true) + \"] = \" + String(pipe2.mediums[2].X[2], 6, 0, true) + \"of substance \" + \"air\" + \" // of medium \" + \"Moist air\" + \" is not in the range 0..1\"); // assert(pipe2.mediums[2].p >= 0.0, \"Pressure (= \" + String(pipe2.mediums[2].p, 6, 0, true) + \" Pa) of medium \\\"\" + \"Moist air\" + \"\\\" is negative // (Temperature = \" + String(pipe2.mediums[2].T, 6, 0, true) + \" K)\"); @@ -7118,9 +7118,9 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // pipe2.mediums[3].phi = pipe2.mediums[3].p / pipe2.mediums[3].n44 * pipe2.mediums[3].Xi[1] / (pipe2.mediums[3].Xi[1] + 0.6219647130774989 * pipe2.mediums[3].n41); // pipe2.mediums[3].Xi[1] = pipe2.mediums[3].X[1]; // pipe2.mediums[3].X[2] = 1.0 - pipe2.mediums[3].Xi[1]; -// assert(pipe2.mediums[3].X[1] >= -1e-05 and pipe2.mediums[3].X[1] <= 1.00001, \"Mass fraction X[\" + String(1, 0, true) + \"] = \" + String(pipe2.mediums[3].X[1], 6, 0, true) + \"of substance \" + \"water\" + \" +// assert(pipe2.mediums[3].X[1] >= -1e-5 and pipe2.mediums[3].X[1] <= 1.00001, \"Mass fraction X[\" + String(1, 0, true) + \"] = \" + String(pipe2.mediums[3].X[1], 6, 0, true) + \"of substance \" + \"water\" + \" // of medium \" + \"Moist air\" + \" is not in the range 0..1\"); -// assert(pipe2.mediums[3].X[2] >= -1e-05 and pipe2.mediums[3].X[2] <= 1.00001, \"Mass fraction X[\" + String(2, 0, true) + \"] = \" + String(pipe2.mediums[3].X[2], 6, 0, true) + \"of substance \" + \"air\" + \" +// assert(pipe2.mediums[3].X[2] >= -1e-5 and pipe2.mediums[3].X[2] <= 1.00001, \"Mass fraction X[\" + String(2, 0, true) + \"] = \" + String(pipe2.mediums[3].X[2], 6, 0, true) + \"of substance \" + \"air\" + \" // of medium \" + \"Moist air\" + \" is not in the range 0..1\"); // assert(pipe2.mediums[3].p >= 0.0, \"Pressure (= \" + String(pipe2.mediums[3].p, 6, 0, true) + \" Pa) of medium \\\"\" + \"Moist air\" + \"\\\" is negative // (Temperature = \" + String(pipe2.mediums[3].T, 6, 0, true) + \" K)\"); @@ -7147,9 +7147,9 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // pipe2.mediums[4].phi = pipe2.mediums[4].p / pipe2.mediums[4].n44 * pipe2.mediums[4].Xi[1] / (pipe2.mediums[4].Xi[1] + 0.6219647130774989 * pipe2.mediums[4].n41); // pipe2.mediums[4].Xi[1] = pipe2.mediums[4].X[1]; // pipe2.mediums[4].X[2] = 1.0 - pipe2.mediums[4].Xi[1]; -// assert(pipe2.mediums[4].X[1] >= -1e-05 and pipe2.mediums[4].X[1] <= 1.00001, \"Mass fraction X[\" + String(1, 0, true) + \"] = \" + String(pipe2.mediums[4].X[1], 6, 0, true) + \"of substance \" + \"water\" + \" +// assert(pipe2.mediums[4].X[1] >= -1e-5 and pipe2.mediums[4].X[1] <= 1.00001, \"Mass fraction X[\" + String(1, 0, true) + \"] = \" + String(pipe2.mediums[4].X[1], 6, 0, true) + \"of substance \" + \"water\" + \" // of medium \" + \"Moist air\" + \" is not in the range 0..1\"); -// assert(pipe2.mediums[4].X[2] >= -1e-05 and pipe2.mediums[4].X[2] <= 1.00001, \"Mass fraction X[\" + String(2, 0, true) + \"] = \" + String(pipe2.mediums[4].X[2], 6, 0, true) + \"of substance \" + \"air\" + \" +// assert(pipe2.mediums[4].X[2] >= -1e-5 and pipe2.mediums[4].X[2] <= 1.00001, \"Mass fraction X[\" + String(2, 0, true) + \"] = \" + String(pipe2.mediums[4].X[2], 6, 0, true) + \"of substance \" + \"air\" + \" // of medium \" + \"Moist air\" + \" is not in the range 0..1\"); // assert(pipe2.mediums[4].p >= 0.0, \"Pressure (= \" + String(pipe2.mediums[4].p, 6, 0, true) + \" Pa) of medium \\\"\" + \"Moist air\" + \"\\\" is negative // (Temperature = \" + String(pipe2.mediums[4].T, 6, 0, true) + \" K)\"); @@ -7176,9 +7176,9 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // pipe2.mediums[5].phi = pipe2.mediums[5].p / pipe2.mediums[5].n44 * pipe2.mediums[5].Xi[1] / (pipe2.mediums[5].Xi[1] + 0.6219647130774989 * pipe2.mediums[5].n41); // pipe2.mediums[5].Xi[1] = pipe2.mediums[5].X[1]; // pipe2.mediums[5].X[2] = 1.0 - pipe2.mediums[5].Xi[1]; -// assert(pipe2.mediums[5].X[1] >= -1e-05 and pipe2.mediums[5].X[1] <= 1.00001, \"Mass fraction X[\" + String(1, 0, true) + \"] = \" + String(pipe2.mediums[5].X[1], 6, 0, true) + \"of substance \" + \"water\" + \" +// assert(pipe2.mediums[5].X[1] >= -1e-5 and pipe2.mediums[5].X[1] <= 1.00001, \"Mass fraction X[\" + String(1, 0, true) + \"] = \" + String(pipe2.mediums[5].X[1], 6, 0, true) + \"of substance \" + \"water\" + \" // of medium \" + \"Moist air\" + \" is not in the range 0..1\"); -// assert(pipe2.mediums[5].X[2] >= -1e-05 and pipe2.mediums[5].X[2] <= 1.00001, \"Mass fraction X[\" + String(2, 0, true) + \"] = \" + String(pipe2.mediums[5].X[2], 6, 0, true) + \"of substance \" + \"air\" + \" +// assert(pipe2.mediums[5].X[2] >= -1e-5 and pipe2.mediums[5].X[2] <= 1.00001, \"Mass fraction X[\" + String(2, 0, true) + \"] = \" + String(pipe2.mediums[5].X[2], 6, 0, true) + \"of substance \" + \"air\" + \" // of medium \" + \"Moist air\" + \" is not in the range 0..1\"); // assert(pipe2.mediums[5].p >= 0.0, \"Pressure (= \" + String(pipe2.mediums[5].p, 6, 0, true) + \" Pa) of medium \\\"\" + \"Moist air\" + \"\\\" is negative // (Temperature = \" + String(pipe2.mediums[5].T, 6, 0, true) + \" K)\"); @@ -7316,18 +7316,18 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // pipe2.mXi_flows[4,1] = semiLinear(pipe2.m_flows[4], pipe2.mediums[3].Xi[1], pipe2.mediums[4].Xi[1]); // pipe2.H_flows[5] = semiLinear(pipe2.m_flows[5], pipe2.mediums[4].h, pipe2.mediums[5].h); // pipe2.mXi_flows[5,1] = semiLinear(pipe2.m_flows[5], pipe2.mediums[4].Xi[1], pipe2.mediums[5].Xi[1]); -// pipe2.H_flows[1] = semiLinear(pipe2.port_a.m_flow, ($OMC$PositiveMax(-pipe3.port_a.m_flow, 1e-07) * pipe3.port_a.h_outflow + $OMC$PositiveMax(-pipe1.port_b.m_flow, 1e-07) * pipe1.port_b.h_outflow) / ($OMC$PositiveMax(-pipe3.port_a.m_flow, 1e-07) + $OMC$PositiveMax(-pipe1.port_b.m_flow, 1e-07)), pipe2.mediums[1].h); -// pipe2.H_flows[6] = -semiLinear(pipe2.port_b.m_flow, ($OMC$PositiveMax(-pipe4.port_a.m_flow, 1e-07) * pipe4.port_a.h_outflow + $OMC$PositiveMax(-pipe3.port_b.m_flow, 1e-07) * pipe3.port_b.h_outflow) / ($OMC$PositiveMax(-pipe4.port_a.m_flow, 1e-07) + $OMC$PositiveMax(-pipe3.port_b.m_flow, 1e-07)), pipe2.mediums[5].h); -// pipe2.mXi_flows[1,1] = semiLinear(pipe2.port_a.m_flow, ($OMC$PositiveMax(-pipe3.port_a.m_flow, 1e-07) * pipe3.port_a.Xi_outflow[1] + $OMC$PositiveMax(-pipe1.port_b.m_flow, 1e-07) * pipe1.port_b.Xi_outflow[1]) / ($OMC$PositiveMax(-pipe3.port_a.m_flow, 1e-07) + $OMC$PositiveMax(-pipe1.port_b.m_flow, 1e-07)), pipe2.mediums[1].Xi[1]); -// pipe2.mXi_flows[6,1] = -semiLinear(pipe2.port_b.m_flow, ($OMC$PositiveMax(-pipe4.port_a.m_flow, 1e-07) * pipe4.port_a.Xi_outflow[1] + $OMC$PositiveMax(-pipe3.port_b.m_flow, 1e-07) * pipe3.port_b.Xi_outflow[1]) / ($OMC$PositiveMax(-pipe4.port_a.m_flow, 1e-07) + $OMC$PositiveMax(-pipe3.port_b.m_flow, 1e-07)), pipe2.mediums[5].Xi[1]); +// pipe2.H_flows[1] = semiLinear(pipe2.port_a.m_flow, ($OMC$PositiveMax(-pipe3.port_a.m_flow, 1e-7) * pipe3.port_a.h_outflow + $OMC$PositiveMax(-pipe1.port_b.m_flow, 1e-7) * pipe1.port_b.h_outflow) / ($OMC$PositiveMax(-pipe3.port_a.m_flow, 1e-7) + $OMC$PositiveMax(-pipe1.port_b.m_flow, 1e-7)), pipe2.mediums[1].h); +// pipe2.H_flows[6] = -semiLinear(pipe2.port_b.m_flow, ($OMC$PositiveMax(-pipe4.port_a.m_flow, 1e-7) * pipe4.port_a.h_outflow + $OMC$PositiveMax(-pipe3.port_b.m_flow, 1e-7) * pipe3.port_b.h_outflow) / ($OMC$PositiveMax(-pipe4.port_a.m_flow, 1e-7) + $OMC$PositiveMax(-pipe3.port_b.m_flow, 1e-7)), pipe2.mediums[5].h); +// pipe2.mXi_flows[1,1] = semiLinear(pipe2.port_a.m_flow, ($OMC$PositiveMax(-pipe3.port_a.m_flow, 1e-7) * pipe3.port_a.Xi_outflow[1] + $OMC$PositiveMax(-pipe1.port_b.m_flow, 1e-7) * pipe1.port_b.Xi_outflow[1]) / ($OMC$PositiveMax(-pipe3.port_a.m_flow, 1e-7) + $OMC$PositiveMax(-pipe1.port_b.m_flow, 1e-7)), pipe2.mediums[1].Xi[1]); +// pipe2.mXi_flows[6,1] = -semiLinear(pipe2.port_b.m_flow, ($OMC$PositiveMax(-pipe4.port_a.m_flow, 1e-7) * pipe4.port_a.Xi_outflow[1] + $OMC$PositiveMax(-pipe3.port_b.m_flow, 1e-7) * pipe3.port_b.Xi_outflow[1]) / ($OMC$PositiveMax(-pipe4.port_a.m_flow, 1e-7) + $OMC$PositiveMax(-pipe3.port_b.m_flow, 1e-7)), pipe2.mediums[5].Xi[1]); // pipe2.port_a.m_flow = pipe2.m_flows[1]; // pipe2.port_b.m_flow = -pipe2.m_flows[6]; // pipe2.port_a.h_outflow = pipe2.mediums[1].h; // pipe2.port_b.h_outflow = pipe2.mediums[5].h; // pipe2.port_a.Xi_outflow[1] = pipe2.mediums[1].Xi[1]; // pipe2.port_b.Xi_outflow[1] = pipe2.mediums[5].Xi[1]; -// pipe2.state_a = Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.Medium.setState_phX(pipe2.port_a.p, ($OMC$PositiveMax(-pipe3.port_a.m_flow, 1e-07) * pipe3.port_a.h_outflow + $OMC$PositiveMax(-pipe1.port_b.m_flow, 1e-07) * pipe1.port_b.h_outflow) / ($OMC$PositiveMax(-pipe3.port_a.m_flow, 1e-07) + $OMC$PositiveMax(-pipe1.port_b.m_flow, 1e-07)), {($OMC$PositiveMax(-pipe3.port_a.m_flow, 1e-07) * pipe3.port_a.Xi_outflow[1] + $OMC$PositiveMax(-pipe1.port_b.m_flow, 1e-07) * pipe1.port_b.Xi_outflow[1]) / ($OMC$PositiveMax(-pipe3.port_a.m_flow, 1e-07) + $OMC$PositiveMax(-pipe1.port_b.m_flow, 1e-07))}); -// pipe2.state_b = Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.Medium.setState_phX(pipe2.port_b.p, ($OMC$PositiveMax(-pipe4.port_a.m_flow, 1e-07) * pipe4.port_a.h_outflow + $OMC$PositiveMax(-pipe3.port_b.m_flow, 1e-07) * pipe3.port_b.h_outflow) / ($OMC$PositiveMax(-pipe4.port_a.m_flow, 1e-07) + $OMC$PositiveMax(-pipe3.port_b.m_flow, 1e-07)), {($OMC$PositiveMax(-pipe4.port_a.m_flow, 1e-07) * pipe4.port_a.Xi_outflow[1] + $OMC$PositiveMax(-pipe3.port_b.m_flow, 1e-07) * pipe3.port_b.Xi_outflow[1]) / ($OMC$PositiveMax(-pipe4.port_a.m_flow, 1e-07) + $OMC$PositiveMax(-pipe3.port_b.m_flow, 1e-07))}); +// pipe2.state_a = Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.Medium.setState_phX(pipe2.port_a.p, ($OMC$PositiveMax(-pipe3.port_a.m_flow, 1e-7) * pipe3.port_a.h_outflow + $OMC$PositiveMax(-pipe1.port_b.m_flow, 1e-7) * pipe1.port_b.h_outflow) / ($OMC$PositiveMax(-pipe3.port_a.m_flow, 1e-7) + $OMC$PositiveMax(-pipe1.port_b.m_flow, 1e-7)), {($OMC$PositiveMax(-pipe3.port_a.m_flow, 1e-7) * pipe3.port_a.Xi_outflow[1] + $OMC$PositiveMax(-pipe1.port_b.m_flow, 1e-7) * pipe1.port_b.Xi_outflow[1]) / ($OMC$PositiveMax(-pipe3.port_a.m_flow, 1e-7) + $OMC$PositiveMax(-pipe1.port_b.m_flow, 1e-7))}); +// pipe2.state_b = Modelica.Fluid.Examples.BranchingDynamicPipes.pipe2.Medium.setState_phX(pipe2.port_b.p, ($OMC$PositiveMax(-pipe4.port_a.m_flow, 1e-7) * pipe4.port_a.h_outflow + $OMC$PositiveMax(-pipe3.port_b.m_flow, 1e-7) * pipe3.port_b.h_outflow) / ($OMC$PositiveMax(-pipe4.port_a.m_flow, 1e-7) + $OMC$PositiveMax(-pipe3.port_b.m_flow, 1e-7)), {($OMC$PositiveMax(-pipe4.port_a.m_flow, 1e-7) * pipe4.port_a.Xi_outflow[1] + $OMC$PositiveMax(-pipe3.port_b.m_flow, 1e-7) * pipe3.port_b.Xi_outflow[1]) / ($OMC$PositiveMax(-pipe4.port_a.m_flow, 1e-7) + $OMC$PositiveMax(-pipe3.port_b.m_flow, 1e-7))}); // pipe2.statesFM[1] = pipe2.mediums[1].state; // pipe2.statesFM[2] = pipe2.mediums[2].state; // pipe2.statesFM[3] = pipe2.mediums[3].state; @@ -7398,9 +7398,9 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // pipe3.mediums[1].phi = pipe3.mediums[1].p / pipe3.mediums[1].n74 * pipe3.mediums[1].Xi[1] / (pipe3.mediums[1].Xi[1] + 0.6219647130774989 * pipe3.mediums[1].n71); // pipe3.mediums[1].Xi[1] = pipe3.mediums[1].X[1]; // pipe3.mediums[1].X[2] = 1.0 - pipe3.mediums[1].Xi[1]; -// assert(pipe3.mediums[1].X[1] >= -1e-05 and pipe3.mediums[1].X[1] <= 1.00001, \"Mass fraction X[\" + String(1, 0, true) + \"] = \" + String(pipe3.mediums[1].X[1], 6, 0, true) + \"of substance \" + \"water\" + \" +// assert(pipe3.mediums[1].X[1] >= -1e-5 and pipe3.mediums[1].X[1] <= 1.00001, \"Mass fraction X[\" + String(1, 0, true) + \"] = \" + String(pipe3.mediums[1].X[1], 6, 0, true) + \"of substance \" + \"water\" + \" // of medium \" + \"Moist air\" + \" is not in the range 0..1\"); -// assert(pipe3.mediums[1].X[2] >= -1e-05 and pipe3.mediums[1].X[2] <= 1.00001, \"Mass fraction X[\" + String(2, 0, true) + \"] = \" + String(pipe3.mediums[1].X[2], 6, 0, true) + \"of substance \" + \"air\" + \" +// assert(pipe3.mediums[1].X[2] >= -1e-5 and pipe3.mediums[1].X[2] <= 1.00001, \"Mass fraction X[\" + String(2, 0, true) + \"] = \" + String(pipe3.mediums[1].X[2], 6, 0, true) + \"of substance \" + \"air\" + \" // of medium \" + \"Moist air\" + \" is not in the range 0..1\"); // assert(pipe3.mediums[1].p >= 0.0, \"Pressure (= \" + String(pipe3.mediums[1].p, 6, 0, true) + \" Pa) of medium \\\"\" + \"Moist air\" + \"\\\" is negative // (Temperature = \" + String(pipe3.mediums[1].T, 6, 0, true) + \" K)\"); @@ -7427,9 +7427,9 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // pipe3.mediums[2].phi = pipe3.mediums[2].p / pipe3.mediums[2].n74 * pipe3.mediums[2].Xi[1] / (pipe3.mediums[2].Xi[1] + 0.6219647130774989 * pipe3.mediums[2].n71); // pipe3.mediums[2].Xi[1] = pipe3.mediums[2].X[1]; // pipe3.mediums[2].X[2] = 1.0 - pipe3.mediums[2].Xi[1]; -// assert(pipe3.mediums[2].X[1] >= -1e-05 and pipe3.mediums[2].X[1] <= 1.00001, \"Mass fraction X[\" + String(1, 0, true) + \"] = \" + String(pipe3.mediums[2].X[1], 6, 0, true) + \"of substance \" + \"water\" + \" +// assert(pipe3.mediums[2].X[1] >= -1e-5 and pipe3.mediums[2].X[1] <= 1.00001, \"Mass fraction X[\" + String(1, 0, true) + \"] = \" + String(pipe3.mediums[2].X[1], 6, 0, true) + \"of substance \" + \"water\" + \" // of medium \" + \"Moist air\" + \" is not in the range 0..1\"); -// assert(pipe3.mediums[2].X[2] >= -1e-05 and pipe3.mediums[2].X[2] <= 1.00001, \"Mass fraction X[\" + String(2, 0, true) + \"] = \" + String(pipe3.mediums[2].X[2], 6, 0, true) + \"of substance \" + \"air\" + \" +// assert(pipe3.mediums[2].X[2] >= -1e-5 and pipe3.mediums[2].X[2] <= 1.00001, \"Mass fraction X[\" + String(2, 0, true) + \"] = \" + String(pipe3.mediums[2].X[2], 6, 0, true) + \"of substance \" + \"air\" + \" // of medium \" + \"Moist air\" + \" is not in the range 0..1\"); // assert(pipe3.mediums[2].p >= 0.0, \"Pressure (= \" + String(pipe3.mediums[2].p, 6, 0, true) + \" Pa) of medium \\\"\" + \"Moist air\" + \"\\\" is negative // (Temperature = \" + String(pipe3.mediums[2].T, 6, 0, true) + \" K)\"); @@ -7456,9 +7456,9 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // pipe3.mediums[3].phi = pipe3.mediums[3].p / pipe3.mediums[3].n74 * pipe3.mediums[3].Xi[1] / (pipe3.mediums[3].Xi[1] + 0.6219647130774989 * pipe3.mediums[3].n71); // pipe3.mediums[3].Xi[1] = pipe3.mediums[3].X[1]; // pipe3.mediums[3].X[2] = 1.0 - pipe3.mediums[3].Xi[1]; -// assert(pipe3.mediums[3].X[1] >= -1e-05 and pipe3.mediums[3].X[1] <= 1.00001, \"Mass fraction X[\" + String(1, 0, true) + \"] = \" + String(pipe3.mediums[3].X[1], 6, 0, true) + \"of substance \" + \"water\" + \" +// assert(pipe3.mediums[3].X[1] >= -1e-5 and pipe3.mediums[3].X[1] <= 1.00001, \"Mass fraction X[\" + String(1, 0, true) + \"] = \" + String(pipe3.mediums[3].X[1], 6, 0, true) + \"of substance \" + \"water\" + \" // of medium \" + \"Moist air\" + \" is not in the range 0..1\"); -// assert(pipe3.mediums[3].X[2] >= -1e-05 and pipe3.mediums[3].X[2] <= 1.00001, \"Mass fraction X[\" + String(2, 0, true) + \"] = \" + String(pipe3.mediums[3].X[2], 6, 0, true) + \"of substance \" + \"air\" + \" +// assert(pipe3.mediums[3].X[2] >= -1e-5 and pipe3.mediums[3].X[2] <= 1.00001, \"Mass fraction X[\" + String(2, 0, true) + \"] = \" + String(pipe3.mediums[3].X[2], 6, 0, true) + \"of substance \" + \"air\" + \" // of medium \" + \"Moist air\" + \" is not in the range 0..1\"); // assert(pipe3.mediums[3].p >= 0.0, \"Pressure (= \" + String(pipe3.mediums[3].p, 6, 0, true) + \" Pa) of medium \\\"\" + \"Moist air\" + \"\\\" is negative // (Temperature = \" + String(pipe3.mediums[3].T, 6, 0, true) + \" K)\"); @@ -7485,9 +7485,9 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // pipe3.mediums[4].phi = pipe3.mediums[4].p / pipe3.mediums[4].n74 * pipe3.mediums[4].Xi[1] / (pipe3.mediums[4].Xi[1] + 0.6219647130774989 * pipe3.mediums[4].n71); // pipe3.mediums[4].Xi[1] = pipe3.mediums[4].X[1]; // pipe3.mediums[4].X[2] = 1.0 - pipe3.mediums[4].Xi[1]; -// assert(pipe3.mediums[4].X[1] >= -1e-05 and pipe3.mediums[4].X[1] <= 1.00001, \"Mass fraction X[\" + String(1, 0, true) + \"] = \" + String(pipe3.mediums[4].X[1], 6, 0, true) + \"of substance \" + \"water\" + \" +// assert(pipe3.mediums[4].X[1] >= -1e-5 and pipe3.mediums[4].X[1] <= 1.00001, \"Mass fraction X[\" + String(1, 0, true) + \"] = \" + String(pipe3.mediums[4].X[1], 6, 0, true) + \"of substance \" + \"water\" + \" // of medium \" + \"Moist air\" + \" is not in the range 0..1\"); -// assert(pipe3.mediums[4].X[2] >= -1e-05 and pipe3.mediums[4].X[2] <= 1.00001, \"Mass fraction X[\" + String(2, 0, true) + \"] = \" + String(pipe3.mediums[4].X[2], 6, 0, true) + \"of substance \" + \"air\" + \" +// assert(pipe3.mediums[4].X[2] >= -1e-5 and pipe3.mediums[4].X[2] <= 1.00001, \"Mass fraction X[\" + String(2, 0, true) + \"] = \" + String(pipe3.mediums[4].X[2], 6, 0, true) + \"of substance \" + \"air\" + \" // of medium \" + \"Moist air\" + \" is not in the range 0..1\"); // assert(pipe3.mediums[4].p >= 0.0, \"Pressure (= \" + String(pipe3.mediums[4].p, 6, 0, true) + \" Pa) of medium \\\"\" + \"Moist air\" + \"\\\" is negative // (Temperature = \" + String(pipe3.mediums[4].T, 6, 0, true) + \" K)\"); @@ -7514,9 +7514,9 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // pipe3.mediums[5].phi = pipe3.mediums[5].p / pipe3.mediums[5].n74 * pipe3.mediums[5].Xi[1] / (pipe3.mediums[5].Xi[1] + 0.6219647130774989 * pipe3.mediums[5].n71); // pipe3.mediums[5].Xi[1] = pipe3.mediums[5].X[1]; // pipe3.mediums[5].X[2] = 1.0 - pipe3.mediums[5].Xi[1]; -// assert(pipe3.mediums[5].X[1] >= -1e-05 and pipe3.mediums[5].X[1] <= 1.00001, \"Mass fraction X[\" + String(1, 0, true) + \"] = \" + String(pipe3.mediums[5].X[1], 6, 0, true) + \"of substance \" + \"water\" + \" +// assert(pipe3.mediums[5].X[1] >= -1e-5 and pipe3.mediums[5].X[1] <= 1.00001, \"Mass fraction X[\" + String(1, 0, true) + \"] = \" + String(pipe3.mediums[5].X[1], 6, 0, true) + \"of substance \" + \"water\" + \" // of medium \" + \"Moist air\" + \" is not in the range 0..1\"); -// assert(pipe3.mediums[5].X[2] >= -1e-05 and pipe3.mediums[5].X[2] <= 1.00001, \"Mass fraction X[\" + String(2, 0, true) + \"] = \" + String(pipe3.mediums[5].X[2], 6, 0, true) + \"of substance \" + \"air\" + \" +// assert(pipe3.mediums[5].X[2] >= -1e-5 and pipe3.mediums[5].X[2] <= 1.00001, \"Mass fraction X[\" + String(2, 0, true) + \"] = \" + String(pipe3.mediums[5].X[2], 6, 0, true) + \"of substance \" + \"air\" + \" // of medium \" + \"Moist air\" + \" is not in the range 0..1\"); // assert(pipe3.mediums[5].p >= 0.0, \"Pressure (= \" + String(pipe3.mediums[5].p, 6, 0, true) + \" Pa) of medium \\\"\" + \"Moist air\" + \"\\\" is negative // (Temperature = \" + String(pipe3.mediums[5].T, 6, 0, true) + \" K)\"); @@ -7647,18 +7647,18 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // pipe3.mXi_flows[4,1] = semiLinear(pipe3.m_flows[4], pipe3.mediums[3].Xi[1], pipe3.mediums[4].Xi[1]); // pipe3.H_flows[5] = semiLinear(pipe3.m_flows[5], pipe3.mediums[4].h, pipe3.mediums[5].h); // pipe3.mXi_flows[5,1] = semiLinear(pipe3.m_flows[5], pipe3.mediums[4].Xi[1], pipe3.mediums[5].Xi[1]); -// pipe3.H_flows[1] = semiLinear(pipe3.port_a.m_flow, ($OMC$PositiveMax(-pipe2.port_a.m_flow, 1e-07) * pipe2.port_a.h_outflow + $OMC$PositiveMax(-pipe1.port_b.m_flow, 1e-07) * pipe1.port_b.h_outflow) / ($OMC$PositiveMax(-pipe2.port_a.m_flow, 1e-07) + $OMC$PositiveMax(-pipe1.port_b.m_flow, 1e-07)), pipe3.mediums[1].h); -// pipe3.H_flows[6] = -semiLinear(pipe3.port_b.m_flow, ($OMC$PositiveMax(-pipe2.port_b.m_flow, 1e-07) * pipe2.port_b.h_outflow + $OMC$PositiveMax(-pipe4.port_a.m_flow, 1e-07) * pipe4.port_a.h_outflow) / ($OMC$PositiveMax(-pipe2.port_b.m_flow, 1e-07) + $OMC$PositiveMax(-pipe4.port_a.m_flow, 1e-07)), pipe3.mediums[5].h); -// pipe3.mXi_flows[1,1] = semiLinear(pipe3.port_a.m_flow, ($OMC$PositiveMax(-pipe2.port_a.m_flow, 1e-07) * pipe2.port_a.Xi_outflow[1] + $OMC$PositiveMax(-pipe1.port_b.m_flow, 1e-07) * pipe1.port_b.Xi_outflow[1]) / ($OMC$PositiveMax(-pipe2.port_a.m_flow, 1e-07) + $OMC$PositiveMax(-pipe1.port_b.m_flow, 1e-07)), pipe3.mediums[1].Xi[1]); -// pipe3.mXi_flows[6,1] = -semiLinear(pipe3.port_b.m_flow, ($OMC$PositiveMax(-pipe2.port_b.m_flow, 1e-07) * pipe2.port_b.Xi_outflow[1] + $OMC$PositiveMax(-pipe4.port_a.m_flow, 1e-07) * pipe4.port_a.Xi_outflow[1]) / ($OMC$PositiveMax(-pipe2.port_b.m_flow, 1e-07) + $OMC$PositiveMax(-pipe4.port_a.m_flow, 1e-07)), pipe3.mediums[5].Xi[1]); +// pipe3.H_flows[1] = semiLinear(pipe3.port_a.m_flow, ($OMC$PositiveMax(-pipe2.port_a.m_flow, 1e-7) * pipe2.port_a.h_outflow + $OMC$PositiveMax(-pipe1.port_b.m_flow, 1e-7) * pipe1.port_b.h_outflow) / ($OMC$PositiveMax(-pipe2.port_a.m_flow, 1e-7) + $OMC$PositiveMax(-pipe1.port_b.m_flow, 1e-7)), pipe3.mediums[1].h); +// pipe3.H_flows[6] = -semiLinear(pipe3.port_b.m_flow, ($OMC$PositiveMax(-pipe2.port_b.m_flow, 1e-7) * pipe2.port_b.h_outflow + $OMC$PositiveMax(-pipe4.port_a.m_flow, 1e-7) * pipe4.port_a.h_outflow) / ($OMC$PositiveMax(-pipe2.port_b.m_flow, 1e-7) + $OMC$PositiveMax(-pipe4.port_a.m_flow, 1e-7)), pipe3.mediums[5].h); +// pipe3.mXi_flows[1,1] = semiLinear(pipe3.port_a.m_flow, ($OMC$PositiveMax(-pipe2.port_a.m_flow, 1e-7) * pipe2.port_a.Xi_outflow[1] + $OMC$PositiveMax(-pipe1.port_b.m_flow, 1e-7) * pipe1.port_b.Xi_outflow[1]) / ($OMC$PositiveMax(-pipe2.port_a.m_flow, 1e-7) + $OMC$PositiveMax(-pipe1.port_b.m_flow, 1e-7)), pipe3.mediums[1].Xi[1]); +// pipe3.mXi_flows[6,1] = -semiLinear(pipe3.port_b.m_flow, ($OMC$PositiveMax(-pipe2.port_b.m_flow, 1e-7) * pipe2.port_b.Xi_outflow[1] + $OMC$PositiveMax(-pipe4.port_a.m_flow, 1e-7) * pipe4.port_a.Xi_outflow[1]) / ($OMC$PositiveMax(-pipe2.port_b.m_flow, 1e-7) + $OMC$PositiveMax(-pipe4.port_a.m_flow, 1e-7)), pipe3.mediums[5].Xi[1]); // pipe3.port_a.m_flow = pipe3.m_flows[1]; // pipe3.port_b.m_flow = -pipe3.m_flows[6]; // pipe3.port_a.h_outflow = pipe3.mediums[1].h; // pipe3.port_b.h_outflow = pipe3.mediums[5].h; // pipe3.port_a.Xi_outflow[1] = pipe3.mediums[1].Xi[1]; // pipe3.port_b.Xi_outflow[1] = pipe3.mediums[5].Xi[1]; -// pipe3.state_a = Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.Medium.setState_phX(pipe3.port_a.p, ($OMC$PositiveMax(-pipe2.port_a.m_flow, 1e-07) * pipe2.port_a.h_outflow + $OMC$PositiveMax(-pipe1.port_b.m_flow, 1e-07) * pipe1.port_b.h_outflow) / ($OMC$PositiveMax(-pipe2.port_a.m_flow, 1e-07) + $OMC$PositiveMax(-pipe1.port_b.m_flow, 1e-07)), {($OMC$PositiveMax(-pipe2.port_a.m_flow, 1e-07) * pipe2.port_a.Xi_outflow[1] + $OMC$PositiveMax(-pipe1.port_b.m_flow, 1e-07) * pipe1.port_b.Xi_outflow[1]) / ($OMC$PositiveMax(-pipe2.port_a.m_flow, 1e-07) + $OMC$PositiveMax(-pipe1.port_b.m_flow, 1e-07))}); -// pipe3.state_b = Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.Medium.setState_phX(pipe3.port_b.p, ($OMC$PositiveMax(-pipe2.port_b.m_flow, 1e-07) * pipe2.port_b.h_outflow + $OMC$PositiveMax(-pipe4.port_a.m_flow, 1e-07) * pipe4.port_a.h_outflow) / ($OMC$PositiveMax(-pipe2.port_b.m_flow, 1e-07) + $OMC$PositiveMax(-pipe4.port_a.m_flow, 1e-07)), {($OMC$PositiveMax(-pipe2.port_b.m_flow, 1e-07) * pipe2.port_b.Xi_outflow[1] + $OMC$PositiveMax(-pipe4.port_a.m_flow, 1e-07) * pipe4.port_a.Xi_outflow[1]) / ($OMC$PositiveMax(-pipe2.port_b.m_flow, 1e-07) + $OMC$PositiveMax(-pipe4.port_a.m_flow, 1e-07))}); +// pipe3.state_a = Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.Medium.setState_phX(pipe3.port_a.p, ($OMC$PositiveMax(-pipe2.port_a.m_flow, 1e-7) * pipe2.port_a.h_outflow + $OMC$PositiveMax(-pipe1.port_b.m_flow, 1e-7) * pipe1.port_b.h_outflow) / ($OMC$PositiveMax(-pipe2.port_a.m_flow, 1e-7) + $OMC$PositiveMax(-pipe1.port_b.m_flow, 1e-7)), {($OMC$PositiveMax(-pipe2.port_a.m_flow, 1e-7) * pipe2.port_a.Xi_outflow[1] + $OMC$PositiveMax(-pipe1.port_b.m_flow, 1e-7) * pipe1.port_b.Xi_outflow[1]) / ($OMC$PositiveMax(-pipe2.port_a.m_flow, 1e-7) + $OMC$PositiveMax(-pipe1.port_b.m_flow, 1e-7))}); +// pipe3.state_b = Modelica.Fluid.Examples.BranchingDynamicPipes.pipe3.Medium.setState_phX(pipe3.port_b.p, ($OMC$PositiveMax(-pipe2.port_b.m_flow, 1e-7) * pipe2.port_b.h_outflow + $OMC$PositiveMax(-pipe4.port_a.m_flow, 1e-7) * pipe4.port_a.h_outflow) / ($OMC$PositiveMax(-pipe2.port_b.m_flow, 1e-7) + $OMC$PositiveMax(-pipe4.port_a.m_flow, 1e-7)), {($OMC$PositiveMax(-pipe2.port_b.m_flow, 1e-7) * pipe2.port_b.Xi_outflow[1] + $OMC$PositiveMax(-pipe4.port_a.m_flow, 1e-7) * pipe4.port_a.Xi_outflow[1]) / ($OMC$PositiveMax(-pipe2.port_b.m_flow, 1e-7) + $OMC$PositiveMax(-pipe4.port_a.m_flow, 1e-7))}); // pipe3.statesFM[1] = pipe3.state_a; // pipe3.statesFM[2] = pipe3.mediums[1].state; // pipe3.statesFM[3] = pipe3.mediums[2].state; @@ -7733,9 +7733,9 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // pipe4.mediums[1].phi = pipe4.mediums[1].p / pipe4.mediums[1].n99 * pipe4.mediums[1].Xi[1] / (pipe4.mediums[1].Xi[1] + 0.6219647130774989 * pipe4.mediums[1].n96); // pipe4.mediums[1].Xi[1] = pipe4.mediums[1].X[1]; // pipe4.mediums[1].X[2] = 1.0 - pipe4.mediums[1].Xi[1]; -// assert(pipe4.mediums[1].X[1] >= -1e-05 and pipe4.mediums[1].X[1] <= 1.00001, \"Mass fraction X[\" + String(1, 0, true) + \"] = \" + String(pipe4.mediums[1].X[1], 6, 0, true) + \"of substance \" + \"water\" + \" +// assert(pipe4.mediums[1].X[1] >= -1e-5 and pipe4.mediums[1].X[1] <= 1.00001, \"Mass fraction X[\" + String(1, 0, true) + \"] = \" + String(pipe4.mediums[1].X[1], 6, 0, true) + \"of substance \" + \"water\" + \" // of medium \" + \"Moist air\" + \" is not in the range 0..1\"); -// assert(pipe4.mediums[1].X[2] >= -1e-05 and pipe4.mediums[1].X[2] <= 1.00001, \"Mass fraction X[\" + String(2, 0, true) + \"] = \" + String(pipe4.mediums[1].X[2], 6, 0, true) + \"of substance \" + \"air\" + \" +// assert(pipe4.mediums[1].X[2] >= -1e-5 and pipe4.mediums[1].X[2] <= 1.00001, \"Mass fraction X[\" + String(2, 0, true) + \"] = \" + String(pipe4.mediums[1].X[2], 6, 0, true) + \"of substance \" + \"air\" + \" // of medium \" + \"Moist air\" + \" is not in the range 0..1\"); // assert(pipe4.mediums[1].p >= 0.0, \"Pressure (= \" + String(pipe4.mediums[1].p, 6, 0, true) + \" Pa) of medium \\\"\" + \"Moist air\" + \"\\\" is negative // (Temperature = \" + String(pipe4.mediums[1].T, 6, 0, true) + \" K)\"); @@ -7762,9 +7762,9 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // pipe4.mediums[2].phi = pipe4.mediums[2].p / pipe4.mediums[2].n99 * pipe4.mediums[2].Xi[1] / (pipe4.mediums[2].Xi[1] + 0.6219647130774989 * pipe4.mediums[2].n96); // pipe4.mediums[2].Xi[1] = pipe4.mediums[2].X[1]; // pipe4.mediums[2].X[2] = 1.0 - pipe4.mediums[2].Xi[1]; -// assert(pipe4.mediums[2].X[1] >= -1e-05 and pipe4.mediums[2].X[1] <= 1.00001, \"Mass fraction X[\" + String(1, 0, true) + \"] = \" + String(pipe4.mediums[2].X[1], 6, 0, true) + \"of substance \" + \"water\" + \" +// assert(pipe4.mediums[2].X[1] >= -1e-5 and pipe4.mediums[2].X[1] <= 1.00001, \"Mass fraction X[\" + String(1, 0, true) + \"] = \" + String(pipe4.mediums[2].X[1], 6, 0, true) + \"of substance \" + \"water\" + \" // of medium \" + \"Moist air\" + \" is not in the range 0..1\"); -// assert(pipe4.mediums[2].X[2] >= -1e-05 and pipe4.mediums[2].X[2] <= 1.00001, \"Mass fraction X[\" + String(2, 0, true) + \"] = \" + String(pipe4.mediums[2].X[2], 6, 0, true) + \"of substance \" + \"air\" + \" +// assert(pipe4.mediums[2].X[2] >= -1e-5 and pipe4.mediums[2].X[2] <= 1.00001, \"Mass fraction X[\" + String(2, 0, true) + \"] = \" + String(pipe4.mediums[2].X[2], 6, 0, true) + \"of substance \" + \"air\" + \" // of medium \" + \"Moist air\" + \" is not in the range 0..1\"); // assert(pipe4.mediums[2].p >= 0.0, \"Pressure (= \" + String(pipe4.mediums[2].p, 6, 0, true) + \" Pa) of medium \\\"\" + \"Moist air\" + \"\\\" is negative // (Temperature = \" + String(pipe4.mediums[2].T, 6, 0, true) + \" K)\"); @@ -7791,9 +7791,9 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // pipe4.mediums[3].phi = pipe4.mediums[3].p / pipe4.mediums[3].n99 * pipe4.mediums[3].Xi[1] / (pipe4.mediums[3].Xi[1] + 0.6219647130774989 * pipe4.mediums[3].n96); // pipe4.mediums[3].Xi[1] = pipe4.mediums[3].X[1]; // pipe4.mediums[3].X[2] = 1.0 - pipe4.mediums[3].Xi[1]; -// assert(pipe4.mediums[3].X[1] >= -1e-05 and pipe4.mediums[3].X[1] <= 1.00001, \"Mass fraction X[\" + String(1, 0, true) + \"] = \" + String(pipe4.mediums[3].X[1], 6, 0, true) + \"of substance \" + \"water\" + \" +// assert(pipe4.mediums[3].X[1] >= -1e-5 and pipe4.mediums[3].X[1] <= 1.00001, \"Mass fraction X[\" + String(1, 0, true) + \"] = \" + String(pipe4.mediums[3].X[1], 6, 0, true) + \"of substance \" + \"water\" + \" // of medium \" + \"Moist air\" + \" is not in the range 0..1\"); -// assert(pipe4.mediums[3].X[2] >= -1e-05 and pipe4.mediums[3].X[2] <= 1.00001, \"Mass fraction X[\" + String(2, 0, true) + \"] = \" + String(pipe4.mediums[3].X[2], 6, 0, true) + \"of substance \" + \"air\" + \" +// assert(pipe4.mediums[3].X[2] >= -1e-5 and pipe4.mediums[3].X[2] <= 1.00001, \"Mass fraction X[\" + String(2, 0, true) + \"] = \" + String(pipe4.mediums[3].X[2], 6, 0, true) + \"of substance \" + \"air\" + \" // of medium \" + \"Moist air\" + \" is not in the range 0..1\"); // assert(pipe4.mediums[3].p >= 0.0, \"Pressure (= \" + String(pipe4.mediums[3].p, 6, 0, true) + \" Pa) of medium \\\"\" + \"Moist air\" + \"\\\" is negative // (Temperature = \" + String(pipe4.mediums[3].T, 6, 0, true) + \" K)\"); @@ -7820,9 +7820,9 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // pipe4.mediums[4].phi = pipe4.mediums[4].p / pipe4.mediums[4].n99 * pipe4.mediums[4].Xi[1] / (pipe4.mediums[4].Xi[1] + 0.6219647130774989 * pipe4.mediums[4].n96); // pipe4.mediums[4].Xi[1] = pipe4.mediums[4].X[1]; // pipe4.mediums[4].X[2] = 1.0 - pipe4.mediums[4].Xi[1]; -// assert(pipe4.mediums[4].X[1] >= -1e-05 and pipe4.mediums[4].X[1] <= 1.00001, \"Mass fraction X[\" + String(1, 0, true) + \"] = \" + String(pipe4.mediums[4].X[1], 6, 0, true) + \"of substance \" + \"water\" + \" +// assert(pipe4.mediums[4].X[1] >= -1e-5 and pipe4.mediums[4].X[1] <= 1.00001, \"Mass fraction X[\" + String(1, 0, true) + \"] = \" + String(pipe4.mediums[4].X[1], 6, 0, true) + \"of substance \" + \"water\" + \" // of medium \" + \"Moist air\" + \" is not in the range 0..1\"); -// assert(pipe4.mediums[4].X[2] >= -1e-05 and pipe4.mediums[4].X[2] <= 1.00001, \"Mass fraction X[\" + String(2, 0, true) + \"] = \" + String(pipe4.mediums[4].X[2], 6, 0, true) + \"of substance \" + \"air\" + \" +// assert(pipe4.mediums[4].X[2] >= -1e-5 and pipe4.mediums[4].X[2] <= 1.00001, \"Mass fraction X[\" + String(2, 0, true) + \"] = \" + String(pipe4.mediums[4].X[2], 6, 0, true) + \"of substance \" + \"air\" + \" // of medium \" + \"Moist air\" + \" is not in the range 0..1\"); // assert(pipe4.mediums[4].p >= 0.0, \"Pressure (= \" + String(pipe4.mediums[4].p, 6, 0, true) + \" Pa) of medium \\\"\" + \"Moist air\" + \"\\\" is negative // (Temperature = \" + String(pipe4.mediums[4].T, 6, 0, true) + \" K)\"); @@ -7849,9 +7849,9 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // pipe4.mediums[5].phi = pipe4.mediums[5].p / pipe4.mediums[5].n99 * pipe4.mediums[5].Xi[1] / (pipe4.mediums[5].Xi[1] + 0.6219647130774989 * pipe4.mediums[5].n96); // pipe4.mediums[5].Xi[1] = pipe4.mediums[5].X[1]; // pipe4.mediums[5].X[2] = 1.0 - pipe4.mediums[5].Xi[1]; -// assert(pipe4.mediums[5].X[1] >= -1e-05 and pipe4.mediums[5].X[1] <= 1.00001, \"Mass fraction X[\" + String(1, 0, true) + \"] = \" + String(pipe4.mediums[5].X[1], 6, 0, true) + \"of substance \" + \"water\" + \" +// assert(pipe4.mediums[5].X[1] >= -1e-5 and pipe4.mediums[5].X[1] <= 1.00001, \"Mass fraction X[\" + String(1, 0, true) + \"] = \" + String(pipe4.mediums[5].X[1], 6, 0, true) + \"of substance \" + \"water\" + \" // of medium \" + \"Moist air\" + \" is not in the range 0..1\"); -// assert(pipe4.mediums[5].X[2] >= -1e-05 and pipe4.mediums[5].X[2] <= 1.00001, \"Mass fraction X[\" + String(2, 0, true) + \"] = \" + String(pipe4.mediums[5].X[2], 6, 0, true) + \"of substance \" + \"air\" + \" +// assert(pipe4.mediums[5].X[2] >= -1e-5 and pipe4.mediums[5].X[2] <= 1.00001, \"Mass fraction X[\" + String(2, 0, true) + \"] = \" + String(pipe4.mediums[5].X[2], 6, 0, true) + \"of substance \" + \"air\" + \" // of medium \" + \"Moist air\" + \" is not in the range 0..1\"); // assert(pipe4.mediums[5].p >= 0.0, \"Pressure (= \" + String(pipe4.mediums[5].p, 6, 0, true) + \" Pa) of medium \\\"\" + \"Moist air\" + \"\\\" is negative // (Temperature = \" + String(pipe4.mediums[5].T, 6, 0, true) + \" K)\"); @@ -7982,9 +7982,9 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // pipe4.mXi_flows[4,1] = semiLinear(pipe4.m_flows[4], pipe4.mediums[3].Xi[1], pipe4.mediums[4].Xi[1]); // pipe4.H_flows[5] = semiLinear(pipe4.m_flows[5], pipe4.mediums[4].h, pipe4.mediums[5].h); // pipe4.mXi_flows[5,1] = semiLinear(pipe4.m_flows[5], pipe4.mediums[4].Xi[1], pipe4.mediums[5].Xi[1]); -// pipe4.H_flows[1] = semiLinear(pipe4.port_a.m_flow, ($OMC$PositiveMax(-pipe2.port_b.m_flow, 1e-07) * pipe2.port_b.h_outflow + $OMC$PositiveMax(-pipe3.port_b.m_flow, 1e-07) * pipe3.port_b.h_outflow) / ($OMC$PositiveMax(-pipe2.port_b.m_flow, 1e-07) + $OMC$PositiveMax(-pipe3.port_b.m_flow, 1e-07)), pipe4.mediums[1].h); +// pipe4.H_flows[1] = semiLinear(pipe4.port_a.m_flow, ($OMC$PositiveMax(-pipe2.port_b.m_flow, 1e-7) * pipe2.port_b.h_outflow + $OMC$PositiveMax(-pipe3.port_b.m_flow, 1e-7) * pipe3.port_b.h_outflow) / ($OMC$PositiveMax(-pipe2.port_b.m_flow, 1e-7) + $OMC$PositiveMax(-pipe3.port_b.m_flow, 1e-7)), pipe4.mediums[1].h); // pipe4.H_flows[6] = -semiLinear(pipe4.port_b.m_flow, boundary4.ports[1].h_outflow, pipe4.mediums[5].h); -// pipe4.mXi_flows[1,1] = semiLinear(pipe4.port_a.m_flow, ($OMC$PositiveMax(-pipe2.port_b.m_flow, 1e-07) * pipe2.port_b.Xi_outflow[1] + $OMC$PositiveMax(-pipe3.port_b.m_flow, 1e-07) * pipe3.port_b.Xi_outflow[1]) / ($OMC$PositiveMax(-pipe2.port_b.m_flow, 1e-07) + $OMC$PositiveMax(-pipe3.port_b.m_flow, 1e-07)), pipe4.mediums[1].Xi[1]); +// pipe4.mXi_flows[1,1] = semiLinear(pipe4.port_a.m_flow, ($OMC$PositiveMax(-pipe2.port_b.m_flow, 1e-7) * pipe2.port_b.Xi_outflow[1] + $OMC$PositiveMax(-pipe3.port_b.m_flow, 1e-7) * pipe3.port_b.Xi_outflow[1]) / ($OMC$PositiveMax(-pipe2.port_b.m_flow, 1e-7) + $OMC$PositiveMax(-pipe3.port_b.m_flow, 1e-7)), pipe4.mediums[1].Xi[1]); // pipe4.mXi_flows[6,1] = -semiLinear(pipe4.port_b.m_flow, boundary4.ports[1].Xi_outflow[1], pipe4.mediums[5].Xi[1]); // pipe4.port_a.m_flow = pipe4.m_flows[1]; // pipe4.port_b.m_flow = -pipe4.m_flows[6]; @@ -7992,7 +7992,7 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // pipe4.port_b.h_outflow = pipe4.mediums[5].h; // pipe4.port_a.Xi_outflow[1] = pipe4.mediums[1].Xi[1]; // pipe4.port_b.Xi_outflow[1] = pipe4.mediums[5].Xi[1]; -// pipe4.state_a = Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.Medium.setState_phX(pipe4.port_a.p, ($OMC$PositiveMax(-pipe2.port_b.m_flow, 1e-07) * pipe2.port_b.h_outflow + $OMC$PositiveMax(-pipe3.port_b.m_flow, 1e-07) * pipe3.port_b.h_outflow) / ($OMC$PositiveMax(-pipe2.port_b.m_flow, 1e-07) + $OMC$PositiveMax(-pipe3.port_b.m_flow, 1e-07)), {($OMC$PositiveMax(-pipe2.port_b.m_flow, 1e-07) * pipe2.port_b.Xi_outflow[1] + $OMC$PositiveMax(-pipe3.port_b.m_flow, 1e-07) * pipe3.port_b.Xi_outflow[1]) / ($OMC$PositiveMax(-pipe2.port_b.m_flow, 1e-07) + $OMC$PositiveMax(-pipe3.port_b.m_flow, 1e-07))}); +// pipe4.state_a = Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.Medium.setState_phX(pipe4.port_a.p, ($OMC$PositiveMax(-pipe2.port_b.m_flow, 1e-7) * pipe2.port_b.h_outflow + $OMC$PositiveMax(-pipe3.port_b.m_flow, 1e-7) * pipe3.port_b.h_outflow) / ($OMC$PositiveMax(-pipe2.port_b.m_flow, 1e-7) + $OMC$PositiveMax(-pipe3.port_b.m_flow, 1e-7)), {($OMC$PositiveMax(-pipe2.port_b.m_flow, 1e-7) * pipe2.port_b.Xi_outflow[1] + $OMC$PositiveMax(-pipe3.port_b.m_flow, 1e-7) * pipe3.port_b.Xi_outflow[1]) / ($OMC$PositiveMax(-pipe2.port_b.m_flow, 1e-7) + $OMC$PositiveMax(-pipe3.port_b.m_flow, 1e-7))}); // pipe4.state_b = Modelica.Fluid.Examples.BranchingDynamicPipes.pipe4.Medium.setState_phX(pipe4.port_b.p, boundary4.ports[1].h_outflow, {boundary4.ports[1].Xi_outflow[1]}); // pipe4.statesFM[1] = pipe4.state_a; // pipe4.statesFM[2] = pipe4.mediums[1].state; @@ -8067,9 +8067,9 @@ instantiateModel(Modelica.Fluid.Examples.BranchingDynamicPipes); getErrorString( // boundary4.medium.phi = boundary4.medium.p / boundary4.medium.n121 * boundary4.medium.Xi[1] / (boundary4.medium.Xi[1] + 0.6219647130774989 * boundary4.medium.n118); // boundary4.medium.Xi[1] = boundary4.medium.X[1]; // boundary4.medium.X[2] = 1.0 - boundary4.medium.Xi[1]; -// assert(boundary4.medium.X[1] >= -1e-05 and boundary4.medium.X[1] <= 1.00001, \"Mass fraction X[\" + String(1, 0, true) + \"] = \" + String(boundary4.medium.X[1], 6, 0, true) + \"of substance \" + \"water\" + \" +// assert(boundary4.medium.X[1] >= -1e-5 and boundary4.medium.X[1] <= 1.00001, \"Mass fraction X[\" + String(1, 0, true) + \"] = \" + String(boundary4.medium.X[1], 6, 0, true) + \"of substance \" + \"water\" + \" // of medium \" + \"Moist air\" + \" is not in the range 0..1\"); -// assert(boundary4.medium.X[2] >= -1e-05 and boundary4.medium.X[2] <= 1.00001, \"Mass fraction X[\" + String(2, 0, true) + \"] = \" + String(boundary4.medium.X[2], 6, 0, true) + \"of substance \" + \"air\" + \" +// assert(boundary4.medium.X[2] >= -1e-5 and boundary4.medium.X[2] <= 1.00001, \"Mass fraction X[\" + String(2, 0, true) + \"] = \" + String(boundary4.medium.X[2], 6, 0, true) + \"of substance \" + \"air\" + \" // of medium \" + \"Moist air\" + \" is not in the range 0..1\"); // assert(boundary4.medium.p >= 0.0, \"Pressure (= \" + String(boundary4.medium.p, 6, 0, true) + \" Pa) of medium \\\"\" + \"Moist air\" + \"\\\" is negative // (Temperature = \" + String(boundary4.medium.T, 6, 0, true) + \" K)\"); diff --git a/testsuite/openmodelica/interactive-API/Obfuscation3.mos b/testsuite/openmodelica/interactive-API/Obfuscation3.mos new file mode 100644 index 00000000000..c3991be5281 --- /dev/null +++ b/testsuite/openmodelica/interactive-API/Obfuscation3.mos @@ -0,0 +1,63 @@ +// name: Obfuscation3 +// keywords: +// status: correct +// cflags: -d=newInst +// + +setCommandLineOptions("--obfuscate=protected"); +loadString(" + package P1 + annotation(Protection(access = Access.hide)); + + model A + Real x \"x\"; + end A; + end P1; + + package P2 + model A + Real x \"x2\"; + end A; + + model B + Real y \"y\"; + protected + Real z \"z\"; + annotation(Protection(access = Access.icon)); + end B; + + model C + extends B; + Real w \"w\"; + protected + Real u \"u\"; + annotation(Protection(access = Access.packageText)); + end C; + end P2; + + model M + P1.A a1; + P2.A a2; + P2.B b1; + P2.C c1; + end M; +"); + +instantiateModel(M); getErrorString(); + +// Result: +// true +// true +// "class M +// Real a1.x; +// Real a2.x \"x2\"; +// Real b1.y \"y\"; +// protected Real b1.n1; +// Real c1.y \"y\"; +// protected Real c1.n2; +// Real c1.w \"w\"; +// protected Real c1.n3 \"u\"; +// end M; +// " +// "" +// endResult