Skip to content

Commit

Permalink
Change unit of angular velocity from 1/s to rad/s to omit ambiguity
Browse files Browse the repository at this point in the history
  • Loading branch information
tobolar committed Aug 20, 2021
1 parent 4577c01 commit 5b711bd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
10 changes: 6 additions & 4 deletions Modelica/Mechanics/MultiBody/Sensors/AbsoluteSensor.mo
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,16 @@ model AbsoluteSensor
origin={20,-110},
extent={{10,-10},{-10,10}},
rotation=90)));
Blocks.Interfaces.RealOutput w[3](each final quantity="AngularVelocity",
each final unit="1/s") if get_w "Absolute angular velocity vector"
Blocks.Interfaces.RealOutput w[3](
each final quantity="AngularVelocity",
each final unit="rad/s") if get_w "Absolute angular velocity vector"
annotation (Placement(transformation(
origin={60,-110},
extent={{10,-10},{-10,10}},
rotation=90)));
Blocks.Interfaces.RealOutput z[3](each final quantity="AngularAcceleration",
each final unit="1/s2") if get_z "Absolute angular acceleration vector"
Blocks.Interfaces.RealOutput z[3](
each final quantity="AngularAcceleration",
each final unit="rad/s2") if get_z "Absolute angular acceleration vector"
annotation (Placement(transformation(
origin={100,-110},
extent={{10,-10},{-10,10}},
Expand Down
8 changes: 4 additions & 4 deletions Modelica/Mechanics/MultiBody/Sensors/RelativeSensor.mo
Original file line number Diff line number Diff line change
Expand Up @@ -85,22 +85,22 @@ model RelativeSensor
extent={{10,-10},{-10,10}},
rotation=90)));
Blocks.Interfaces.RealOutput w_rel[3](each final quantity="AngularVelocity",
each final unit="1/s") if get_w_rel "Relative angular velocity vector"
each final unit="rad/s") if get_w_rel "Relative angular velocity vector"
annotation (Placement(transformation(
origin={60,-110},
extent={{10,-10},{-10,10}},
rotation=90)));
Blocks.Interfaces.RealOutput z_rel[3](each final quantity="AngularAcceleration",
each final unit="1/s2") if get_z_rel
each final unit="rad/s2") if get_z_rel
"Relative angular acceleration vector"
annotation (Placement(transformation(
origin={100,-110},
extent={{10,-10},{-10,10}},
rotation=90)));

protected
RelativePosition relativePosition(resolveInFrame=resolveInFrame) if
get_r_rel or get_v_rel or get_a_rel
RelativePosition relativePosition(resolveInFrame=resolveInFrame)
if get_r_rel or get_v_rel or get_a_rel
annotation (Placement(transformation(extent={{-80,-10},{-60,10}})));

protected
Expand Down

0 comments on commit 5b711bd

Please sign in to comment.