Skip to content

inertia box fluid model #191

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 12 commits into from
May 12, 2025
Merged

Conversation

@thowell thowell linked an issue Apr 27, 2025 that may be closed by this pull request
Copy link
Collaborator

@adenzler-nvidia adenzler-nvidia left a comment

Choose a reason for hiding this comment

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

Thanks - some comments, mostly about wp.static usage.

lvel_torque = rotT @ torque
lvel_force = rotT @ force

if m.opt.wind[0] or m.opt.wind[1] or m.opt.wind[2]:
Copy link
Collaborator

Choose a reason for hiding this comment

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

not sure if there is a big benefit to this, but could be wp.max(m.opt.wind) > 0.0.

Or I guess this information is even statically available, so maybe wrap in wp.static? actually, you're not running that code right now anyway if all of them are zero, are you going to reuse this function in a different kernel?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

wrapped in wp.static

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

the functionality from _inertia_box_fluid_model is moved into box_fluid

Copy link
Collaborator

@erikfrey erikfrey left a comment

Choose a reason for hiding this comment

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

This is lovely code and nicely written, just a few nits

@thowell thowell merged commit 6876369 into google-deepmind:main May 12, 2025
5 checks passed
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.

Box fluid model
4 participants