modelPartialSource_Xi_C
Partial component source with parameter definitions for Xi and C
Extends from Buildings.Fluid.Sources.BaseClasses.PartialSource (Partial component source with one fluid connector).
Information
Partial model that defines outflowing properties
ports.Xi_outflow and ports.C_outflow
using an optional input for both.
Otherwise the parameter value is used.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | nPorts (from PartialSource) | 0 | Number of ports |
| Advanced | |||
| Boolean | verifyInputs (from PartialSource) | false | Set to true to stop the simulation with an error if the medium temperature is outside its allowable range |
| Boolean | use_X_in | false | Get the composition (all fractions) from the input connector |
| Conditional inputs | |||
| Boolean | use_Xi_in | false | Get the composition (independent fractions) from the input connector |
| Boolean | use_C_in | false | Get the trace substances from the input connector |
| Fixed inputs | |||
| Medium.MassFraction[Medium.nX] | X | Medium.X_default | Fixed value of composition |
| Medium.ExtraProperty[Medium.nC] | C | fill(0, Medium.nC) | Fixed values of trace substances |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Fluid.Interfaces.FluidPorts_b[nPorts] | ports (from PartialSource) | Fluid ports | |
| Modelica.Blocks.Interfaces.RealInput[Medium.nX] | X_in | Prescribed boundary composition | |
| Modelica.Blocks.Interfaces.RealInput[Medium.nXi] | Xi_in | Prescribed boundary composition | |
| Modelica.Blocks.Interfaces.RealInput[Medium.nC] | C_in | Prescribed boundary trace substances |
Revisions
-
March 11, 2024, by Michael Wetter:
Corrected use ofHideResult.
This is for #1850. -
September 19, 2019, by Michael Wetter:
Refactored handling of mass fractions which was needed to handle media such as Modelica.Media.IdealGases.MixtureGases.FlueGasSixComponents and Modelica.Media.IdealGases.MixtureGases.SimpleNaturalGas.
This is for IBPSA, #1205. -
February 13, 2018, by Michael Wetter:
Corrected error in quantity assignment forXi_in. This is for #882. -
February 2nd, 2018 by Filip Jorissen
Initial version for refactoring inputs of sources. See #882.