modelCmpCharTable02

Extends from PropulsionSystem.BaseClasses.BasicElements.CompressorBase01, PropulsionSystem.BaseClasses.BasicElements.CompressorBaseDefDesPt01.

Information

Document html page

example/demo models

classes which this component call (those in MSL are not listed)

-> none

classes from which this component extend

Parameters

TypeNameDefaultDescription
Assumptions
BooleanallowAbnormalOperation (from CompressorBase01)false= true to allow compressor to operate as 'turbine' where PR<=1, false to restrict 1<PR
BooleanallowFlowReversal (from CompressorBase01)false= true to allow flow reversal, false restricts to design direction (port_a -> port_b)
debug setting
BooleanprintCmd (from CompressorBase01)false
Initialization › fluid_1
Modelica.SIunits.MassFlowRatem_flow1_init (from CompressorBase01)1.0
Modelica.SIunits.Pressurep1_init (from CompressorBase01)101.3*1000
Modelica.SIunits.TemperatureT1_init (from CompressorBase01)288.15
Modelica.SIunits.SpecificEnthalpyh1_init (from CompressorBase01)T1_init*1.004*1000*288.15
Initialization › fluid_2
Modelica.SIunits.MassFlowRatem_flow2_init (from CompressorBase01)-1.0*m_flow1_init
Modelica.SIunits.Pressurep2_init (from CompressorBase01)20*101.3*1000
Modelica.SIunits.TemperatureT2_init (from CompressorBase01)500
Modelica.SIunits.SpecificEnthalpyh2_init (from CompressorBase01)T2_init*1.004*1000
Initialization › flange_1
Modelica.SIunits.Torquetau1_init (from CompressorBase01)0.1
Modelica.SIunits.Anglephi1_init (from CompressorBase01)phi_init
Initialization › flange_2
Modelica.SIunits.Torquetau2_init (from CompressorBase01)pwr_init/(Nmech_init*2.0*Modelica.Constants.pi/60.0)
Modelica.SIunits.Anglephi2_init (from CompressorBase01)phi_init
Initialization › others
RealPR_init (from CompressorBase01)p2_init/p1_init
Realeff_init (from CompressorBase01)0.8
Modelica.SIunits.Conversions.NonSIunits.AngularVelocity_rpmNmech_init (from CompressorBase01)3000.0
RealNcqNcDes_1_init (from CompressorBase01)1.0
RealNqNdes_init (from CompressorBase01)NcqNcDes_1_init
Modelica.SIunits.MassFlowRateWc_1_init (from CompressorBase01)m_flow1_init
Modelica.SIunits.Conversions.NonSIunits.AngularVelocity_rpmNc_1_init (from CompressorBase01)Nmech_init
Modelica.SIunits.SpecificEnthalpydht_init (from CompressorBase01)490000.0
Modelica.SIunits.SpecificEnthalpydht_is_init (from CompressorBase01)390000.0
Modelica.SIunits.Powerpwr_init (from CompressorBase01)5.0*10.0^5
Modelica.SIunits.Torquetrq_init (from CompressorBase01)pwr_init/(Nmech_init*2.0*Modelica.Constants.pi/60.0)
Modelica.SIunits.Anglephi_init (from CompressorBase01)1.0
Modelica.SIunits.SpecificEntropys_fluid_1_init (from CompressorBase01)6800.0
Modelica.SIunits.SpecificEntropys_fluid_2_init (from CompressorBase01)7000.0
switch
Booleanswitch_calcOnlyDesfalseuse this component for only design pt. calc.
PropulsionSystem.Types.switches.switchHowToDetVarswitchDetermine_PRPropulsionSystem.Types.switches.switchHowToDetVar.paramswitch how to determine PR
Booleanuse_u_efffalseget eff from the real input connector
switch about table file reading
Booleanuse_tableFile_Wctrue
Booleanuse_tableFile_PRtrue
Booleanuse_tableFile_efftrue
PropulsionSystem.Types.switches.switchTableDataResourceswitchTableDataLocationPropulsionSystem.Types.switches.switchTableDataResource.inLibraryDirectorywhere table data file is located, valid if use_tableFile_..==true
switch about interpolation
Modelica.Blocks.Types.SmoothnessswitchSmoothness_WcModelica.Blocks.Types.Smoothness.ContinuousDerivative
Modelica.Blocks.Types.SmoothnessswitchSmoothness_PRModelica.Blocks.Types.Smoothness.ContinuousDerivative
Modelica.Blocks.Types.SmoothnessswitchSmoothness_effModelica.Blocks.Types.Smoothness.ContinuousDerivative
Component characteristics
RealPRdes_paramInput10pressure ratio, valid only when switchDetermine_PR==param, value fixed through simulation
RealeffDes_paramInput0.80adiabatic efficiency, valid only when use_u_eff==false, value fixed through simulation
Component sizing
RealNcTblDes_paramInput1.0design point definition on characteristics table
RealRlineTblDes_paramInput0.774design point definition on table
table file read setting
StringpathName_tableFileInSimExeDir"./tableData/table_Compressor_WcPReff_NcRline00.txt"relative path under sim. exe. file directory
StringpathName_tableFileInLibPackage"modelica://PropulsionSystem/tableData/table_Compressor_WcPReff_NcRline00.txt"path in library sub-directory
StringtableName_Wc"Wc_NcRline"
StringtableName_PR"PR_NcRline"
StringtableName_eff"eff_NcRline"

