
modelCompressor_GasPortInOut
Base class for components with two fluid portsTable look-up in two dimensions (matrix/file)
Extends from Icons.Icons.Compressors.
Parameters
| Type | Name | Default | Description |
| SI.Pressure | paNom | 4.69 | Nominal inlet pressure for which table is valid |
| Integer | nS | Medium.nSubstance | number of species |
| Real | alpha | -20. | |
| Boolean | use_alpha_in | false | |
| table data definition |
| Boolean | tableOnFile | false | true, if table is defined on file or in function usertab |
| Real[:,:] | table | fill(0.0, 2, 2) | table matrix (grid u1 = first column, grid u2 = first row; e.g. table=[0,0;0,1]) |
| String | tableName | "NoName" | table name on file or in function usertab (see docu) |
| String | fileName | "NoName" | file where matrix is stored |
| table data interpretation |
| Modelica.Blocks.Types.Smoothness | smoothness | Modelica.Blocks.Types.Smoothness.LinearSegments | smoothness of table interpolation |
| Initialization |
| SI.Pressure | p_start_in | Medium.reference_p | Start value of inlet pressure |
| SI.Pressure | p_start_out | Medium.reference_p | Start value of outlet pressure |
| Medium.Temperature | T_start_in | Medium.reference_T | Start value of temperature |
| Medium.Temperature | T_start_out | Medium.reference_T | Start value of outlet temperature |
| Modelica.Units.SI.MassFlowRate | m_start | 15 | Guess value for mass flow rate |
| Medium.MassFraction[Medium.nX] | X_start_in | Medium.reference_X | Start value of mass fractions m_i/m |
| Medium.MassFraction[Medium.nX] | X_start_out | Medium.reference_X | Start value of mass fractions m_i/m |
Components
| Type | Name | Default | Description |
| Integer | tableID | | |
| Medium.SpecificEnthalpy | deltah | | |
| Medium.ThermodynamicState | stateIn | | state for medium inflowing through GasPortIn |
| Medium.ThermodynamicState | stateOut | | state for medium inflowing through GasPortOut |
| Medium.AbsolutePressure | deltaPressure | | |
| Real | sum_x | sum(gasPortOut.x_outflow) | |
Contents
| Name | Description |
Medium | |
| tableInitprotected | Initialize 2-dim. table defined by matrix (for details see: Modelica/C-Sources/ModelicaTables.h) |
| tableIpoprotected | Interpolate 2-dim. table defined by matrix (for details see: Modelica/C-Sources/ModelicaTables.h) |