## FCSys.Conditions.ByConnector.Reaction.Translational

Translational conditions

### Information

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

### Package Content

Name | Description
--- | ---
velocity | Velocity of the product
force | Force from the stream
Partial | Template of a function to select a translational quantity

## FCSys.Conditions.ByConnector.Reaction.Translational.velocity

Velocity of the product

### Information

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

### Inputs

Type | Name | Default | Description
--- | --- | --- | ---
Current | Ndot |  | Rate of reaction [N/T]
Potential | g |  | Chemical potential [L2.M/(N.T2)]
Velocity | phi[:] |  | Velocity [L/T]
Force | mPhidot[:] |  | Force [L.M/T2]
PotentialAbsolute | sT |  | Product of specific entropy and temperature [L2.M/(N.T2)]
Power | Qdot |  | Rate of thermal advection [L2.M/T3]
Integer | i |  | Index of the translational axis

### Outputs

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

### Modelica definition

    function velocity "Velocity of the product"
      extends Partial;

    algorithm
      x := phi[i];
    end velocity;

## FCSys.Conditions.ByConnector.Reaction.Translational.force

Force from the stream

### Information

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

### Inputs

Type | Name | Default | Description
--- | --- | --- | ---
Current | Ndot |  | Rate of reaction [N/T]
Potential | g |  | Chemical potential [L2.M/(N.T2)]
Velocity | phi[:] |  | Velocity [L/T]
Force | mPhidot[:] |  | Force [L.M/T2]
PotentialAbsolute | sT |  | Product of specific entropy and temperature [L2.M/(N.T2)]
Power | Qdot |  | Rate of thermal advection [L2.M/T3]
Integer | i |  | Index of the translational axis

### Outputs

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

### Modelica definition

    function force "Force from the stream"
      extends Partial;

    algorithm
      x := mPhidot[i];
    end force;

## FCSys.Conditions.ByConnector.Reaction.Translational.Partial

Template of a function to select a translational 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
--- | --- | --- | ---
Current | Ndot |  | Rate of reaction [N/T]
Potential | g |  | Chemical potential [L2.M/(N.T2)]
Velocity | phi[:] |  | Velocity [L/T]
Force | mPhidot[:] |  | Force [L.M/T2]
PotentialAbsolute | sT |  | Product of specific entropy and temperature [L2.M/(N.T2)]
Power | Qdot |  | Rate of thermal advection [L2.M/T3]
Integer | i |  | Index of the translational axis

### Outputs

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

### Modelica definition

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

      // Material diffusion
      input Q.Current Ndot "Rate of reaction";
      input Q.Potential g "Chemical potential";

      // Translational advection
      input Q.Velocity phi[:] "Velocity";
      input Q.Force mPhidot[:] "Force";

      // Thermal advection
      input Q.PotentialAbsolute sT "Product of specific entropy and temperature";
      input Q.Power Qdot "Rate of thermal advection";

      input Integer i(min=1,max=3) "Index of the translational axis";

      output Real x "Value of condition";

    end Partial;