Skip to content

FreeWheel - #4004

Open
AHaumer wants to merge 32 commits into
modelica:masterfrom
AHaumer:FreeWheel
Open

AHaumer wants to merge 32 commits into
modelica:masterfrom
AHaumer:FreeWheel

Conversation

@AHaumer

@AHaumer AHaumer commented Jun 26, 2022

Copy link
Copy Markdown
Contributor

As mentioned in #3977:
I see that we have a rather sophisticated Mechanics.Rotational.Components.OneWayClutch, but no simple ideal freewheel (like the Electrical.Analog.Ideal.Diode). We could introduce such a component for usage e.g. in bicycle models.

@AHaumer AHaumer added enhancement New feature or enhancement L: Mechanics.Rotational Issue addresses Modelica.Mechanics.Rotational labels Jun 26, 2022
@AHaumer AHaumer self-assigned this Jun 26, 2022
@AHaumer
AHaumer enabled auto-merge June 26, 2022 16:48

@christiankral christiankral left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AHaumer Please check the following changes and re-invite me for a review afterwards.

  1. I added SI units the parameters in 8c6ba79
  2. I updated the documentation of the example in 73078a6

@AHaumer
AHaumer requested a review from christiankral July 4, 2022 16:57

@beutlich beutlich left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • The new model is missing in ModelicaTest.Rotational.AllComponents.
  • The new example misses the required file Modelica/Resources/Reference/Modelica/Mechanics/Rotational/Examples/DemoFreeWheel/comparisonSignals.txt

@AHaumer
AHaumer requested a review from beutlich July 5, 2022 06:29

@beutlich beutlich left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • The new model is missing in ModelicaTest.Rotational.AllComponents.
  • The new example misses the required file Modelica/Resources/Reference/Modelica/Mechanics/Rotational/Examples/DemoFreeWheel/comparisonSignals.txt

@tobolar tobolar left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any reason to not extend from Modelica.Mechanics.Rotational.Interfaces.PartialCompliantWithRelativeStates as e.g. Rotational.Components.Clutch does?

@AHaumer
AHaumer requested review from beutlich and tobolar July 29, 2022 16:17
…alCompliant

Thus, the sign convention of phi_rel (and w_rel) established for "rotational" components is assured.
Note: doing so, the sign of w_rel and tau changes - compared to the original implementation.
@tobolar

tobolar commented Aug 3, 2022 •

Copy link
Copy Markdown
Contributor

Is there any reason to not extend from Modelica.Mechanics.Rotational.Interfaces.PartialCompliantWithRelativeStates as e.g. Rotational.Components.Clutch does?

With 7e6f667, the freewheel extends now from Mechanics.Rotational.Interfaces.PartialCompliant (without the state selection since it could be problematic). Thus, the sign convention of phi_rel (and w_rel) established for all rotational components is assured now. Consequently, the sign of w_rel and tau changes - compared to the original implementation. The example models work fine.

@AHaumer
AHaumer disabled auto-merge September 12, 2025 16:16
@beutlich
beutlich removed their request for review September 15, 2025 04:51
@christiankral

Copy link
Copy Markdown
Contributor

The freewheel model and example look OK on my opinion.

I think the parameter names and units are fine. @HansOlsson do you agree?

@HansOlsson

Copy link
Copy Markdown
Contributor

@HansOlsson Is using unitAngularVelocity and unitTorque still "state of the art" in how we handle the diode and freewheel implementation?

Yes. We are working on better solutions, but not yet.

@AHaumer
AHaumer marked this pull request as draft October 20, 2026 11:26
@AHaumer
AHaumer requested a review from beutlich November 24, 2026 08:56
@MSL-RegressionTesting-CI

Copy link
Copy Markdown

@MSL-RegressionTesting-CI

Copy link
Copy Markdown

@AHaumer
AHaumer marked this pull request as ready for review November 24, 2026 09:56
@AHaumer AHaumer changed the title Implemented FreeWheel FreeWheel Nov 24, 2026
@AHaumer AHaumer linked an issue Nov 24, 2026 that may be closed by this pull request

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or enhancement L: Mechanics.Rotational Issue addresses Modelica.Mechanics.Rotational

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rotational freewheel

6 participants