## FCSys.Conditions.ByConnector.Boundary.Single.Material

Material conditions

### Information

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

### Package Content

Name | Description
--- | ---
pressure | Pressure
density | Density
current | Current
volumeRate | Volumetric flow rate
standardVolumeRate | Standard volumetric flow rate
Partial | Template of a function to select a material quantity
potential | Gibbs potential

## FCSys.Conditions.ByConnector.Boundary.Single.Material.pressure

Pressure

### Information

Extends from Partial (Template of a function to select a material quantity).

### Inputs

Type | Name | Default | Description
--- | --- | --- | ---
PressureAbsolute | p |  | Pressure [M/(L.T2)]
Current | Ndot |  | Current [N/T]
Velocity | phi[Orient] |  | Velocity [L/T]
Force | mPhidot[Orient] |  | Shear force [L.M/T2]
TemperatureAbsolute | T |  | Temperature [L2.M/(N.T2)]
Power | Qdot |  | Rate of thermal conduction [L2.M/T3]

### Outputs

Type | Name | Description
--- | --- | ---
Real | x | Value of condition

### Modelica definition

    function pressure "Pressure"
      extends Partial;

    algorithm
      x := p;
    end pressure;

## FCSys.Conditions.ByConnector.Boundary.Single.Material.density

Density

### Information

Extends from Partial (Template of a function to select a material quantity).

### Inputs

Type | Name | Default | Description
--- | --- | --- | ---
PressureAbsolute | p |  | Pressure [M/(L.T2)]
Current | Ndot |  | Current [N/T]
Velocity | phi[Orient] |  | Velocity [L/T]
Force | mPhidot[Orient] |  | Shear force [L.M/T2]
TemperatureAbsolute | T |  | Temperature [L2.M/(N.T2)]
Power | Qdot |  | Rate of thermal conduction [L2.M/T3]
Material properties
replaceable package Data | Characteristics.BaseClasses…. | Characteristic data

### Outputs

Type | Name | Description
--- | --- | ---
Real | x | Value of condition
Material properties
replaceable package Data | Characteristic data

### Modelica definition

    function density "Density"
      extends Partial;

      replaceable package Data = Characteristics.BaseClasses.CharacteristicEOS
        constrainedby Characteristics.BaseClasses.CharacteristicEOS
        "Characteristic data";

    algorithm
      x := 1/Data.v_Tp(T, p);
    end density;

## FCSys.Conditions.ByConnector.Boundary.Single.Material.current

Current

### Information

Extends from Partial (Template of a function to select a material quantity).

### Inputs

Type | Name | Default | Description
--- | --- | --- | ---
PressureAbsolute | p |  | Pressure [M/(L.T2)]
Current | Ndot |  | Current [N/T]
Velocity | phi[Orient] |  | Velocity [L/T]
Force | mPhidot[Orient] |  | Shear force [L.M/T2]
TemperatureAbsolute | T |  | Temperature [L2.M/(N.T2)]
Power | Qdot |  | Rate of thermal conduction [L2.M/T3]

### Outputs

Type | Name | Description
--- | --- | ---
Real | x | Value of condition

### Modelica definition

    function current "Current"
      extends Partial;

    algorithm
      x := Ndot;

    end current;

## FCSys.Conditions.ByConnector.Boundary.Single.Material.volumeRate

Volumetric flow rate

### Information

Extends from Partial (Template of a function to select a material quantity).

### Inputs

Type | Name | Default | Description
--- | --- | --- | ---
PressureAbsolute | p |  | Pressure [M/(L.T2)]
Current | Ndot |  | Current [N/T]
Velocity | phi[Orient] |  | Velocity [L/T]
Force | mPhidot[Orient] |  | Shear force [L.M/T2]
TemperatureAbsolute | T |  | Temperature [L2.M/(N.T2)]
Power | Qdot |  | Rate of thermal conduction [L2.M/T3]
Material properties
replaceable package Data | Characteristics.BaseClasses…. | Characteristic data

### Outputs

Type | Name | Description
--- | --- | ---
Real | x | Value of condition
Material properties
replaceable package Data | Characteristic data

