model GeneralPositionToForceAdaptor "Signal adaptor for a Translational flange with force as output and position, speed and acceleration as input (especially useful for FMUs)"
extends Modelica.Blocks.Interfaces.Adaptors.PotentialToFlowAdaptor(final Name_p = "s", final Name_pder = "v", final Name_pder2 = "a", final Name_f = "f", final Name_fder = "der(f)", final Name_fder2 = "der2(f)", final use_fder = false, final use_fder2 = false, final p(unit = "m"), final pder(unit = "m/s"), final pder2(unit = "m/s2"), final f(unit = "N"), final fder(unit = "N/s"), final fder2(unit = "N/s2"));
Modelica.Mechanics.Translational.Interfaces.Flange_b flange annotation (Placement(
transformation(extent = {
{10, -10},
{30, 10}}),
iconTransformation(extent = {
{10, -10},
{30, 10}})));
equation
u = flange.s "input = potential = position";
y = flange.f "output = flow = force";
annotation (
defaultComponentName = "positionToForceAdaptor",
Documentation(info = "<html>\n<p>\nAdaptor between a flange connector and a signal representation of the flange.\nThis component is used to provide a pure signal interface around a Translational model\nand export this model in form of an input/output block,\nespecially as FMU (<a href=\"https://www.fmi-standard.org\">Functional Mock-up Unit</a>).\nExamples of the usage of this adaptor are provided in\n<a href=\"modelica://Modelica.Mechanics.Translational.Examples.GenerationOfFMUs\">Translational.Examples.GenerationOfFMUs</a>.\nThis adaptor has position, velocity and acceleration as input signals and\nforce as output signal.\n</p>\n<p>\nNote, the input signals must be consistent to each other\n(v=der(s), a=der(v)).\n</p>\n</html>"),
Icon(graphics = {
Rectangle(
extent = {
{-20, 100},
{20, -100}},
lineColor = {0, 127, 0},
radius = 10,
lineThickness = 0.5)}));
end GeneralPositionToForceAdaptor;