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-16 23:10:09 +00:00
parent d66059aac1
commit d8954d4370
102 changed files with 485 additions and 786 deletions

View File

@ -19,6 +19,7 @@ FoamFile
// faces.
internalFacesOnly true;
fields true;
// Baffles to create.
baffles

View File

@ -1,9 +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

@ -8,7 +8,7 @@ runApplication blockMesh
runApplication topoSet -constant
# split the mesh to generate the ACMI coupled patches
# Split the mesh to generate the ACMI coupled patches
runApplication createBaffles -overwrite
cp -rf 0.orig 0
#------------------------------------------------------------------------------

View File

@ -0,0 +1,29 @@
/*--------------------------------*- 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 dictionary;
location "0.018/uniform";
object time;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
value 0.0180000000000000021;
name "0.018";
index 569;
deltaT 3.125e-05;
deltaT0 3.125e-05;
// ************************************************************************* //

View File

@ -8,7 +8,7 @@
FoamFile
{
version 2.0;
format ascii;
format binary;
class volVectorField;
location "0";
object U;
@ -21,32 +21,51 @@ internalField uniform (0 0 0);
boundaryField
{
//- Set patchGroups for constraint patches
#includeEtc "caseDicts/setConstraintTypes"
outerCylinder
{
type noSlip;
}
propellerTip
{
type movingWallVelocity;
value uniform (0 0 0);
}
propellerStem1
{
type movingWallVelocity;
value uniform (0 0 0);
}
propellerStem2
{
type movingWallVelocity;
value uniform (0 0 0);
}
propellerStem3
{
type movingWallVelocity;
value uniform (0 0 0);
}
AMI1
{
type cyclicAMI;
value uniform (0 0 0);
}
AMI2
{
type cyclicAMI;
value uniform (0 0 0);
}
inlet
{
type fixedValue;
value uniform (0 -5 0);
}
outlet
{
type inletOutlet;
inletValue uniform (0 0 0);
value uniform (0 0 0);
}
outerCylinder
{
type noSlip;
}
"propeller.*"
{
type movingWallVelocity;
value uniform (0 0 0);
}
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -8,7 +8,7 @@
FoamFile
{
version 2.0;
format ascii;
format binary;
class volScalarField;
location "0";
object nut;
@ -21,26 +21,51 @@ internalField uniform 0;
boundaryField
{
//- Set patchGroups for constraint patches
#includeEtc "caseDicts/setConstraintTypes"
outerCylinder
{
type nutkWallFunction;
value uniform 0;
}
propellerTip
{
type nutkWallFunction;
value uniform 0;
}
propellerStem1
{
type nutkWallFunction;
value uniform 0;
}
propellerStem2
{
type nutkWallFunction;
value uniform 0;
}
propellerStem3
{
type nutkWallFunction;
value uniform 0;
}
AMI1
{
type cyclicAMI;
value uniform 0;
}
AMI2
{
type cyclicAMI;
value uniform 0;
}
inlet
{
type calculated;
value uniform 0;
}
outlet
{
type calculated;
value uniform 0;
}
wall
{
type nutkWallFunction;
value uniform 0;
}
}

View File

@ -8,7 +8,7 @@
FoamFile
{
version 2.0;
format ascii;
format binary;
class volScalarField;
location "0";
object p;
@ -21,24 +21,45 @@ internalField uniform 0;
boundaryField
{
//- Set patchGroups for constraint patches
#includeEtc "caseDicts/setConstraintTypes"
outerCylinder
{
type zeroGradient;
}
propellerTip
{
type zeroGradient;
}
propellerStem1
{
type zeroGradient;
}
propellerStem2
{
type zeroGradient;
}
propellerStem3
{
type zeroGradient;
}
AMI1
{
type cyclicAMI;
value uniform 0;
}
AMI2
{
type cyclicAMI;
value uniform 0;
}
inlet
{
type zeroGradient;
}
outlet
{
type fixedValue;
value uniform 0;
}
wall
{
type zeroGradient;
}
}

View File

@ -11,7 +11,6 @@ cp $FOAM_TUTORIALS/resources/geometry/propellerTip.obj.gz constant/triSurface/
runApplication blockMesh
runApplication surfaceFeatureExtract
runApplication snappyHexMesh -overwrite
runApplication renumberMesh -overwrite
# Generate face/cell sets and zones
runApplication topoSet -dict system/createInletOutletSets.topoSetDict
@ -19,6 +18,8 @@ runApplication topoSet -dict system/createInletOutletSets.topoSetDict
# Create the inlet/outlet and AMI patches
runApplication createPatch -overwrite
runApplication renumberMesh -overwrite
# Test by running moveDynamicMes
#runApplication moveDynamicMesh -checkAMI

View File

@ -10,6 +10,7 @@ FoamFile
version 2.0;
format ascii;
class volVectorField;
location "0";
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -20,36 +21,40 @@ internalField uniform (1 0 0);
boundaryField
{
//- Set patchGroups for constraint patches
#includeEtc "caseDicts/setConstraintTypes"
inlet
{
type codedFixedValue;
name swirl;
code
#{
value uniform (1 0 0);
name swirl;
code #{
const vector axis(1, 0, 0);
vectorField v(2.0*this->patch().Cf() ^ axis);
v.replace(vector::X, 1.0);
operator==(v);
#};
value $internalField;
}
outlet
{
type inletOutlet;
inletValue $internalField;
value $internalField;
inletValue uniform (1 0 0);
value uniform (1 0 0);
}
side1
{
type cyclicAMI;
value uniform (1 0 0);
}
side2
{
type cyclicAMI;
value uniform (1 0 0);
}
walls
{
type noSlip;
}
}
// ************************************************************************* //

View File

@ -21,26 +21,32 @@ internalField uniform 1;
boundaryField
{
//- Set patchGroups for constraint patches
#includeEtc "caseDicts/setConstraintTypes"
inlet
{
type turbulentMixingLengthDissipationRateInlet;
mixingLength 0.5; // 0.5m - half channel height
value $internalField;
mixingLength 0.5;
value uniform 1;
}
outlet
{
type inletOutlet;
inletValue $internalField;
inletValue uniform 1;
value uniform 1;
}
side1
{
type cyclicAMI;
value uniform 1;
}
side2
{
type cyclicAMI;
value uniform 1;
}
walls
{
type epsilonWallFunction;
value $internalField;
value uniform 1;
}
}

View File

@ -21,22 +21,28 @@ internalField uniform 1;
boundaryField
{
//- Set patchGroups for constraint patches
#includeEtc "caseDicts/setConstraintTypes"
inlet
{
type turbulentIntensityKineticEnergyInlet;
intensity 0.05; // 5% turbulent intensity
value $internalField;
intensity 0.05;
value uniform 1;
}
outlet
{
type inletOutlet;
inletValue $internalField;
inletValue uniform 1;
value uniform 1;
}
side1
{
type cyclicAMI;
value uniform 1;
}
side2
{
type cyclicAMI;
value uniform 1;
}
walls
{
type kqRWallFunction;

View File

@ -10,6 +10,7 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object nuTilda;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -20,23 +21,29 @@ internalField uniform 0;
boundaryField
{
//- Set patchGroups for constraint patches
#includeEtc "caseDicts/setConstraintTypes"
inlet
{
type zeroGradient;
}
outlet
{
type zeroGradient;
}
side1
{
type cyclicAMI;
value uniform 0;
}
side2
{
type cyclicAMI;
value uniform 0;
}
walls
{
type zeroGradient;
}
}
// ************************************************************************* //

View File

@ -21,25 +21,30 @@ internalField uniform 0;
boundaryField
{
//- Set patchGroups for constraint patches
#includeEtc "caseDicts/setConstraintTypes"
inlet
{
type calculated;
value $internalField;
value uniform 0;
}
outlet
{
type calculated;
value $internalField;
value uniform 0;
}
side1
{
type cyclicAMI;
value uniform 0;
}
side2
{
type cyclicAMI;
value uniform 0;
}
walls
{
type nutkWallFunction;
value $internalField;
value uniform 0;
}
}

View File

@ -10,6 +10,7 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -20,24 +21,30 @@ internalField uniform 0;
boundaryField
{
//- Set patchGroups for constraint patches
#includeEtc "caseDicts/setConstraintTypes"
inlet
{
type zeroGradient;
}
outlet
{
type fixedValue;
value uniform 0;
}
side1
{
type cyclicAMI;
value uniform 0;
}
side2
{
type cyclicAMI;
value uniform 0;
}
walls
{
type zeroGradient;
}
}
// ************************************************************************* //

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
rm -f 0/cellDist
cleanCase

View File

@ -10,9 +10,7 @@ application=`getApplication`
runApplication blockMesh
runApplication topoSet
runApplication refineHexMesh c0 -overwrite
cp -r 0.orig 0
#runApplication $application
runApplication decomposePar -cellDist
runParallel $application