modelCompressor

Base class for components with two fluid portsTable look-up in two dimensions (matrix/file)

Extends from Icons.Color.Compressors.

Parameters

TypeNameDefaultDescription
Medium.AbsolutePressurepaNom4.69Nominal inlet pressure for which table is valid
RealPIModelica.Constants.pi
Realalpha-20.
Booleanuse_alpha_infalse
table data definition
BooleantableOnFilefalsetrue, if table is defined on file or in function usertab
Real[:,:]tablefill(0.0, 2, 2)table matrix (grid u1 = first column, grid u2 = first row; e.g. table=[0,0;0,1])
StringtableName"NoName"table name on file or in function usertab (see docu)
StringfileName"NoName"file where matrix is stored
table data interpretation
Modelica.Blocks.Types.SmoothnesssmoothnessModelica.Blocks.Types.Smoothness.LinearSegmentssmoothness of table interpolation
Advanced
BooleanpreferredStatestrueTry to select preferred medium states
Initialization
Modelica.Units.SI.MassFlowRatem_start15Guess value for mass flow rate
Medium.AbsolutePressurep_start_inMedium.reference_pStart value of inlet pressure
Medium.AbsolutePressurep_start_outMedium.reference_pStart value of outlet pressure
Booleanuse_T_startfalseUse T_start if true, otherwise h_start
Medium.SpecificEnthalpyh_start_inif use_T_start then Medium.specificEnthalpy_pTX(p_start_in, T_start_in, X_start_in) else Medium.h_defaultStart value of specific enthalpy
Medium.SpecificEnthalpyh_start_outif use_T_start then Medium.specificEnthalpy_pTX(p_start_out, T_start_out, X_start_out) else Medium.h_defaultStart value of specific outlet enthalpy
Medium.TemperatureT_start_inif use_T_start then Medium.reference_T else Medium.temperature_phX(p_start_in, h_start_in, X_start_in)Start value of temperature
Medium.TemperatureT_start_outif use_T_start then Medium.reference_T else Medium.temperature_phX(p_start_out, h_start_out, X_start_out)Start value of outlet temperature
Medium.MassFraction[Medium.nX]X_start_inMedium.reference_XStart value of mass fractions m_i/m
Medium.MassFraction[Medium.nX]X_start_outMedium.reference_XStart value of mass fractions m_i/m

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealInputalpha_in
Modelica.Fluid.Interfaces.FluidPort_aport_aInlet port
Modelica.Fluid.Interfaces.FluidPort_bport_bOutlet port

Components

TypeNameDefaultDescription
IntegertableID
Medium.ThermodynamicStatemedium_aactual state at port_a
Medium.ThermodynamicStatemedium_bactual state at port_b
Medium.SpecificEnthalpydeltah
Medium.ThermodynamicStatestate_from_astate for medium inflowing through port_a
Medium.ThermodynamicStatestate_from_bstate for medium inflowing through port_b

Contents

NameDescription
Medium
tableInitprotectedInitialize 2-dim. table defined by matrix (for details see: Modelica/C-Sources/ModelicaTables.h)
tableIpoprotectedInterpolate 2-dim. table defined by matrix (for details see: Modelica/C-Sources/ModelicaTables.h)