Name | Description |
---|---|
Pressure | Specify pressure (measure volume) |
Volume | Provide volume (measure pressure) |
VolumeFixed | Model to establish a fixed total volume |
Partial | Base model for a pressure/volume |
Type | Name | Default | Description |
---|---|---|---|
Specification | |||
Boolean | internal | true | Use internal specification |
Measurement | |||
RealOutput | y | amagat.V | Measurement expression |
Type | Name | Description |
---|---|---|
input RealInput | u | Value of specified condition |
Amagat | amagat | Connector for additivity of volume |
Measurement | ||
output RealOutput | y | Measurement expression |
model Pressure "Specify pressure (measure volume)" extends FCSys.Conditions.ByConnector.Amagat.Partial(final y=amagat.V, set(y=U.atm)); equation amagat.p = u_final; end Pressure;
Type | Name | Default | Description |
---|---|---|---|
Specification | |||
Boolean | internal | true | Use internal specification |
Measurement | |||
RealOutput | y | amagat.p | Measurement expression |
Type | Name | Description |
---|---|---|
input RealInput | u | Value of specified condition |
Amagat | amagat | Connector for additivity of volume |
Measurement | ||
output RealOutput | y | Measurement expression |
model Volume "Provide volume (measure pressure)" extends Partial(final y=amagat.p, set(y=U.cc)); equation amagat.V = u_final; end Volume;
This model uses an Amagat connector that imposes additivity of volume. In order to use additivity of pressure, use the AmagatDalton adapter.
See also the documentation in the Connectors package.
Extends from FCSys.Icons.Names.Top3.
Type | Name | Default | Description |
---|---|---|---|
Volume | V | Volume [L3] |
Type | Name | Description |
---|---|---|
Amagat | amagat | Connector for additivity of volume |
model VolumeFixed "Model to establish a fixed total volume" extends FCSys.Icons.Names.Top3; parameter Q.Volume V "Volume"; Connectors.Amagat amagat "Connector for additivity of volume"; equation amagat.V = V; end VolumeFixed;
Type | Name | Default | Description |
---|---|---|---|
Specification | |||
Boolean | internal | true | Use internal specification |
RealExpression | set | redeclare Modelica.Blocks.So… | Source of internal specification |
Measurement | |||
RealOutput | y | Measurement expression |
Type | Name | Description |
---|---|---|
input RealInput | u | Value of specified condition |
Amagat | amagat | Connector for additivity of volume |
Measurement | ||
output RealOutput | y | Measurement expression |
partial model Partial "Base model for a pressure/volume" extends FCSys.Icons.Conditions.SingleShort; parameter Boolean internal=true "Use internal specification"; replaceable Modelica.Blocks.Sources.RealExpression set if internal constrainedby Modelica.Blocks.Interfaces.SO "Source of internal specification"; Connectors.RealInput u if not internal "Value of specified condition"; Connectors.RealOutput y "Measurement expression"; Connectors.Amagat amagat "Connector for additivity of volume"; protected Connectors.RealOutputInternal u_final "Final value of specified condition"; equation connect(u, u_final); connect(set.y, u_final); end Partial;