From 10cee5378abf0c190f49be3ea77174f94a90b007 Mon Sep 17 00:00:00 2001 From: tobolar Date: Mon, 19 Jun 2023 11:56:38 +0200 Subject: [PATCH 1/4] Fix redundant equations when resolveInFrame=frame_resolve --- PlanarMechanics/Sources/QuadraticSpeedDependentForce.mo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PlanarMechanics/Sources/QuadraticSpeedDependentForce.mo b/PlanarMechanics/Sources/QuadraticSpeedDependentForce.mo index 21decdb9..a8a712cd 100644 --- a/PlanarMechanics/Sources/QuadraticSpeedDependentForce.mo +++ b/PlanarMechanics/Sources/QuadraticSpeedDependentForce.mo @@ -49,7 +49,7 @@ public "Coordinate system fixed to the component with one cut-force and cut-torque" annotation (Placement(transformation(extent={{84,-16},{116,16}}))); - Interfaces.Frame_resolve frame_resolve(fx = 0, fy = 0, t = 0) + Interfaces.Frame_resolve frame_resolve if resolveInFrameB == Modelica.Mechanics.MultiBody.Types.ResolveInFrameB.frame_resolve "Coordinate system in which vector is optionally resolved, if useExtraFrame is true" annotation ( From 59664c516242d5c5efb7c447cbcf574a748ef809 Mon Sep 17 00:00:00 2001 From: tobolar Date: Mon, 19 Jun 2023 11:57:38 +0200 Subject: [PATCH 2/4] Improve documentation --- .../Sources/QuadraticSpeedDependentForce.mo | 27 ++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/PlanarMechanics/Sources/QuadraticSpeedDependentForce.mo b/PlanarMechanics/Sources/QuadraticSpeedDependentForce.mo index a8a712cd..b936a3ba 100644 --- a/PlanarMechanics/Sources/QuadraticSpeedDependentForce.mo +++ b/PlanarMechanics/Sources/QuadraticSpeedDependentForce.mo @@ -152,10 +152,31 @@ equation Documentation( info="

-Model of a force quadratic dependent on the velocity of the flange. -The force can be resolved in a world frame, or a relative speed -can be used by selecting resolve_frame to use the extra frame_resolve. +A force applied on frame_b which is quadratic dependent on +the velocity of this frame. Both the measured velocity and the applied force +are resolved in the same frame which is defined via parameter +resolveInFrame as follows:

+ + + + + + + + + + + + + + + + + + +
Types.ResolveInFrameA.Meaning
worldResolve input force in world frame (= default)
frame_aResolve input force in frame_b
frame_resolveResolve input force in frame_resolve (frame_resolve must be connected)
+

This model is e.g. suitable to simulate aerodynamic drag forces.

From 4e38840caadd8907f239abdb6a1eaef8aae6bbc0 Mon Sep 17 00:00:00 2001 From: tobolar Date: Mon, 19 Jun 2023 11:58:40 +0200 Subject: [PATCH 3/4] Diagram: use full line of double thickness for connections to frame_resolve --- PlanarMechanics/Sources/QuadraticSpeedDependentForce.mo | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PlanarMechanics/Sources/QuadraticSpeedDependentForce.mo b/PlanarMechanics/Sources/QuadraticSpeedDependentForce.mo index b936a3ba..104e089c 100644 --- a/PlanarMechanics/Sources/QuadraticSpeedDependentForce.mo +++ b/PlanarMechanics/Sources/QuadraticSpeedDependentForce.mo @@ -99,11 +99,11 @@ equation connect(worldForce.frame_resolve, frame_resolve) annotation (Line( points={{30,-10},{0,-10},{0,-100}}, color={95,95,95}, - pattern=LinePattern.Dot)); + thickness=0.5)); connect(absoluteVelocity.frame_resolve, frame_resolve) annotation (Line( points={{30,30},{30,20},{0,20},{0,-100}}, color={95,95,95}, - pattern=LinePattern.Dot)); + thickness=0.5)); connect(absoluteVelocity.v, normalizeSpeeds.u) annotation (Line( points={{19,40},{2,40}}, color={0,0,127})); From 167fcd8f2f5a7c5a7e9368fd049c4ff26d4c49e2 Mon Sep 17 00:00:00 2001 From: tobolar Date: Mon, 19 Jun 2023 13:01:58 +0200 Subject: [PATCH 4/4] Add an entry in Release Notes --- PlanarMechanics/UsersGuide/ReleaseNotes.mo | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/PlanarMechanics/UsersGuide/ReleaseNotes.mo b/PlanarMechanics/UsersGuide/ReleaseNotes.mo index a543d399..9fdf8eec 100644 --- a/PlanarMechanics/UsersGuide/ReleaseNotes.mo +++ b/PlanarMechanics/UsersGuide/ReleaseNotes.mo @@ -21,6 +21,10 @@ It is backwards compatible to previous library versions.

Improvements in this version: