modelCompressor_GasPortInOut

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

Extends from Icons.Icons.Compressors.

Parameters

TypeNameDefaultDescription
SI.PressurepaNom4.69Nominal inlet pressure for which table is valid
IntegernSMedium.nSubstancenumber of species
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
Initialization
SI.Pressurep_start_inMedium.reference_pStart value of inlet pressure
SI.Pressurep_start_outMedium.reference_pStart value of outlet pressure
Medium.TemperatureT_start_inMedium.reference_TStart value of temperature
Medium.TemperatureT_start_outMedium.reference_TStart value of outlet temperature
Modelica.Units.SI.MassFlowRatem_start15Guess value for mass flow rate
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
Interfaces.GasPortIngasPortIn
Interfaces.GasPortOutgasPortOut

Components

TypeNameDefaultDescription
IntegertableID
Medium.SpecificEnthalpydeltah
Medium.ThermodynamicStatestateInstate for medium inflowing through GasPortIn
Medium.ThermodynamicStatestateOutstate for medium inflowing through GasPortOut
Medium.AbsolutePressuredeltaPressure
Realsum_xsum(gasPortOut.x_outflow)

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)