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

How to setup a periodic simulation? #670

Open
dineshadepu opened this issue Aug 23, 2023 · 4 comments
Open

How to setup a periodic simulation? #670

dineshadepu opened this issue Aug 23, 2023 · 4 comments
Labels
question Further information is requested

Comments

@dineshadepu
Copy link
Contributor

Hi all,

For validation I need to do some periodic cases, such as, Taylor-Green vortex, and Poiseuille flow problems. Unfortunately, I couldn't set one up with the current documentation and example cases. Can someone help regarding this?

Many thanks.

@sslattery
Copy link
Collaborator

@dineshadepu
Copy link
Contributor Author

Thanks for the example case @sslattery . Currently I am only dealing with numerical methods which are only related to particles and no mesh is involved. The code I have developed so far, I have only used Cabana with no Cajita's algorithms or mesh related functions.

I have checked this example, but I do not know if we can make the particles periodic as well. Can you please clarify on this?

Many thanks.

@streeve
Copy link
Member

streeve commented Aug 24, 2023

In that case it's much more closely tied to your algorithm/physics. Before you get into MPI you can just shift the particles by the box size if it crosses a boundary.

Otherwise start with https://github.com/ECP-copa/Cabana/wiki/Core-MPI-Communication. We have current work to add new features in Cabana to make this easier, but at the moment you will need to build the list of particles to be communicated (whether it's a periodic boundary or internal MPI boundary).

We have a few examples which do this, https://github.com/ORNL/CabanaPD only uses particle halos (particles never migrate), but shows how to use newer options for performant particle gathers. https://github.com/ECP-copa/CabanaMD is older and more complicated (uses a multi-pass approach), but has both particle gather/scatter and migration. Note these both use Cajita grids for convenience even though they're mesh-free

@streeve streeve added the question Further information is requested label Aug 24, 2023
@dineshadepu
Copy link
Contributor Author

Thanks for the detailed answer @streeve . I don't think I can currently implement this. I will get back to this once I start to use MPI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants