mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
ENH: oscillatingLinearMotion: add optional phase- and vertical-shift entries
ENH: oscillatingLinearMotion: change types of input entries to Function1 TUT: sloshingCylinder: exemplify new entries of oscillatingLinearMotion
This commit is contained in:
@ -7,5 +7,6 @@ cleanCase0
|
||||
|
||||
rm -rf constant/triSurface
|
||||
rm -rf constant/extendedFeatureEdgeMesh
|
||||
rm -rf oldProcessors
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -3,19 +3,7 @@ cd "${0%/*}" || exit # Run from this directory
|
||||
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
mkdir -p constant/triSurface
|
||||
|
||||
cp -f \
|
||||
"$FOAM_TUTORIALS"/resources/geometry/sloshingCylinder.obj.gz \
|
||||
constant/triSurface/
|
||||
|
||||
restore0Dir
|
||||
|
||||
runApplication blockMesh
|
||||
|
||||
runApplication snappyHexMesh -overwrite
|
||||
|
||||
runApplication setFields
|
||||
./Allrun.pre
|
||||
|
||||
runApplication $(getApplication)
|
||||
|
||||
|
||||
29
tutorials/multiphase/interFoam/laminar/sloshingCylinder/Allrun-parallel
Executable file
29
tutorials/multiphase/interFoam/laminar/sloshingCylinder/Allrun-parallel
Executable file
@ -0,0 +1,29 @@
|
||||
#!/bin/sh
|
||||
cd "${0%/*}" || exit # Run from this directory
|
||||
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
./Allrun.pre
|
||||
|
||||
runApplication decomposePar
|
||||
|
||||
runParallel $(getApplication)
|
||||
|
||||
runApplication reconstructPar
|
||||
|
||||
|
||||
latestTime=$(foamListTimes -latestTime)
|
||||
|
||||
mv -f "$latestTime" "$latestTime".bak
|
||||
|
||||
mkdir oldProcessors
|
||||
|
||||
mv -f processor* oldProcessors
|
||||
|
||||
runParallel -s "decompose" redistributePar -decompose -latestTime
|
||||
|
||||
runParallel -s "restart" $(getApplication)
|
||||
|
||||
runParallel -s "reconstruct" redistributePar -reconstruct -latestTime
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
20
tutorials/multiphase/interFoam/laminar/sloshingCylinder/Allrun.pre
Executable file
20
tutorials/multiphase/interFoam/laminar/sloshingCylinder/Allrun.pre
Executable file
@ -0,0 +1,20 @@
|
||||
#!/bin/sh
|
||||
cd "${0%/*}" || exit # Run from this directory
|
||||
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
mkdir -p constant/triSurface
|
||||
|
||||
cp -f \
|
||||
"$FOAM_TUTORIALS"/resources/geometry/sloshingCylinder.obj.gz \
|
||||
constant/triSurface/
|
||||
|
||||
restore0Dir
|
||||
|
||||
runApplication blockMesh
|
||||
|
||||
runApplication snappyHexMesh -overwrite
|
||||
|
||||
runApplication setFields
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
@ -27,6 +27,9 @@ oscillation
|
||||
{
|
||||
amplitude (0.1 0 0);
|
||||
omega 18.8945578;
|
||||
|
||||
phaseShift 0.01;
|
||||
verticalShift (0.05 0 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -0,0 +1,27 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: v2206 |
|
||||
| \\ / A nd | Website: www.openfoam.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
object decomposeParDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
numberOfSubdomains 4;
|
||||
|
||||
method hierarchical;
|
||||
|
||||
coeffs
|
||||
{
|
||||
n ( 2 2 1 );
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
Reference in New Issue
Block a user