modelExternalGas
Gas substance with defined partial pressure
Extends from Internal.PartialSubstance (Chemical substance base).
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Units.SI.Pressure | PartialPressure | Fixed partial pressure if usePartialPressureInput=false | |
| Advanced | |||
| Chemical.Utilities.Units.Inertance | L (from PartialBoundaryBase) | dropOfCommons.L | |
| Modelica.Units.SI.MolarFlowRate | n_flow_reg (from PartialBoundaryBase) | dropOfCommons.n_flow_reg | Regularization threshold of mass flow rate |
| Substance | |||
| Chemical.Interfaces.Definition | substanceDefinition (from PartialBoundary) | dropOfCommons.DefaultSubstance | Definition of the substance |
| Modelica.Units.SI.Mass | m_start (from PartialSubstance) | Start value for mass of the substance | |
| Conditional inputs | |||
| Boolean | useRear (from PartialBoundary) | false | Use rearwards conector? |
| Boolean | useFore (from PartialBoundary) | true | Use forwards connector? |
| Boolean | usePartialPressureInput | false | =true, if fixed partial pressure is from input instead of parameter |
| Chemical solution | |||
| Boolean | useSolution (from PartialSubstance) | false | Use solution port? |
| Boolean | useRearSolution (from PartialSubstance) | useRear and (not useSolution) | Use solution from rear? |
| Chemical.Interfaces.SolutionState | solutionParam (from PartialSubstance) | Chemical.Interfaces.SolutionState(phase = Chemical.Interfaces.Phase.Incompressible) | Constant chemical solution state if not from rear or input |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Chemical.Interfaces.Rear | rear (from PartialBoundary) | ||
| Chemical.Interfaces.Fore | fore (from PartialBoundary) | ||
| Chemical.Interfaces.SolutionPort | solution (from PartialSubstance) | To connect substance with solution, where is pressented | |
| Modelica.Blocks.Interfaces.RealInput | partialPressure | p | Partial pressure of gas = total pressure * gas fraction |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Fluid.System | system (from PartialBoundaryBase) | System wide properties | |
| Modelica.Units.SI.AmountOfSubstance | n (from PartialSubstance) | Amount of base molecules inside all clusters in compartment | |
| Chemical.Interfaces.Properties.SubstanceProperties | substance (from PartialSubstance) | ||
| Modelica.Units.SI.Concentration | c (from PartialSubstance) | Concentration | |
| Modelica.Units.SI.MassConcentration | M (from PartialSubstance) | Mass concentration | |
| Modelica.Units.SI.Molality | b (from PartialSubstance) | Molality | |
| Modelica.Units.SI.MoleFraction | x (from PartialSubstance) | Mole fraction | |
| Modelica.Units.SI.MassFraction | X (from PartialSubstance) | Mass fraction | |
| Modelica.Units.SI.Pressure | p | Current partial pressure |
Revisions
2009-2015
Marek Matejak, Charles University, Prague, Czech Republic