mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Merge branch 'master' of ssh://noisy/home/noisy3/OpenFOAM/OpenFOAM-dev
This commit is contained in:
10
tutorials/multiphase/MRFMultiphaseInterFoam/mixerVessel2D/Allclean
Executable file
10
tutorials/multiphase/MRFMultiphaseInterFoam/mixerVessel2D/Allclean
Executable file
@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # run from this directory
|
||||
|
||||
# Source tutorial clean functions
|
||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||
|
||||
cleanCase
|
||||
rm 0/alphas > /dev/null 2>&1
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
@ -9,12 +9,7 @@ loseCases="damBreakFine"
|
||||
|
||||
for case in $keepCases
|
||||
do
|
||||
(cd $case && foamCleanTutorials)
|
||||
|
||||
if [ "$case" = "damBreak" ]
|
||||
then
|
||||
cp $case/0/alpha1.org $case/0/alpha1
|
||||
fi
|
||||
(cd $case && foamCleanTutorials && rm -rf 0/alpha1)
|
||||
done
|
||||
|
||||
for case in $loseCases
|
||||
|
||||
@ -31,6 +31,7 @@ setDamBreakFine ()
|
||||
cd damBreak || exit
|
||||
|
||||
runApplication blockMesh
|
||||
cp 0/alpha1.org 0/alpha1
|
||||
runApplication setFields
|
||||
runApplication $application
|
||||
)
|
||||
@ -43,10 +44,10 @@ cloneCase damBreak damBreakFine
|
||||
|
||||
# Modify case
|
||||
setDamBreakFine
|
||||
cp ../damBreak/0/alpha1.org 0/alpha1
|
||||
|
||||
# And execute
|
||||
runApplication blockMesh
|
||||
cp ../damBreak/0/alpha1.org 0/alpha1
|
||||
runApplication setFields
|
||||
runApplication decomposePar
|
||||
runParallel $application 4
|
||||
@ -58,6 +59,7 @@ cloneCase damBreak damBreakFine
|
||||
cd capillaryRise || exit
|
||||
|
||||
runApplication blockMesh
|
||||
cp 0/alpha1.org 0/alpha1
|
||||
runApplication setFields
|
||||
runApplication $application
|
||||
)
|
||||
|
||||
@ -1,51 +0,0 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: dev |
|
||||
| \\ / A nd | Web: www.OpenFOAM.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class volScalarField;
|
||||
object alpha;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dimensions [0 0 0 0 0 0 0];
|
||||
|
||||
internalField uniform 0;
|
||||
|
||||
boundaryField
|
||||
{
|
||||
leftWall
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
rightWall
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
lowerWall
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
atmosphere
|
||||
{
|
||||
type inletOutlet;
|
||||
inletValue uniform 0;
|
||||
value uniform 0;
|
||||
}
|
||||
|
||||
defaultFaces
|
||||
{
|
||||
type empty;
|
||||
}
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
Reference in New Issue
Block a user