Skip to content

[BeamInterpolation] Generalize parameters per edge #169

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 26, 2025

Conversation

EulalieCoevoet
Copy link
Collaborator

@EulalieCoevoet EulalieCoevoet commented Feb 17, 2025

We can already set a defaultYoungModulus and defaultPoissonRatio per edge.
This PR generalizes this option to all parameters:

  • radius
  • innerRadius
  • lengthY
  • lengthZ
  • massDensity (AdaptiveBeamForceFieldAndMass.inl)

Question: Should we remove the options sideLength, largeRadius and smallRadius? They are not used, since square and elliptic cross-section are not implemented.
EDIT: If you agree, we should also remove the elliptic and square options from Data<OptionsGroup> crossSectionShape.

@fredroy fredroy added the pr: status to review To notify reviewers to review this pull-request label Feb 19, 2025
@fredroy fredroy changed the title [BeamInterpolation] Generalizes parameters per egde [BeamInterpolation] Generalizes parameters per edge Feb 19, 2025
@fredroy fredroy changed the title [BeamInterpolation] Generalizes parameters per edge [BeamInterpolation] Generalize parameters per edge Feb 19, 2025
@EulalieCoevoet EulalieCoevoet marked this pull request as draft February 21, 2025 19:31
@EulalieCoevoet
Copy link
Collaborator Author

EulalieCoevoet commented Feb 21, 2025

I found a problem. I'll remove the draft status when I'm done.

EDIT - IMPORTANT: My problem was due to the usage of linkpath (in the python script) to fill the data. In that case, this PR breaks the behavior. The usage of linkpath was already broken for the data defaultYoungModulus and defaultPoissonRatio. I don't know what we could do about that.

@EulalieCoevoet EulalieCoevoet marked this pull request as ready for review February 24, 2025 10:46
@hugtalbot
Copy link
Contributor

Hey @EulalieCoevoet
we forgot to notify you last week : tests are failing on the CI

@EulalieCoevoet
Copy link
Collaborator Author

Yes sorry. I just fixed it and added more tests.

@fredroy fredroy added pr: status ready Approved a pull-request, ready to be squashed and removed pr: status to review To notify reviewers to review this pull-request labels Mar 26, 2025
@fredroy fredroy merged commit 580e5c6 into sofa-framework:master Mar 26, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: status ready Approved a pull-request, ready to be squashed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants