## FCSys.Conditions.ByConnector.Amagat

Conditions for an Amagat connector

### Information

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

### Package Content

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

## FCSys.Conditions.ByConnector.Amagat.Pressure

Specify pressure (measure volume)

### Information

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

### Parameters

Type | Name | Default | Description
--- | --- | --- | ---
Specification
Boolean | internal | true | Use internal specification
Measurement
RealOutput | y | amagat.V | Measurement expression

### Connectors

Type | Name | Description
--- | --- | ---
input RealInput | u | Value of specified condition
Amagat | amagat | Connector for additivity of volume
Measurement
output RealOutput | y | Measurement 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

Provide volume (measure pressure)

### Information

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

### Parameters

Type | Name | Default | Description
--- | --- | --- | ---
Specification
Boolean | internal | true | Use internal specification
Measurement
RealOutput | y | amagat.p | Measurement expression

### Connectors

Type | Name | Description
--- | --- | ---
input RealInput | u | Value of specified condition
Amagat | amagat | Connector for additivity of volume
Measurement
output RealOutput | y | Measurement 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

Model to establish a fixed total volume

### 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

Type | Name | Default | Description
--- | --- | --- | ---
Volume | V |  | Volume [L3]

### Connectors

Type | Name | Description
--- | --- | ---
Amagat | amagat | Connector 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

Base model for a pressure/volume

### Information

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

### Parameters

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

### Connectors

Type | Name | Description
--- | --- | ---
input RealInput | u | Value of specified condition
Amagat | amagat | Connector for additivity of volume
Measurement
output RealOutput | y | Measurement 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;