MFlowCode / MFC

Exascale simulation of multiphase/physics fluid dynamics
https://mflowcode.github.io
MIT License
132 stars 58 forks source link

IBM Fix on Non-uniform Initial Condition #404

Closed haochey closed 2 months ago

haochey commented 2 months ago

Description

This is to deal with the issues for IBM with non-uniform initial conditions as mentioned by @anandrdbz in PR#398.

Fixes #401

Type of change

Please delete options that are not relevant.

Scope

How Has This Been Tested?

I use two regular patches that are not overlapping over each other with initial different velocities and put three IBs at the interface of these two patches. Thus, the velocity inside the IBs is not uniform initially. Velocity inside IBs should be corrected to be zero at the simulation stage. The animations below are the test case showing the expected changes in IBs for 2D and 3D cases.

Test Configuration:

Checklist

If your code changes any code source files (anything in src/simulation)

To make sure the code is performing as expected on GPU devices, I have: