Skip to content
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

Documentation and more examples for #1297 #1301

Merged
merged 3 commits into from
Jan 19, 2022

Conversation

chapulina
Copy link
Contributor

While reviewing #1297 I was trying to make sense of all the reference frames used throughout the plugin, so I started documenting them as I believe they currently are. Then I added a couple of examples and I think some use cases are still not working well.

I added 2 models with different offsets and volume distributions which I believe should all be equivalent and neutrally buoyant, but see how the model with a collision split in 2 bounces around. I think there's still some offset that's not properly taken into account (assuming I didn't mess anything up setting up the models).

collision_offset

I haven't dug deeply into the math yet to see where the issue could be coming from.

Signed-off-by: Louise Poubel <[email protected]>
@chapulina chapulina mentioned this pull request Jan 19, 2022
7 tasks
Signed-off-by: Louise Poubel <[email protected]>
Copy link
Contributor

@arjo129 arjo129 left a comment

Choose a reason for hiding this comment

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

Thanks for the suggestions and spotting this. I think we aren't handling multiple geometry in collisions correctly. I think this needs to be ticketed somewhere before we forget.

@codecov
Copy link

codecov bot commented Jan 19, 2022

Codecov Report

Merging #1301 (bad001b) into arjo/fix/graded_buoyancy (1d461b8) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@                    Coverage Diff                    @@
##           arjo/fix/graded_buoyancy    #1301   +/-   ##
=========================================================
  Coverage                     62.23%   62.23%           
=========================================================
  Files                           278      278           
  Lines                         23192    23192           
=========================================================
  Hits                          14433    14433           
  Misses                         8759     8759           
Impacted Files Coverage Δ
src/systems/buoyancy/Buoyancy.hh 100.00% <ø> (ø)
src/systems/buoyancy/Buoyancy.cc 82.60% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1d461b8...bad001b. Read the comment docs.

@chapulina
Copy link
Contributor Author

I think we aren't handling multiple geometry in collisions correctly. I think this needs to be ticketed somewhere before we forget.

I pushed a fix on bad001b, mind giving it another try? We were accumulating the forces when we calculated the torque. I think it should be working now.

Copy link
Contributor

@arjo129 arjo129 left a comment

Choose a reason for hiding this comment

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

Tested and looks good to me. I'll add a similar test case. Thanks for catching this. Seems like a major oversight on my part 🤦‍♂️ .

@arjo129 arjo129 merged commit 8ade40c into arjo/fix/graded_buoyancy Jan 19, 2022
@arjo129 arjo129 deleted the chapulina/arjo/fix/graded_buoyancy branch January 19, 2022 02:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants