MFlowCode / MFC

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

Add Surface Tension #387

Closed wilfonba closed 1 month ago

wilfonba commented 3 months ago

Description

This PR adds the surface tension model of Schmidmayer et. al 2017 to MFC.

Fixes #276

Type of change

Scope

How Has This Been Tested?

https://github.com/MFlowCode/MFC/assets/48168887/12fed2fe-ae11-4b81-bc4f-51104150a1b7

https://github.com/MFlowCode/MFC/assets/48168887/4ab34fa0-12ae-40f2-a507-b56517e15984

https://github.com/MFlowCode/MFC/assets/48168887/e1b8280d-3630-49da-af75-7eeb893b678c

https://github.com/MFlowCode/MFC/assets/48168887/ad810648-113d-4a8a-8b05-354f4876f49b

Checklist

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

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

anandrdbz commented 2 months ago

@wilfonba check s_rectangle subroutine in m_patches.fpp, it only defines smooth_patch_id when ib is not true (lines 893-894), and you added a further check at line 928 where that variable is no longer defined, which is causing a bug in the 3D IBM case

wilfonba commented 2 months ago

I forgot I'd added that stuff. Thanks for taking a look @anandrdbz!

sbryngelson commented 1 month ago

PRs are on hold until #419 is fixed

sbryngelson commented 1 month ago

add more example cases in examples/!

wilfonba commented 1 month ago

PRs are on hold until #419 is fixed

I'm aware of this. I figured starting the review process wouldn't hurt anything so that I can fix any revisions while that issue is being resolved.

sbryngelson commented 1 month ago

per This PR comprises a set of related changes with a common goal please move the template updates to a separate PR

sbryngelson commented 1 month ago

@wilfonba sync w/ master

sbryngelson commented 1 month ago

should be able to debug these Test Suite / Github (macos, mpi, debug, false) (pull_request) from your own mac

henryleberre commented 1 month ago

Note: ./mfc.sh count_diff is called from master so the Check Line Counts workflow is expected to fail despite the fixes I pushed to this PR.

wilfonba commented 1 month ago

Let me fix the macOS no debug runners. Not sure why those would have failed, but I haven't ran the test suite with no debug recently

sbryngelson commented 1 month ago

Let me fix the macOS no debug runners. Not sure why those would have failed, but I haven't ran the test suite with no debug recently

Related to new issue #443

sbryngelson commented 1 month ago

Can merge this PR without that runner working