modelFlowSourceSP
Single phase flow source. Mainly necessary to generate pressure, enthalpy, and composition values at a connection
Information
It is simplified model of the Flow source model, to be used with single phase media.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| FreeFluids.Types.SourceOptionS | sourceOption | FreeFluids.Types.SourceOptionS.useP_T | how to generate port pressure and enthalpy |
| Boolean | isElevSource | true | use specified gravitational height |
| Boolean | isGsource | false | use specified mass flow |
| Local values | |||
| Modelica.Units.SI.Height | Elevation | 0.0 | |
| Modelica.Units.SI.MassFlowRate | G | 0.0 | |
| Modelica.Units.SI.AbsolutePressure | P | if sourceOption == FreeFluids.Types.SourceOptionS.useD_T then Medium.pressure(Medium.setState_dTX(D, T, X)) else Medium.p_default | |
| Modelica.Units.SI.Temperature | T | ||
| Modelica.Units.SI.SpecificEnthalpy | H | if sourceOption == FreeFluids.Types.SourceOptionS.useP_T then Medium.specificEnthalpy(Medium.setState_pTX(P, T, X)) elseif sourceOption == FreeFluids.Types.SourceOptionS.useD_T then Medium.specificEnthalpy(Medium.setState_dTX(D, T, X)) else Medium.h_default | |
| Modelica.Units.SI.Density | D | 100 | |
| Medium.MassFraction[Medium.nX] | X | Medium.X_default | |
| External values | |||
| Boolean | externalG | false | |
| Boolean | externalT | false | |
| Boolean | externalP | false | |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| FreeFluids.Interfaces.FluidPortB | PortB | ||
| Modelica.Blocks.Interfaces.RealInput | Gext | ||
| Modelica.Blocks.Interfaces.RealInput | Text | ||
| Modelica.Blocks.Interfaces.RealInput | Pext |
Contents
| Name | Description |
|---|---|