Connectors

TypeNameDefaultDescription
Modelica.Fluid.Interfaces.FluidPort_aport_1 (from CompressorBase01)
Modelica.Fluid.Interfaces.FluidPort_bport_2 (from CompressorBase01)
Modelica.Mechanics.Rotational.Interfaces.Flange_aflange_1 (from CompressorBase01)
Modelica.Mechanics.Rotational.Interfaces.Flange_bflange_2 (from CompressorBase01)
PropulsionSystem.Types.ElementBuselementBus1 (from CompressorBase01)
Modelica.Blocks.Interfaces.RealInputu_PRPR input, valid only when switchDetermine_PR==viaRealInput
Modelica.Blocks.Interfaces.RealInputu_effeff input, valid only when use_u_eff==true

Components

TypeNameDefaultDescription
Modelica.SIunits.Powerpwr (from CompressorBase01)power via shaft, positive if fluid generates power
Modelica.SIunits.Torquetrq (from CompressorBase01)trq via shaft
Modelica.SIunits.Powerpwr_inv (from CompressorBase01)power via shaft
Modelica.SIunits.Torquetrq_inv (from CompressorBase01)trq via shaft
Modelica.SIunits.AngularVelocityomega (from CompressorBase01)mechanical rotation speed, rad/sec
Modelica.SIunits.Anglephi (from CompressorBase01)mechanical rotation displacement, rad
Modelica.SIunits.Conversions.NonSIunits.AngularVelocity_rpmNmech (from CompressorBase01)mechanical rotation speed, rpm
Modelica.SIunits.MassFlowRateWc_1 (from CompressorBase01)corrected mass flow rate
Modelica.SIunits.Conversions.NonSIunits.AngularVelocity_rpmNc_1 (from CompressorBase01)corrected rotation speed, rpm
RealPR (from CompressorBase01)pressure ratio
Realeff (from CompressorBase01)adiabatic efficiency
Modelica.SIunits.SpecificEnthalpydht_is (from CompressorBase01)specific enthalpy change in isentropic compression
Modelica.SIunits.SpecificEnthalpydht (from CompressorBase01)specific enthalpy change in non-isentropic compression
Modelica.SIunits.SpecificEnthalpyh_2is (from CompressorBase01)
Modelica.SIunits.MassFlowRatem_flow_max (from CompressorBase01)
Modelica.SIunits.MassFlowRatem_flow_min (from CompressorBase01)
Modelica.SIunits.SpecificEntropys_fluid_1 (from CompressorBase01)specific entropy, fluid_1
Modelica.SIunits.SpecificEntropys_fluid_2 (from CompressorBase01)specific entropy, fluid_2
RealNcqNcDes_1 (from CompressorBase01)ratio of corrected rotational speed with respect to design pt. speed
RealNqNdes (from CompressorBase01)ratio of mech. rotational speed with respect to design pt. speed
IntegerflagEffVal (from CompressorBase01)0:0<eff<1, 1:eff<=0, 2:1<=eff
PropulsionSystem.EngineSimEnvironmentenvironment (from CompressorBase01)System wide properties
Medium.BasePropertiesfluid_1 (from CompressorBase01)flow station of inlet
Medium.BasePropertiesfluid_2 (from CompressorBase01)flow station of outlet
RealRlineTbl
RealNcTbl
Reals_NcTbl
Reals_WcTbl
Reals_PRtbl
Reals_effTbl
Modelica.SIunits.MassFlowRateWcTblScld
RealPRtblScld
RealeffTblScld
RealauxVar
PropulsionSystem.Subelements.CompressorTable_WcPReff_NcRline00CmpTbl_WcPReff_NcRline_des
PropulsionSystem.Subelements.CompressorTable_WcPReff_NcRline00CmpTbl_WcPReff_NcRline_op