modelTubeOwnMedia
SimpleMedia-Tube (incl wall) with detailed energy , integrated momentum and mass balance
Extends from SiemensPower.Utilities.BaseClasses.PartialTwoPortTransport (Base class for components with two fluid ports).
Information
This tube model comes with a detailed energy balance, but integrated momentum and mass balance.
See pdf documentation for details.
The tube is heated. The water/steam media is simplified: You can chose between:
- inth20
- Ideal steam
| Author: | Haiko Steuer | SCD |
| Checked by: | ||
| Protection class: | ||
| Used Dymola version: |
This model is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY. For details see disclaimer
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Real | g | Modelica.Constants.g_n | |
| Real | pi | Modelica.Constants.pi | |
| Boolean | initializeInletPressure | true | mp or pp boundary conditions |
| Boolean | considerDynamicMomentum | true | der(m_dot) accounted for, be careful! |
| Boolean | considerMassAccelaration | true | Inertial phenomena d/dz(m_dot^2/d) accounted for |
| Boolean | useINTH2O | false | water/steam table: true = useINTH2O, false = TTSE |
| Boolean | considerDynamicPressure | false | With der(p)/d in enthalpy balance |
| Boolean | useDelayedPressure | false | Pressure delay |
| Modelica.SIunits.Time | timeDelayOfPressure | 0.1 | Artificial delay time for delay of pressure value |
| Real | hydP | 0.6 | Part of portIn for p |
| Real | hydM | 0.4 | Part of portOut for m_flow |
| initOpt | initOptWall | initOpt.steadyState | |
| SI.Length | di | geoPipe.d_out - 2*geoPipe.s | |
| SI.Area | A | 0.25*pi*di^2 | |
| SI.Length | dz | geoPipe.L/numberOfNodes | |
| SI.Volume | V | A*geoPipe.L | |
| SI.Volume | V_total | geoPipe.Nt*V | |
| Initialization | |||
| Modelica.SIunits.MassFlowRate | m_flow_start (from PartialTwoPortTransport) | 1 | Guess value for mass flow rate |
| Medium.AbsolutePressure | pIn_start (from PartialTwoPortTransport) | Medium.reference_p | Start value of inlet pressure |
| Medium.AbsolutePressure | pOut_start (from PartialTwoPortTransport) | Medium.reference_p | Start value of outlet pressure |
| Boolean | useTemperatureStartValue (from PartialTwoPortTransport) | false | Use T_start if true, otherwise h_start |
| Medium.SpecificEnthalpy | hIn_start (from PartialTwoPortTransport) | if useTemperatureStartValue then Medium.specificEnthalpy_pTX(pIn_start, TIn_start, XIn_start) else Medium.h_default | Start value of specific enthalpy |
| Medium.SpecificEnthalpy | hOut_start (from PartialTwoPortTransport) | if useTemperatureStartValue then Medium.specificEnthalpy_pTX(pOut_start, TOut_start, XOut_start) else Medium.h_default | Start value of specific outlet enthalpy |
| Medium.Temperature | TIn_start (from PartialTwoPortTransport) | if useTemperatureStartValue then Medium.reference_T else Medium.temperature_phX(pIn_start, hIn_start, XIn_start) | Start value of temperature |
| Medium.Temperature | TOut_start (from PartialTwoPortTransport) | if useTemperatureStartValue then Medium.reference_T else Medium.temperature_phX(pOut_start, hOut_start, XOut_start) | Start value of outlet temperature |
| Medium.MassFraction[Medium.nX] | XIn_start (from PartialTwoPortTransport) | Medium.reference_X | Start value of mass fractions m_i/m |
| Medium.MassFraction[Medium.nX] | XOut_start (from PartialTwoPortTransport) | Medium.reference_X | Start value of mass fractions m_i/m |
| Boolean | initializeSteadyStateEnthalpies | true | lets initialize der(h)=0 |
| Boolean | initializeSteadyStateInletEnthalpy | true | steady state initial condition for input enthalpy |
| Geometry and pressure drop parameters | |||
| Integer | numberOfNodes | 2 | Number of nodes for thermal variables |
| SiemensPower.Utilities.Structures.PipeGeo | geoPipe | Geometry of tube | |
| SI.MassFlowRate | m_flowLaminar | 0.001 | (small) mass flow rate at wich laminar equals turbulent pressure drop |
| Inner heat transfer | |||
| SI.CoefficientOfHeatTransfer | alphaOffset | 10e3 | alpha offset (in case of verysimple=true) |
| Real | alphaFactor | 0.0 | Factor for state dependent alpha term (in case of verysimple=true) |
| Boolean | delayInnerHeatTransfer | false | With delay of qMetalFluid |
| Modelica.SIunits.Time | timeDelayOfInnerHeatTransfer | 1 | artificial delay time for qMetalFluid |
| Initialization › Heat transfer | |||
| Boolean | useHeatInput | true | Initialisation of qMetalFluidDelayed=qMetalFluid |
| Boolean | initializeWithZeroInnerHeatFlow | false | Initialisation of qMetalFluidDelayed=0 |
| Wall | |||
| Integer | numberOfWallLayers | 3 | Number of wall layers |
| SiemensPower.Utilities.Structures.PropertiesMetal | metal | Wall metal properties | |
| Initialization › Wall | |||
| SI.Temperature[numberOfNodes] | T_wall_start | T_start | start values for wall temperatures |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Fluid.Interfaces.FluidPort_a | portIn (from PartialTwoPortTransport) | Inlet port | |
| Modelica.Fluid.Interfaces.FluidPort_b | portOut (from PartialTwoPortTransport) | Outlet port | |
| Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_a[numberOfNodes] | gasSide | Outer wall heat port |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Medium.SpecificEnthalpy | hIn (from PartialTwoPortTransport) | actual state at portIn | |
| Medium.SpecificEnthalpy | hOut (from PartialTwoPortTransport) | actual state at portOut | |
| SI.Pressure | dp (from PartialTwoPortTransport) | ||
| SI.Temperature[numberOfNodes] | T | ||
| SI.Density[numberOfNodes] | d | ||
| SI.Density | dAverage | ||
| SI.SpecificVolume[numberOfNodes] | vol | ||
| SI.SpecificVolume | volAverage | ||
| SI.SpecificEnthalpy[numberOfNodes] | h | ||
| SI.AbsolutePressure | dpfric | ||
| SI.AbsolutePressure | dphyd | ||
| SI.HeatFlux[numberOfNodes] | qMetalFluidDelayed | ||
| SI.Length | perimeter | ||
| SI.MassFlowRate | m_flow | ||
| SI.AbsolutePressure | p | pressure | |
| SI.AbsolutePressure | pUndelayed | ||
| Real | zeta | friction coefficient | |
| SI.CoefficientOfHeatTransfer | alpha | ||
| SiemensPower.Components.SolidComponents.Wall | wall | Metal wall of the tube | |
| SiemensPower.Interfaces.portHeat | heatport | Inner wall (masked) heat port |
Revisions
- January 2007, added by Haiko Steuer