-
Notifications
You must be signed in to change notification settings - Fork 244
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
Fea ext lagrangian MeshGraphNet #667
Conversation
This is really great! Was thinking that it would make sense to also have an example for lagrangian GNN based on DeepMind's paper... Great work! |
Thanks for the comments! I have just addressed them and added a unit test |
/blossom-ci |
/blossom-ci |
/blossom-ci |
1 similar comment
/blossom-ci |
/blossom-ci |
/blossom-ci |
/blossom-ci |
/blossom-ci |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Modulus Pull Request for Lagrangian MeshGraphNet
Description
We implemented Meshgraphnet for particle-based simulation on the water dataset based on
https://github.com/google-deepmind/deepmind-research/tree/master/learning_to_simulate in PyTorch.
It demonstrates how to train a Graph Neural Network (GNN) for evaluation of the
Lagrangian fluid.
In this project, we provide an example of Lagrangian mesh simulation for fluids. The Lagrangian mesh is particle-based, where vertices represent fluid particles and edges represent their interactions. Compared to an Eulerian mesh, where the mesh grid is fixed, a Lagrangian mesh is more flexible since it does not require tessellating the domain or aligning with boundaries.
As a result, Lagrangian meshes are well-suited for representing complex geometries and free-boundary problems, such as water splashes and object collisions. However, a drawback of the Lagrangian mesh is that it typically requires smaller time steps to maintain physically valid simulations.
The main code consists of dataloader, train, and inference
modulus/datapipes/gnn/lagrangian_dataset.py
examples/cfd/lagrangian_mgn/train.py
examples/cfd/lagrangian_mgn/inference.py
Checklist
Dependencies