Files
OpenFOAM-12/tutorials/multiphase/interFoam/laminar/wave/Allrun
Will Bainbridge d2175f8fe0 fvOptions: verticalDamping: Added spatial ramping
The onset of vertical damping can now be graduated over a distance. The
user specifies an origin and a direction along which the graduation
occurs, and a ramping function to specify the form of the graduation. An
example specification for the fvOption is:

    verticalDamping1
    {
        type            verticalDamping;

        selectionMode   all;

        origin          (1200 0 0);
        direction       (1 0 0);
        ramp
        {
            type        halfCosineRamp;
            start       0;
            duration    600;
        }

        lambda          [0 0 -1 0 0 0 0] 1; // Damping coefficient

        timeStart       0;
        duration        1e6;
    }

If the origin, direction or ramp entries are omitted then the fvOption
functions as before; applying the damping to the entire volume or the
specified cell set.

This work was supported by Jan Kaufmann and Jan Oberhagemann at DNV GL.
2018-01-09 08:47:37 +00:00

32 lines
599 B
Bash
Executable File

#!/bin/sh
cd ${0%/*} || exit 1
. $WM_PROJECT_DIR/bin/tools/RunFunctions
runApplication blockMesh
cp -r 0.orig 0
runApplication extrudeMesh
for i in 1 2
do
runApplication -s $i topoSet -dict system/topoSetDict$i
runApplication -s $i refineMesh -dict system/refineMeshDictX -overwrite
done
for i in 3 4 5 6
do
runApplication -s $i topoSet -dict system/topoSetDict$i
runApplication -s $i refineMesh -dict system/refineMeshDictY -overwrite
done
runApplication setWaves -alpha alpha.water
runApplication decomposePar
runParallel $(getApplication)
runApplication reconstructPar