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

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

View File

@ -24,26 +24,26 @@ boundaryField
leftWall
{
type epsilonWallFunction;
value uniform 0.1;
Cmu 0.09;
kappa 0.41;
E 9.8;
value uniform 0.1;
}
rightWall
{
type epsilonWallFunction;
value uniform 0.1;
Cmu 0.09;
kappa 0.41;
E 9.8;
value uniform 0.1;
}
lowerWall
{
type epsilonWallFunction;
value uniform 0.1;
Cmu 0.09;
kappa 0.41;
E 9.8;
value uniform 0.1;
}
atmosphere
{

View File

@ -42,7 +42,11 @@ boundaryField
atmosphere
{
type totalPressure;
rho rho;
psi none;
gamma 1;
p0 uniform 0;
value uniform 0;
}
defaultFaces
{
@ -52,20 +56,21 @@ boundaryField
{
type porousBafflePressure;
patchType cyclic;
jump uniform 0;
value uniform 0;
D 1000;
I 500;
length 0.15;
jump uniform 0;
value uniform 0;
}
porous_half1
{
type porousBafflePressure;
patchType cyclic;
value uniform 0;
D 1000;
I 500;
length 0.15;
jump uniform 0;
value uniform 0;
}
}

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
#------------------------------------------------------------------------------

View File

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

View File

@ -8,7 +8,7 @@
FoamFile
{
version 2.0;
format ascii;
format binary;
class volVectorField;
location "0";
object U;
@ -21,38 +21,59 @@ internalField uniform (0 0 0);
boundaryField
{
//- Set patchGroups for constraint patches
#includeEtc "caseDicts/setConstraintTypes"
inlet
{
type uniformFixedValue;
uniformValue table
(
(0 (0 0 0))
(0.01 (0 -15 0))
(100 (0 -15 0))
);
value $internalField;
}
outlet
{
type pressureInletOutletVelocity;
inletValue uniform (0 0 0);
value uniform (0 0 0);
}
outerCylinder
{
type noSlip;
}
"propeller.*"
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 uniformFixedValue;
uniformValue table
3
(
(0 (0 0 0))
(0.01 (0 -15 0))
(100 (0 -15 0))
)
;
value uniform (0 0 0);
}
outlet
{
type pressureInletOutletVelocity;
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,19 +8,17 @@ cd ${0%/*} || exit 1 # Run from this directory
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
# Create the inlet/outlet and AMI patches
runApplication createPatch -overwrite
runApplication renumberMesh -overwrite
# Test by running moveDynamicMesh
#runApplication moveDynamicMesh -checkAMI