Files
AIDASimulation/SimulationModels/OpenModelica 1.25/AIDAModelica/WSSModel.mo

16 lines
1.2 KiB
Plaintext

within AIDAModelica;
model WSSModel "Steady-steta speed model"
Modelica.Blocks.Interfaces.RealInput CmdKIn "K-th command input" annotation(
Placement(transformation(origin = {-120, 0}, extent = {{-20, -20}, {20, 20}}), iconTransformation(extent = {{-95, -20}, {-55, 20}})));
Modelica.Blocks.Interfaces.RealOutput WSSOut(quantity = "Mechanics.Rotation.RotVelocity", displayUnit = "rpm") "Steady-state velocity output" annotation(
Placement(transformation(origin = {110, 0}, extent = {{-10, -10}, {10, 10}}), iconTransformation(extent = {{65, -10}, {85, 10}})));
parameter Real cR(quantity = "Mechanics.Rotation.RotVelocity", displayUnit = "rpm") = 626.51735092990043 "parameter cR";
parameter Real wb(quantity = "Mechanics.Rotation.RotVelocity", displayUnit = "rpm") = 222.30956814352572 "parameter wb";
equation
// enter your equations here
WSSOut = cR * CmdKIn + wb;
annotation(
Icon(coordinateSystem(extent = {{-75, -100}, {75, 100}}, initialScale = 0.1), graphics = {Rectangle(fillColor = {255, 255, 255}, fillPattern = FillPattern.Solid, extent = {{-73.3, 50}, {73.3, -50}}), Text(origin = {-6, 2}, extent = {{-16, 6}, {30, -10}}, textString = "%name")}));
end WSSModel;