We have been discussing a problem involving stratified saltwater/freshwater. I don’t have much experience with this type of problem, so I’m doing a few OpenFOAM simulations to better understand how they work.
In this video, I show the vertical profile of a channel, in which flow encounters a bottom obstacle. Saltwater and freshwater have the same velocity on the upstream border, so the heavier fraction has to raise to flow above the obstacle. This led to an interesting dynamic.
The solution was calculated using interMixingFoam, with OpenFOAM v2112. Saltwater and freshwater are solved as miscible phases.