FCSys.Conditions.ByConnector.Translational.Component

Conditions for a component of translational momentum

Information

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

Package Content

NameDescription
FCSys.Conditions.ByConnector.Translational.Component.velocity velocity Velocity
FCSys.Conditions.ByConnector.Translational.Component.force force Force
FCSys.Conditions.ByConnector.Translational.Component.Partial Partial Template of a function to select a translational quantity

FCSys.Conditions.ByConnector.Translational.Component.velocity FCSys.Conditions.ByConnector.Translational.Component.velocity

Velocity

Information

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

Inputs

TypeNameDefaultDescription
Velocityphi[:] Velocity [L/T]
ForcemPhidot[:] Force [L.M/T2]
Integeri Index of the translational axis

Outputs

TypeNameDescription
RealxValue of condition

Modelica definition

function velocity "Velocity "
  extends Partial;

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

FCSys.Conditions.ByConnector.Translational.Component.force FCSys.Conditions.ByConnector.Translational.Component.force

Force

Information

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

Inputs

TypeNameDefaultDescription
Velocityphi[:] Velocity [L/T]
ForcemPhidot[:] Force [L.M/T2]
Integeri Index of the translational axis

Outputs

TypeNameDescription
RealxValue of condition

Modelica definition

function force "Force"
  extends Partial;

algorithm 
  x := mPhidot[i];

end force;

FCSys.Conditions.ByConnector.Translational.Component.Partial FCSys.Conditions.ByConnector.Translational.Component.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

TypeNameDefaultDescription
Velocityphi[:] Velocity [L/T]
ForcemPhidot[:] Force [L.M/T2]
Integeri Index of the translational axis

Outputs

TypeNameDescription
RealxValue of condition

Modelica definition

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

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

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

  output Real x "Value of condition";

end Partial;