FCSys.Conditions.ByConnector.Amagat

Conditions for an Amagat connector

Information

Extends from Modelica.Icons.Package (Icon for standard packages).

Package Content

NameDescription
FCSys.Conditions.ByConnector.Amagat.Pressure Pressure Specify pressure (measure volume)
FCSys.Conditions.ByConnector.Amagat.Volume Volume Provide volume (measure pressure)
FCSys.Conditions.ByConnector.Amagat.VolumeFixed VolumeFixed Model to establish a fixed total volume
FCSys.Conditions.ByConnector.Amagat.Partial Partial Base model for a pressure/volume

FCSys.Conditions.ByConnector.Amagat.Pressure FCSys.Conditions.ByConnector.Amagat.Pressure

Specify pressure (measure volume) FCSys.Conditions.ByConnector.Amagat.Pressure

Information

Extends from FCSys.Conditions.ByConnector.Amagat.Partial (Base model for a pressure/volume).

Parameters

TypeNameDefaultDescription
Specification
BooleaninternaltrueUse internal specification
Measurement
RealOutputyamagat.VMeasurement expression

Connectors

TypeNameDescription
input RealInputuValue of specified condition
AmagatamagatConnector for additivity of volume
Measurement
output RealOutputyMeasurement expression

Modelica definition

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;

FCSys.Conditions.ByConnector.Amagat.Volume FCSys.Conditions.ByConnector.Amagat.Volume

Provide volume (measure pressure) FCSys.Conditions.ByConnector.Amagat.Volume

Information

Extends from Partial (Base model for a pressure/volume).

Parameters

TypeNameDefaultDescription
Specification
BooleaninternaltrueUse internal specification
Measurement
RealOutputyamagat.pMeasurement expression

Connectors

TypeNameDescription
input RealInputuValue of specified condition
AmagatamagatConnector for additivity of volume
Measurement
output RealOutputyMeasurement expression

Modelica definition

model Volume "Provide volume (measure pressure)"
  extends Partial(final y=amagat.p, set(y=U.cc));

equation 
  amagat.V = u_final;

end Volume;

FCSys.Conditions.ByConnector.Amagat.VolumeFixed FCSys.Conditions.ByConnector.Amagat.VolumeFixed

Model to establish a fixed total volume FCSys.Conditions.ByConnector.Amagat.VolumeFixed

Information

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.

Parameters

TypeNameDefaultDescription
VolumeV Volume [L3]

Connectors

TypeNameDescription
AmagatamagatConnector for additivity of volume

Modelica definition

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;

FCSys.Conditions.ByConnector.Amagat.Partial FCSys.Conditions.ByConnector.Amagat.Partial

Base model for a pressure/volume FCSys.Conditions.ByConnector.Amagat.Partial

Information

Extends from FCSys.Icons.Conditions.SingleShort (Short icon for a single-connector boundary condition).

Parameters

TypeNameDefaultDescription
Specification
BooleaninternaltrueUse internal specification
RealExpressionsetredeclare Modelica.Blocks.So…Source of internal specification
Measurement
RealOutputy Measurement expression

Connectors

TypeNameDescription
input RealInputuValue of specified condition
AmagatamagatConnector for additivity of volume
Measurement
output RealOutputyMeasurement expression

Modelica definition

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;