modelPartialTwoPortTransport

Base class for components with two fluid ports

Information

This base class describes the geometry and most important variables for the fluid flow without storing substance.
In the derived class, the following quantities/equations have to be set:

  • pressure loss dp (e.g. momentum balance)
  • mass flow rate (e.g. mass balance)
  • outflow enthalpies (e.g. energy balance)

Author: Haiko Steuer SCD
Checked by:
Protection class: public

License, Copyright and Disclaimer


Licensed by Siemens AG under the Siemens Modelica License 2

Copyright 2007-2012 Siemens AG. All rights reserved.

This Modelica package is free software and the use is completely at your own risk; it can be redistributed and/or modified under the terms of the Siemens Modelica License 2. For license conditions (including the disclaimer of warranty) see Siemens Modelica License 2 .

Parameters

TypeNameDefaultDescription
Initialization
Modelica.SIunits.MassFlowRatem_flow_start1Guess value for mass flow rate
Medium.AbsolutePressurepIn_startMedium.reference_pStart value of inlet pressure
Medium.AbsolutePressurepOut_startMedium.reference_pStart value of outlet pressure
BooleanuseTemperatureStartValuefalseUse T_start if true, otherwise h_start
Medium.SpecificEnthalpyhIn_startif useTemperatureStartValue then Medium.specificEnthalpy_pTX(pIn_start, TIn_start, XIn_start) else Medium.h_defaultStart value of specific enthalpy
Medium.SpecificEnthalpyhOut_startif useTemperatureStartValue then Medium.specificEnthalpy_pTX(pOut_start, TOut_start, XOut_start) else Medium.h_defaultStart value of specific outlet enthalpy
Medium.TemperatureTIn_startif useTemperatureStartValue then Medium.reference_T else Medium.temperature_phX(pIn_start, hIn_start, XIn_start)Start value of temperature
Medium.TemperatureTOut_startif 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_startMedium.reference_XStart value of mass fractions m_i/m
Medium.MassFraction[Medium.nX]XOut_startMedium.reference_XStart value of mass fractions m_i/m

Connectors

TypeNameDefaultDescription
Modelica.Fluid.Interfaces.FluidPort_aportInInlet port
Modelica.Fluid.Interfaces.FluidPort_bportOutOutlet port

Components

TypeNameDefaultDescription
Medium.SpecificEnthalpyhInactual state at portIn
Medium.SpecificEnthalpyhOutactual state at portOut
SI.Pressuredp

Contents

NameDescription
Medium

Revisions

  • Feb 2009, added by Haiko Steuer