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 22:59:56 +00:00
parent 9221dd0d0f
commit 1d38ceb900
156 changed files with 2128 additions and 695 deletions

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,43 +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;
phi phiAbs;
value $internalField;
}
outlet
{
type fixedValue;
value $internalField;
}
"AMI.*"
{
type cyclicAMI;
value $internalField;
}
}
// ************************************************************************* //

Binary file not shown.

View File

@ -8,8 +8,9 @@
FoamFile
{
version 2.0;
format ascii;
format binary;
class volScalarField;
location "0";
object k;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -20,30 +21,68 @@ internalField uniform 0.01;
boundaryField
{
".*"
{
type kqRWallFunction;
value $internalField;
}
gasInlet
{
type fixedValue;
value $internalField;
}
outlet
{
type inletOutlet;
inletValue $internalField;
value $internalField;
inletValue uniform 0.01;
value uniform 0.01;
}
"AMI.*"
vessel
{
type kqRWallFunction;
value uniform 0.01;
}
gasInlet
{
type fixedValue;
value uniform 0.01;
}
sparger
{
type kqRWallFunction;
value uniform 0.01;
}
spargerShaft
{
type kqRWallFunction;
value uniform 0.01;
}
shaftRotating
{
type kqRWallFunction;
value uniform 0.01;
}
shaft
{
type kqRWallFunction;
value uniform 0.01;
}
stirrer_baffles
{
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;
}
}
// ************************************************************************* //

View File

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

View File

@ -0,0 +1,64 @@
/*--------------------------------*- 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 volScalarField;
location "0";
object p_rgh;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [1 -1 -2 0 0 0 0];
internalField uniform 125000;
boundaryField
{
outlet
{
type fixedValue;
value uniform 125000;
}
vessel
{
type fixedFluxPressure;
gradient uniform 0;
value uniform 125000;
}
gasInlet
{
type fixedFluxPressure;
gradient uniform 0;
value uniform 125000;
}
sparger
{
type fixedFluxPressure;
gradient uniform 0;
value uniform 125000;
}
spargerShaft
{
type fixedFluxPressure;
gradient uniform 0;
value uniform 125000;
}
shaftRotating
{
type fixedFluxPressure;
gradient uniform 0;
value uniform 125000;
}
shaft
{
type fixedFluxPressure;
gradient uniform 0;
value uniform 125000;
}

View File

@ -6,7 +6,6 @@ cd ${0%/*} || exit 1 # Run from this directory
cleanCase
rm -rf 0
rm -rf constant/extendedFeatureEdgeMesh/
rm -f constant/triSurface/*.eMesh*
rm -f constant/triSurface/*.stl
@ -20,5 +19,4 @@ rm -f constant/backgroundMeshDecomposition/polyMesh/neighbour
rm -f constant/backgroundMeshDecomposition/polyMesh/owner
rm -f constant/backgroundMeshDecomposition/polyMesh/points
#------------------------------------------------------------------------------

View File

@ -19,13 +19,9 @@ intersectSurfaces()
# Set application name
application=$(getApplication)
rm -rf 0
# Run the surface preparation script
./constant/triSurface/surfaceProcess.sh > log.surfaceProcess 2>&1
# Surface intersections
intersectSurfaces \
constant/triSurface/vessel.stl \
@ -69,7 +65,6 @@ do
-surf2Baffle
done
# Meshing
cp system/controlDict.mesh system/controlDict

View File

@ -9,17 +9,12 @@ cp system/controlDict.flow system/controlDict
# Set application name
application=$(getApplication)
rm -rf 0
runApplication createBaffles -overwrite
runApplication mergeOrSplitBaffles -split -overwrite
# Get rid of zero faced patches
runApplication createPatch -overwrite
# Copy fields after meshing to avoind the generation of unnecessary patch fields
cp -r 0.orig 0
# Initialize alpha
runApplication setFields
@ -33,5 +28,4 @@ runParallel $application
# Reconstruct
runApplication reconstructPar -noFunctionObjects
#------------------------------------------------------------------------------

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,265 @@
# vtk DataFile Version 2.0
sampleSurface
ASCII
DATASET POLYDATA
POINTS 127 double
0 0 0.08
-0.0562916 0.0325 0.05
0.0562916 -0.0325 0.05
0.0562916 0.0325 0.05
-0.0562916 -0.0325 0.05
0 0.065 0.05
0 -0.065 0.05
-0.0562916 0.0325 0.08
0.0562916 -0.0325 0.08
0.0562916 0.0325 0.08
-0.0562916 -0.0325 0.08
0 0.065 0.08
0 -0.065 0.08
-0.0995929 0.0575 0.05
0.0995929 -0.0575 0.05
0.0995929 0.0575 0.05
-0.0995929 -0.0575 0.05
0 0.115 0.05
0 -0.115 0.05
-0.0562916 0.0325 0.11
0.0562916 -0.0325 0.11
0.0562916 0.0325 0.11
-0.0562916 -0.0325 0.11
0 0.065 0.11
0 -0.065 0.11
0.0866025 0.05 0.08
0.05 0.0866025 0.08
-0.05 0.0866025 0.08
-0.0866025 0.05 0.08
-0.0866025 -0.05 0.08
-0.05 -0.0866025 0.08
0.05 -0.0866025 0.08
0.0866025 -0.05 0.08
0.0766044 0.0642788 0.08
0.0642788 0.0766044 0.08
-0.0642788 0.0766044 0.08
-0.0766044 0.0642788 0.08
-0.0766044 -0.0642788 0.08
-0.0642788 -0.0766044 0.08
0.0642788 -0.0766044 0.08
0.0766044 -0.0642788 0.08
0.1 -2.44929e-17 0.08
6.12323e-18 0.1 0.08
-0.1 1.22465e-17 0.08
-1.83697e-17 -0.1 0.08
0.0984808 0.0173648 0.08
0.0173648 0.0984808 0.08
-0.0173648 0.0984808 0.08
-0.0984808 0.0173648 0.08
-0.0984808 -0.0173648 0.08
-0.0173648 -0.0984808 0.08
0.0173648 -0.0984808 0.08
0.0984808 -0.0173648 0.08
0.0939693 0.034202 0.08
0.034202 0.0939693 0.08
-0.034202 0.0939693 0.08
-0.0939693 0.034202 0.08
-0.0939693 -0.034202 0.08
-0.034202 -0.0939693 0.08
0.034202 -0.0939693 0.08
0.0939693 -0.034202 0.08
-0.0995929 0.0575 0.08
0.0995929 -0.0575 0.08
0.0995929 0.0575 0.08
-0.0995929 -0.0575 0.08
0 0.115 0.08
0 -0.115 0.08
-0.0995929 0.0575 0.11
0.0995929 -0.0575 0.11
0.0995929 0.0575 0.11
-0.0995929 -0.0575 0.11
0 0.115 0.11
0 -0.115 0.11
-0.142894 0.0825 0.05
0.142894 -0.0825 0.05
0.142894 0.0825 0.05
-0.142894 -0.0825 0.05
0 0.165 0.05
0 -0.165 0.05
-0.142894 0.0825 0.08
0.142894 -0.0825 0.08
0.142894 0.0825 0.08
-0.142894 -0.0825 0.08
0 0.165 0.08
0 -0.165 0.08
-0.142894 0.0825 0.11
0.142894 -0.0825 0.11
0.142894 0.0825 0.11
-0.142894 -0.0825 0.11
0 0.165 0.11
0 -0.165 0.11
-0.0265165 0.025 0.363483
0.0265165 -0.025 0.363483
-0.0265165 0.1 0.363483
0.0265165 -0.1 0.363483
0 0.025 0.39
0 -0.025 0.39
0 0.1 0.39
0 -0.1 0.39
-0.0265165 0.175 0.363483
0.0265165 -0.175 0.363483
0.0265165 0.025 0.416517
-0.0265165 -0.025 0.416517
0 0.175 0.39
0 -0.175 0.39
0.0265165 0.1 0.416517
-0.0265165 -0.1 0.416517
0.0265165 0.175 0.416517
-0.0265165 -0.175 0.416517
0.025 0.0265165 0.703484
-0.025 -0.0265165 0.703484
0.1 0.0265165 0.703484
-0.1 -0.0265165 0.703484
0.175 0.0265165 0.703484
-0.175 -0.0265165 0.703484
0.025 0 0.73
-0.025 0 0.73
0.1 0 0.73
-0.1 0 0.73
0.175 0 0.73
-0.175 0 0.73
0.025 -0.0265165 0.756516
-0.025 0.0265165 0.756516
0.1 -0.0265165 0.756516
-0.1 0.0265165 0.756516
0.175 -0.0265165 0.756516
-0.175 0.0265165 0.756516
POLYGONS 116 464
3 45 0 41
3 53 0 45
3 25 0 53
3 33 0 25
3 34 0 33
3 26 0 34
3 54 0 26
3 46 0 54
3 42 0 46
3 47 0 42
3 55 0 47
3 27 0 55
3 35 0 27
3 36 0 35
3 28 0 36
3 56 0 28
3 48 0 56
3 43 0 48
3 49 0 43
3 57 0 49
3 29 0 57
3 37 0 29
3 38 0 37
3 30 0 38
3 58 0 30
3 50 0 58
3 44 0 50
3 51 0 44
3 59 0 51
3 31 0 59
3 39 0 31
3 40 0 39
3 32 0 40
3 60 0 32
3 52 0 60
3 41 0 52
3 77 83 17
3 83 65 17
3 17 65 5
3 65 11 5
3 83 89 65
3 89 71 65
3 65 71 11
3 71 23 11
3 6 12 18
3 12 66 18
3 18 66 78
3 66 84 78
3 12 24 66
3 24 72 66
3 66 72 84
3 72 90 84
3 73 79 13
3 79 61 13
3 13 61 1
3 61 7 1
3 79 85 61
3 85 67 61
3 61 67 7
3 67 19 7
3 2 8 14
3 8 62 14
3 14 62 74
3 62 80 74
3 8 20 62
3 20 68 62
3 62 68 80
3 68 86 80
3 75 81 15
3 81 63 15
3 15 63 3
3 63 9 3
3 81 87 63
3 87 69 63
3 63 69 9
3 69 21 9
3 4 10 16
3 10 64 16
3 16 64 76
3 64 82 76
3 10 22 64
3 22 70 64
3 64 70 82
3 70 88 82
3 99 103 93
3 103 97 93
3 93 97 91
3 97 95 91
3 103 107 97
3 107 105 97
3 97 105 95
3 105 101 95
3 92 96 94
3 96 98 94
3 94 98 100
3 98 104 100
3 96 102 98
3 102 106 98
3 98 106 104
3 106 108 104
3 121 123 115
3 123 117 115
3 115 117 109
3 117 111 109
3 123 125 117
3 125 119 117
3 117 119 111
3 119 113 111
3 126 124 120
3 124 118 120
3 120 118 114
3 118 112 114
3 124 122 118
3 122 116 118
3 118 116 112
3 116 110 112
CELL_DATA 116
FIELD attributes 1
zone 1 116 float
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 1 1 1 1
1 1 1 1 2 2 2 2 2 2
2 2 3 3 3 3 3 3 3 3
4 4 4 4 4 4 4 4 5 5
5 5 5 5 5 5 6 6 6 6
6 6 6 6 7 7 7 7 7 7
7 7 8 8 8 8 8 8 8 8
9 9 9 9 9 9 9 9 10 10
10 10 10 10 10 10

View File

@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
application foamyHexMesh;
application interFoam;
startFrom startTime;
@ -23,26 +23,34 @@ startTime 0;
stopAt endTime;
endTime 100;
endTime 5.0;
deltaT 1;
deltaT 1e-4;
writeControl timeStep;
writeControl adjustableRunTime;
writeInterval 100;
writeInterval 0.05;
purgeWrite 0;
writeFormat binary;
writePrecision 10;
writePrecision 6;
writeCompression uncompressed;
timeFormat general;
timePrecision 6;
timePrecision 10;
runTimeModifiable yes;
adjustTimeStep yes;
maxCo 1.5;
maxAlphaCo 1;
maxDeltaT 1;
// ************************************************************************* //

View File

@ -6,7 +6,6 @@ cd ${0%/*} || exit 1 # Run from this directory
rm -rf constant/extendedFeatureEdgeMesh > /dev/null 2>&1
rm -rf constant/triSurface/*.eMesh > /dev/null 2>&1
rm -rf 0 > /dev/null 2>&1
rm -rf MeshedSurface.obj > /dev/null 2>&1
cleanCase

View File

@ -11,5 +11,4 @@ runApplication foamyQuadMesh -overwrite
runApplication extrude2DMesh -overwrite polyMesh2D
runApplication checkMesh -allGeometry -allTopology -constant -noZero
#------------------------------------------------------------------------------

View File

@ -5,11 +5,9 @@ cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions
cp system/controlDict.rhoCentralFoam system/controlDict
cp -r 0.orig 0
runApplication decomposePar
runParallel rhoCentralFoam
runApplication reconstructPar
#------------------------------------------------------------------------------