Skip to content

Conversation

@HansOlsson
Copy link
Contributor

Closes #4197
(See that ticket for the discussion.)

Copy link
Contributor

@christiankral christiankral left a comment

Choose a reason for hiding this comment

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

Looks good to me.

Copy link
Contributor

@tobolar tobolar left a comment

Choose a reason for hiding this comment

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

f_c is negative for contact = true, i.e. when s_rel < s_rel0. This means, the contact occures when the difference s_rel-s_rel0 is negative.
IMO this implies that both f_ref and s_ref shall be limited by max = 0.

@HansOlsson
Copy link
Contributor Author

f_c is negative for contact = true, i.e. when s_rel < s_rel0. This means, the contact occures when the difference s_rel-s_rel0 is negative. IMO this implies that both f_ref and s_ref shall be limited by max = 0.

Clearly f_ref and s_ref shall have the same sign.

But I find it easier to have a positive s_ref, and the sign doesn't matter much since abs(delta) removes it.

@tobolar
Copy link
Contributor

tobolar commented Dec 15, 2023

But I find it easier to have a positive s_ref, and the sign doesn't matter much since abs(delta) removes it.

Definitely. I prepared a PR on your branch regarding this.

@tobolar tobolar self-requested a review December 15, 2023 15:54
Copy link
Contributor

@tobolar tobolar left a comment

Choose a reason for hiding this comment

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

Fine for me!

Closes modelica#4197

Prefer code to pre, and move things.

Add scaling ratio variable and add parameter description

Simplify computation of f_d

Documentation: add non-braking spaces where needed

Add scaling ratio variable and add parameter description

Simplify computation of f_d

Documentation: add non-braking spaces where needed

Improve documentation concerning s_rel and f_rel

Enable only positive values of s_rel and f_rel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

L: Mechanics.Translational Issue addresses Modelica.Mechanics.Translational

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unit issue in Modelica.Mechanics.Translational.Components.ElastoGap

4 participants