Sloshing of water in a tank (2D, 3 degree of freedom)

Update: July 28, 2017
OpenFOAM 4.x

Case directory

$FOAM_TUTORIALS/multiphase/interDyMFoam/ras/sloshingTank2D3DoF

Summary

This tutorial is the same analysis as the tutorial "Sloshing of water in a tank (2D)", but the parameter values in the file "constant/dynamicMeshDict" are different from the tutorial.

Commands

cp -r $FOAM_TUTORIALS/multiphase/interDyMFoam/ras/sloshingTank2D3DoF sloshingTank2D3DoF
cd sloshingTank2D3DoF

m4 system/blockMeshDict.m4 > system/blockMeshDict
blockMesh
cp 0/alpha.water.orig 0/alpha.water
setFields
interDyMFoam

# Display in 3D
paraFoam

# Draw the pressures at the specified coordinates as a graph
gnuplot
gnuplot>plot "postProcessing/probes/0/p" using 1:2 title 'point 1' with lines lc rgb "black", "postProcessing/probes/0/p" using 1:3 title 'point 2' with lines dt (5,5) lc rgb "black"

Calculation time

2 minutes 8.66 seconds *Single, Inter(R) Core(TM) i7-2600 CPU @ 3.40GHz 3.40GHz