tutorials: Removed 0.orig directories in favor of <field>.orig

The new automated <field>.orig reading has made 0.orig directories and
associated scripting redundant.
This commit is contained in:
Henry Weller
2018-02-15 20:14:27 +00:00
parent df6e2da2dd
commit 9221dd0d0f
211 changed files with 326 additions and 13180 deletions

View File

@ -4,7 +4,7 @@ cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
rm -rf 0 > /dev/null 2>&1
find 0 -type f ! -name "*.*" -delete > /dev/null 2>&1
cleanCase

View File

@ -6,7 +6,6 @@ cd ${0%/*} || exit 1 # Run from this directory
application=`getApplication`
cp -r 0.orig 0 > /dev/null 2>&1
runApplication blockMesh
runApplication $application -withFunctionObjects -writePhi -writep
runApplication postProcess -func streamFunction

View File

@ -4,7 +4,7 @@ cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
rm -rf 0 > /dev/null 2>&1
find 0 -type f ! -name "*.*" -delete > /dev/null 2>&1
cleanCase

View File

@ -6,7 +6,6 @@ cd ${0%/*} || exit 1 # Run from this directory
application=`getApplication`
cp -r 0.orig 0 > /dev/null 2>&1
runApplication blockMesh
runApplication $application -writePhi -writep
runApplication postProcess -func streamFunction

View File

@ -4,10 +4,7 @@ cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
rm -rf constant/polyMesh/sets > /dev/null 2>&1
rm -rf 0 > /dev/null 2>&1
rm system/topoSetDict > /dev/null 2>&1
rm -rf processor[0-9] > /dev/null 2>&1
cleanCase
#------------------------------------------------------------------------------

View File

@ -25,8 +25,6 @@ refineMeshByCellSet()
done
}
cp -r 0.orig 0
runApplication blockMesh
refineMeshByCellSet 1 2 3

View File

@ -5,6 +5,6 @@ cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase
rm -rf 0 2> /dev/null
rm -rf 0/T.*
#------------------------------------------------------------------------------

View File

@ -10,8 +10,6 @@ application=`getApplication`
runApplication blockMesh
runApplication extrudeMesh
rm -rf 0 2> /dev/null
cp -r 0.orig 0
runApplication setFields
runApplication $application

View File

@ -1,11 +0,0 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase
rm -rf 0
#------------------------------------------------------------------------------

View File

@ -5,7 +5,6 @@ cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions
runApplication blockMesh
cp -r 0.orig 0
runApplication setFields
runApplication $(getApplication)

View File

@ -99,8 +99,8 @@ PIMPLE
{
momentumPredictor no;
transonic no;
nOuterCorrectors 1;
nCorrectors 2;
nOuterCorrectors 3;
nCorrectors 1;
nNonOrthogonalCorrectors 0;
}

View File

@ -1,12 +0,0 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase
rm -rf 0
rm -rf processor*
#------------------------------------------------------------------------------

View File

@ -5,7 +5,6 @@ cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions
runApplication blockMesh
cp -r 0.orig 0
runApplication setFields
runApplication decomposePar
runParallel $(getApplication)

View File

@ -99,8 +99,8 @@ PIMPLE
{
momentumPredictor no;
transonic no;
nOuterCorrectors 1;
nCorrectors 2;
nOuterCorrectors 2;
nCorrectors 1;
nNonOrthogonalCorrectors 0;
}

View File

@ -1,47 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
location "0";
object alphas;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 0 0 0 0 0 0];
internalField uniform 0;
boundaryField
{
leftWall
{
type zeroGradient;
}
rightWall
{
type zeroGradient;
}
lowerWall
{
type zeroGradient;
}
atmosphere
{
type zeroGradient;
}
defaultFaces
{
type empty;
}
}
// ************************************************************************* //

View File

@ -6,6 +6,6 @@ cd ${0%/*} || exit 1 # Run from this directory
cleanCase
rm -rf 0
rm -rf 0/T.* 0/alphas
#------------------------------------------------------------------------------

View File

@ -7,9 +7,6 @@ cd ${0%/*} || exit 1 # Run from this directory
# Set application name
application=`getApplication`
rm -rf 0
cp -r 0.orig 0
runApplication blockMesh
runApplication setFields
runApplication $application

View File

@ -21,7 +21,6 @@ defaultFieldValues
volScalarFieldValue alpha.water 0
volScalarFieldValue alpha.oil 0
volScalarFieldValue alpha.mercury 0
volVectorFieldValue U (0 0 0)
);
regions

View File

@ -11,7 +11,6 @@ rm -f constant/triSurface/DTC-scaled.eMesh > /dev/null 2>&1
cleanCase
rm constant/polyMesh/boundary > /dev/null 2>&1
rm -rf 0 > /dev/null 2>&1
rm system/topoSetDict > /dev/null 2>&1
#------------------------------------------------------------------------------

View File

@ -22,9 +22,6 @@ done
runApplication snappyHexMesh -overwrite
rm -rf 0
cp -r 0.orig 0
runApplication setFields
runApplication decomposePar

View File

@ -4,14 +4,12 @@ cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
# remove surface
# Remove surface
rm -f constant/triSurface/DTC-scaled.stl.gz > /dev/null 2>&1
rm -rf constant/extendedFeatureEdgeMesh > /dev/null 2>&1
rm -f constant/triSurface/DTC-scaled.eMesh > /dev/null 2>&1
cleanCase
rm constant/polyMesh/boundary > /dev/null 2>&1
rm -rf 0 > /dev/null 2>&1
rm system/topoSetDict > /dev/null 2>&1
#------------------------------------------------------------------------------

View File

@ -22,9 +22,6 @@ done
runApplication snappyHexMesh -overwrite
rm -rf 0
cp -r 0.orig 0
runApplication setFields
runApplication decomposePar

View File

@ -11,7 +11,6 @@ rm -f constant/triSurface/DTC-scaled.eMesh > /dev/null 2>&1
cleanCase
rm constant/polyMesh/boundary > /dev/null 2>&1
rm -rf 0 > /dev/null 2>&1
rm system/topoSetDict > /dev/null 2>&1
#------------------------------------------------------------------------------

View File

@ -23,9 +23,6 @@ done
runApplication snappyHexMesh -overwrite
rm -rf 0
cp -r 0.orig 0
runApplication setWaves -alpha alpha.water
runApplication decomposePar
@ -35,3 +32,5 @@ runParallel renumberMesh -overwrite
runParallel $(getApplication)
runApplication reconstructPar
#------------------------------------------------------------------------------

View File

@ -11,7 +11,7 @@ FoamFile
format ascii;
class volScalarField;
location "0";
object alpha.water;
object alpha.water.orig;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -10,6 +10,7 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object p_rgh;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -23,16 +24,25 @@ boundaryField
stationaryWalls
{
type fixedFluxPressure;
gradient uniform 0;
value uniform 0;
}
atmosphere
{
type totalPressure;
rho rho;
psi none;
gamma 1;
p0 uniform 0;
value uniform 0;
}
floatingObject
{
type fixedFluxPressure;
gradient uniform 0;
value uniform 0;
}
}
// ************************************************************************* //

View File

@ -10,6 +10,7 @@ FoamFile
version 2.0;
format ascii;
class pointVectorField;
location "0";
object pointDisplacement;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -33,7 +34,6 @@ boundaryField
floatingObject
{
type calculated;
value uniform (0 0 0);
}
}

View File

@ -1,11 +0,0 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
rm -rf 0 > /dev/null 2>&1
cleanCase
#------------------------------------------------------------------------------

View File

@ -10,7 +10,6 @@ application=`getApplication`
runApplication blockMesh
runApplication topoSet
runApplication subsetMesh -overwrite c0 -patch floatingObject
cp -r 0.orig 0 > /dev/null 2>&1
runApplication setFields
runApplication $application

View File

@ -1,63 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format binary;
class volVectorField;
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -1 0 0 0 0];
internalField uniform (0 0 0);
boundaryField
{
".*"
{
type fixedValue;
value $internalField;
}
gasInlet
{
type fixedValue;
value uniform (0 0 0.5);
}
outlet
{
type pressureInletOutletVelocity;
value $internalField;
}
"(shaftRotating|stirrer)"
{
type movingWallVelocity;
value $internalField;
}
shaft
{
type rotatingWallVelocity;
origin (0 0 0);
axis (0 0 1);
omega -5;
}
"AMI.*"
{
type cyclicAMI;
value $internalField;
}
}
// ************************************************************************* //

View File

@ -1,41 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object p_rgh;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [1 -1 -2 0 0 0 0];
internalField uniform 1.25e5;
boundaryField
{
".*"
{
type fixedFluxPressure;
}
outlet
{
type fixedValue;
value $internalField;
}
"AMI.*"
{
type cyclicAMI;
value $internalField;
}
}
// ************************************************************************* //

Binary file not shown.

View File

@ -8,9 +8,10 @@
FoamFile
{
version 2.0;
format ascii;
format binary;
class volScalarField;
object alpha.water;
location "0";
object alpha.water.orig;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -20,28 +21,52 @@ internalField uniform 0;
boundaryField
{
".*"
vessel
{
type zeroGradient;
}
gasInlet
{
type fixedValue;
value uniform 1;
}
outlet
{
type inletOutlet;
inletValue uniform 0;
value $internalField;
value uniform 0;
}
"AMI.*"
shaftRotating
{
type zeroGradient;
}
shaft
{
type zeroGradient;
}
sparger
{
type zeroGradient;
}
stirrer
{
type zeroGradient;
}
baffles
{
type zeroGradient;
}
AMI1
{
type cyclicAMI;
value uniform 0;
}
AMI2
{
type cyclicAMI;
value uniform 0;
}
}
// ************************************************************************* //

View File

@ -8,41 +8,69 @@
FoamFile
{
version 2.0;
format ascii;
format binary;
class volScalarField;
location "0";
object epsilon;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -3 0 0 0 0];
internalField uniform 7e-3;
internalField uniform 0.007;
boundaryField
{
".*"
vessel
{
type epsilonWallFunction;
value $internalField;
value uniform 0.007;
}
gasInlet
{
type fixedValue;
value $internalField;
value uniform 0.007;
}
outlet
{
type inletOutlet;
inletValue $internalField;
value $internalField;
inletValue uniform 0.007;
value uniform 0.007;
}
"AMI.*"
shaftRotating
{
type epsilonWallFunction;
value uniform 0.007;
}
shaft
{
type epsilonWallFunction;
value uniform 0.007;
}
sparger
{
type epsilonWallFunction;
value uniform 0.007;
}
stirrer
{
type epsilonWallFunction;
value uniform 0.007;
}
baffles
{
type epsilonWallFunction;
value uniform 0.007;
}
AMI1
{
type cyclicAMI;
value $internalField;
value uniform 0;
}
AMI2
{
type cyclicAMI;
value uniform 0;
}
}

View File

@ -8,8 +8,9 @@
FoamFile
{
version 2.0;
format ascii;
format binary;
class volScalarField;
location "0";
object k;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -20,30 +21,58 @@ internalField uniform 0.01;
boundaryField
{
".*"
vessel
{
type kqRWallFunction;
value $internalField;
value uniform 0.01;
}
gasInlet
{
type fixedValue;
value $internalField;
value uniform 0.01;
}
outlet
{
type inletOutlet;
inletValue $internalField;
value $internalField;
inletValue uniform 0.01;
value uniform 0.01;
}
"AMI.*"
shaftRotating
{
type kqRWallFunction;
value uniform 0.01;
}
shaft
{
type kqRWallFunction;
value uniform 0.01;
}
sparger
{
type kqRWallFunction;
value uniform 0.01;
}
stirrer
{
type kqRWallFunction;
value uniform 0.01;
}
baffles
{
type kqRWallFunction;
value uniform 0.01;
}
AMI1
{
type cyclicAMI;
value $internalField;
value uniform 0;
}
AMI2
{
type cyclicAMI;
value uniform 0;
}
}
// ************************************************************************* //

Some files were not shown because too many files have changed in this diff Show More