packageFluidPh

This package contains components that use a generic fluid with p,h as states, possibly undergoing phase transition.

Extends from Modelica.Icons.Package (Icon for standard packages).

Information

This package contains models of physical processes and components using water or steam as working fluid.

All models use the StandardWater medium model by default, which is in turn set to Modelica.Media.FluidPh.StandardWater at the library level. It is of course possible to redeclare the medium model to any model extending Modelica.Media.Interfaces.PartialMedium (or PartialTwoPhaseMedium for 2-phase models). This can be done by directly setting Medium in the parameter dialog, or through a local package definition, as shown e.g. in Test.TestMixerSlowFast. The latter solution allows to easily replace the medium model for an entire set of components.

All models with dynamic equations provide initialisation support. Set the initOpt parameter to the appropriate value:

  • Choices.Init.Options.noInit: no initialisation
  • Choices.Init.Options.steadyState: full steady-state initialisation
  • Choices.Init.Options.steadyStateNoP: steady-state initialisation (except pressure)
  • Choices.Init.Options.steadyStateNoT: steady-state initialisation (except temperature)
The latter options can be useful when two or more components are connected directly so that they will have the same pressure or temperature, to avoid over-specified systems of initial equations.

Contents

NameDescription
FlangeFlange connector for p-h fluid flows
FlangeAA-type flange connector for p-h fluid flows
FlangeBB-type flange connector for p-h fluid flows
StandardWater
SourcePressurePressure source for p-h fluid flows
SinkPressurePressure sink for p-h fluid flows
SourceMassFlowFlowrate source for p-h fluid flows
SinkMassFlowFlowrate sink for p-h fluid flows
ThroughMassFlowPrescribes the flow rate across the component
PressDropLinLinear pressure drop for p-h fluid flows
PressDropPressure drop for p-h fluid flows
HeaderHeader with metal walls for p-h fluid flows
MixerMixer with metal walls for p-h fluid flows
TankOpen tank with free surface
Flow1DFV1-dimensional fluid flow model for p-h fluid (finite volumes)
Flow1DFV2wSame as Flow1DFV with two walls and heat transfer models
Flow1DFV2ph1-dimensional fluid flow model for p-h fluid (finite volumes, 2-phase)
Flow1DFV2ph2wSame as Flow1DFV with two walls and heat transfer models
Flow1DFEM1-dimensional fluid flow model for p-h fluid (finite elements)
Flow1DFEM2wSame as Flow1DFEM with two walls and heat transfer models
Flow1DFEMnm1-dimensional fluid flow model for p-h fluid (finite elements)
Flow1DFEM2ph1-dimensional fluid flow model for p-h fluid (finite elements)
Flow1DFEM2ph2wSame as Flow1DFEM2ph with two walls and heat transfer models
FlowJoinJoins two p-h fluid flows
FlowSplitSplits a flow in two
SensTTemperature sensor for water-steam
SensT1Temperature sensor for p-h fluid flows, single port
SensWMass Flowrate sensor for p-h fluid
SensPPressure sensor for p-h fluid flows
AccumulatorWater-Gas Accumulator
DrumDrum for circulation boilers
DrumEquilibrium
ValveLinValve for p-h fluid flows with linear pressure drop
ValveLiqValve for liquid water flow
ValveVapValve for steam flow
ValveLiqChokedValve for liquid water flow, allows choked flow conditions
PumpCentrifugal pump with ideally controlled speed
PumpNPSH
PumpMechCentrifugal pump with mechanical connector for the shaft
SprayCondenserModel of a spray condenser assuming themodynamic equilibrium between the phases
BarometricCondenserModel of a barometric condenser including the barometric leg
CoolingTowerCooling tower with variable speed fan
ExpansionTankIdealIdeal expansion tank with prescribed pressure
f_chenChen's correlation for two-phase flow in a tube
f_colebrookFanning friction factor for p-h fluid flows
f_colebrook_2phFanning friction factor for a two phase p-h fluid flow
f_dittus_boelterDittus-Boelter correlation for one-phase flow in a tube
SteamTurbineStodolaSteam turbine: Stodola's ellipse law and constant isentropic efficiency
SteamTurbineUnitSimplified HP+LP turbine unit for steam flows
UtilityUtility models
BaseClassesContains partial models