### Modelica definition

    function volumeRate "Volumetric flow rate"
      extends Partial;

      replaceable package Data = Characteristics.BaseClasses.CharacteristicEOS
        constrainedby Characteristics.BaseClasses.CharacteristicEOS
        "Characteristic data";

    algorithm
      x := Data.v_Tp(T, p)*Ndot;
    end volumeRate;

## FCSys.Conditions.ByConnector.Boundary.Single.Material.standardVolumeRate

Standard volumetric flow rate

### Information

Extends from Partial (Template of a function to select a material quantity).

### Inputs

Type | Name | Default | Description
--- | --- | --- | ---
PressureAbsolute | p |  | Pressure [M/(L.T2)]
Current | Ndot |  | Current [N/T]
Velocity | phi[Orient] |  | Velocity [L/T]
Force | mPhidot[Orient] |  | Shear force [L.M/T2]
TemperatureAbsolute | T |  | Temperature [L2.M/(N.T2)]
Power | Qdot |  | Rate of thermal conduction [L2.M/T3]
Material properties
replaceable package Data | Characteristics.BaseClasses…. | Characteristic data

### Outputs

Type | Name | Description
--- | --- | ---
Real | x | Value of condition
Material properties
replaceable package Data | Characteristic data

### Modelica definition

    function standardVolumeRate "Standard volumetric flow rate"
      extends Partial;

      replaceable package Data = Characteristics.BaseClasses.CharacteristicEOS
        constrainedby Characteristics.BaseClasses.CharacteristicEOS
        "Characteristic data";
      parameter Q.TemperatureAbsolute To=298.15*U.K "Standard temperature";
      parameter Q.PressureAbsolute pp=U.bar "Standard pressure";

    algorithm
      x := Data.v_Tp(To, p0)*Ndot;
    end standardVolumeRate;

## FCSys.Conditions.ByConnector.Boundary.Single.Material.Partial

Template of a function to select a material quantity

### Information

This function takes as inputs all the efforts and flows of the associated connector. It should be extended to add an algorithm that maps these inputs to a single value.

Extends from Modelica.Icons.Function (Icon for functions).

### Inputs

Type | Name | Default | Description
--- | --- | --- | ---
PressureAbsolute | p |  | Pressure [M/(L.T2)]
Current | Ndot |  | Current [N/T]
Velocity | phi[Orient] |  | Velocity [L/T]
Force | mPhidot[Orient] |  | Shear force [L.M/T2]
TemperatureAbsolute | T |  | Temperature [L2.M/(N.T2)]
Power | Qdot |  | Rate of thermal conduction [L2.M/T3]

### Outputs

Type | Name | Description
--- | --- | ---
Real | x | Value of condition

### Modelica definition

    partial function Partial
      "Template of a function to select a material quantity"
      extends Modelica.Icons.Function;

      // Material
      input Q.PressureAbsolute p "Pressure";
      input Q.Current Ndot "Current";

      // Translational
      input Q.Velocity phi[Orient] "Velocity";
      input Q.Force mPhidot[Orient] "Shear force";

      // Thermal
      input Q.TemperatureAbsolute T "Temperature";
      input Q.Power Qdot "Rate of thermal conduction";

      output Real x "Value of condition";

    end Partial;

## FCSys.Conditions.ByConnector.Boundary.Single.Material.potential

Gibbs potential

### Information

Extends from Partial (Template of a function to select a material quantity).

### Inputs

Type | Name | Default | Description
--- | --- | --- | ---
PressureAbsolute | p |  | Pressure [M/(L.T2)]
Current | Ndot |  | Current [N/T]
Velocity | phi[Orient] |  | Velocity [L/T]
Force | mPhidot[Orient] |  | Shear force [L.M/T2]
TemperatureAbsolute | T |  | Temperature [L2.M/(N.T2)]
Power | Qdot |  | Rate of thermal conduction [L2.M/T3]
Material properties
replaceable package Data | Characteristics.BaseClasses…. | Characteristic data

### Outputs

Type | Name | Description
--- | --- | ---
Real | x | Value of condition
Material properties
replaceable package Data | Characteristic data

### Modelica definition

    function potential "Gibbs potential"
      extends Partial;

      replaceable package Data = Characteristics.BaseClasses.Characteristic
        constrainedby Characteristics.BaseClasses.Characteristic
        "Characteristic data";

    algorithm
      x := Data.g(T, p);
    end potential;