TUT: incompressible: clean up tutorials

This commit is contained in:
Kutalmis Bercin 2021-05-16 09:16:22 +01:00 committed by Andrew Heather
parent 3395cba40e
commit e81cf778a1
1509 changed files with 7811 additions and 418994 deletions

View File

@ -43,4 +43,5 @@ boundaryField
}
}
// ************************************************************************* //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object epsilon;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object k;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object nut;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -41,4 +41,5 @@ boundaryField
}
}
// ************************************************************************* //

View File

@ -1,8 +1,8 @@
#!/bin/sh
cd "${0%/*}" || exit # Run from this directory
cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions
#------------------------------------------------------------------------------
m4 system/blockMeshDict.m4 > system/blockMeshDict
blockMesh > log.blockMesh 2>&1
cleanCase0
#------------------------------------------------------------------------------

View File

@ -3,7 +3,11 @@ cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
#------------------------------------------------------------------------------
./makeMesh
restore0Dir
m4 system/blockMeshDict.m4 > system/blockMeshDict
blockMesh > log.blockMesh 2>&1
runApplication $(getApplication)
#------------------------------------------------------------------------------

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "constant";
object SRFProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "constant";
object transportProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -19,4 +18,5 @@ transportModel Newtonian;
nu 1e-05;
// ************************************************************************* //

View File

@ -10,12 +10,11 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "constant";
object turbulenceProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
simulationType RAS;
simulationType RAS;
RAS
{

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "system";
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -49,4 +48,5 @@ adjustTimeStep no;
maxCo 0.5;
// ************************************************************************* //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "system";
object fvSchemes;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -28,9 +27,13 @@ gradSchemes
divSchemes
{
default none;
div(phi,Urel) Gauss limitedLinearV 1;
div(phi,k) Gauss limitedLinear 1;
div(phi,epsilon) Gauss limitedLinear 1;
turbulence Gauss limitedLinear 1;
div(phi,k) $turbulence;
div(phi,epsilon) $turbulence;
div((nuEff*dev2(T(grad(Urel))))) Gauss linear;
}

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "system";
object fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volVectorField;
location "0";
object Urel;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -28,15 +27,18 @@ boundaryField
relative no;
value uniform (0 0 0);
}
outlet
{
type pressureInletOutletVelocity;
value $internalField;
}
innerWall
{
type noSlip;
}
outerWall
{
type SRFVelocity;
@ -44,10 +46,12 @@ boundaryField
relative no;
value uniform (0 0 0);
}
cyclic_half0
{
type cyclic;
}
cyclic_half1
{
type cyclic;

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object epsilon;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -26,25 +25,30 @@ boundaryField
type fixedValue;
value uniform 14.855;
}
outlet
{
type inletOutlet;
inletValue uniform 14.855;
}
innerWall
{
type epsilonWallFunction;
value uniform 14.855;
}
outerWall
{
type epsilonWallFunction;
value uniform 14.855;
}
cyclic_half0
{
type cyclic;
}
cyclic_half1
{
type cyclic;

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object k;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -26,26 +25,31 @@ boundaryField
type fixedValue;
value uniform 0.375;
}
outlet
{
type inletOutlet;
inletValue uniform 0.375;
}
innerWall
{
type kqRWallFunction;
value uniform 0.375;
}
outerWall
{
type kqRWallFunction;
value uniform 0.375;
}
cyclic_half0
{
type cyclic;
value uniform 0.375;
}
cyclic_half1
{
type cyclic;

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object nut;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -26,26 +25,31 @@ boundaryField
type calculated;
value uniform 0;
}
outlet
{
type calculated;
value uniform 0;
}
innerWall
{
type nutkWallFunction;
value uniform 0;
}
outerWall
{
type nutkWallFunction;
value uniform 0;
}
cyclic_half0
{
type cyclic;
value uniform 0;
}
cyclic_half1
{
type cyclic;

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object omega;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -26,26 +25,31 @@ boundaryField
type fixedValue;
value uniform 3.5;
}
outlet
{
type inletOutlet;
inletValue uniform 3.5;
}
innerWall
{
type omegaWallFunction;
value uniform 3.5;
}
outerWall
{
type omegaWallFunction;
value uniform 3.5;
}
cyclic_half0
{
type cyclic;
value uniform 3.5;
}
cyclic_half1
{
type cyclic;

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -25,23 +24,28 @@ boundaryField
{
type zeroGradient;
}
outlet
{
type fixedValue;
value uniform 0;
}
innerWall
{
type zeroGradient;
}
outerWall
{
type zeroGradient;
}
cyclic_half0
{
type cyclic;
}
cyclic_half1
{
type cyclic;

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "constant";
object SRFProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "constant";
object transportProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -19,4 +18,5 @@ transportModel Newtonian;
nu 1.5e-05;
// ************************************************************************* //

View File

@ -10,12 +10,11 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "constant";
object turbulenceProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
simulationType RAS;
simulationType RAS;
RAS
{

View File

@ -12,7 +12,6 @@ FoamFile
class dictionary;
object blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
scale 0.1;
@ -153,4 +152,5 @@ mergeMatchPairs
(
);
// ************************************************************************* //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "system";
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "system";
object fvSchemes;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -29,13 +28,17 @@ gradSchemes
divSchemes
{
default none;
div(phi,Urel) bounded Gauss linearUpwind limited;
div(phi,k) bounded Gauss upwind;
div(phi,epsilon) bounded Gauss upwind;
div(phi,omega) bounded Gauss upwind;
div(phi,R) bounded Gauss upwind;
turbulence bounded Gauss upwind;
div(phi,k) $turbulence;
div(phi,epsilon) $turbulence;
div(phi,omega) $turbulence;
div(phi,nuTilda) $turbulence;
div(phi,R) $turbulence;
div(R) Gauss linear;
div(phi,nuTilda) bounded Gauss upwind;
div((nuEff*dev2(T(grad(Urel))))) Gauss linear;
}
@ -56,7 +59,7 @@ snGradSchemes
wallDist
{
method meshWave;
method meshWave;
}

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class dictionary;
location "system";
object fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volVectorField;
location "0";
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volVectorField;
location "0";
object Ua;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object nuTilda;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object nuTilda;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object nut;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -48,4 +48,5 @@ boundaryField
#include "include/frontBackUpperPatches"
}
// ************************************************************************* //

View File

@ -48,4 +48,5 @@ boundaryField
#include "include/frontBackUpperPatches"
}
// ************************************************************************* //

View File

@ -9,7 +9,7 @@ decompDict="-decomposeParDict system/decomposeParDict.20"
# unset decompDict
# copy motorbike surface from resources directory
\cp $FOAM_TUTORIALS/resources/geometry/motorBike.obj.gz constant/triSurface/
cp -f "$FOAM_TUTORIALS"/resources/geometry/motorBike.obj.gz constant/triSurface/
runApplication surfaceFeatureExtract
runApplication blockMesh

View File

@ -18,4 +18,5 @@ transportModel Newtonian;
nu 1.5e-05;
// ************************************************************************* //

View File

@ -14,7 +14,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
simulationType RAS;
simulationType RAS;
RAS
{
@ -25,4 +25,5 @@ RAS
printCoeffs on;
}
// ************************************************************************* //

View File

@ -12,7 +12,6 @@ FoamFile
class dictionary;
object blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
scale 1;
@ -83,4 +82,5 @@ boundary
}
);
// ************************************************************************* //

View File

@ -16,7 +16,7 @@ FoamFile
solvers
{
"p|pa"
"(p|pa)"
{
solver GAMG;
smoother GaussSeidel;
@ -37,7 +37,7 @@ solvers
$p;
}
"U|Ua|nuTilda|nuaTilda|yWall|da"
"(U|Ua|nuTilda|nuaTilda|yWall|da)"
{
solver smoothSolver;
smoother GaussSeidel;
@ -75,4 +75,5 @@ cache
grad(U);
}
// ************************************************************************* //

View File

@ -120,4 +120,5 @@ optimisation
}
}
// ************************************************************************* //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volVectorField;
location "0";
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -25,16 +24,19 @@ boundaryField
{
type empty;
}
suction
{
type fixedValue;
value uniform ( 0 0 0 );
}
pressure
{
type fixedValue;
value uniform ( 0 0 0 );
}
inlet
{
type freestream;

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volVectorField;
location "0";
object Ua;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -25,16 +24,19 @@ boundaryField
{
type empty;
}
suction
{
type adjointWallVelocity;
value uniform ( 0 0 0 );
}
pressure
{
type adjointWallVelocity;
value uniform ( 0 0 0 );
}
inlet
{
type adjointFarFieldVelocity;

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -25,14 +24,17 @@ boundaryField
{
type empty;
}
suction
{
type zeroGradient;
}
pressure
{
type zeroGradient;
}
inlet
{
type outletInlet;

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object pa;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -25,14 +24,17 @@ boundaryField
{
type empty;
}
suction
{
type zeroGradient;
}
pressure
{
type zeroGradient;
}
inlet
{
type adjointFarFieldPressure;

View File

@ -3,6 +3,6 @@ cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions
#------------------------------------------------------------------------------
cleanCase
cleanCase0
#------------------------------------------------------------------------------

View File

@ -3,10 +3,14 @@ cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
#------------------------------------------------------------------------------
resourcesDir=$FOAM_TUTORIALS/incompressible/adjointOptimisationFoam/resources
resourcesDir="$FOAM_TUTORIALS"/incompressible/adjointOptimisationFoam/resources
cp -rf "$resourcesDir"/meshes/naca0012/polyMesh/ constant/
restore0Dir
\cp -r $resourcesDir/meshes/naca0012/polyMesh constant
runApplication decomposePar
runParallel $(getApplication)
#------------------------------------------------------------------------------

View File

@ -16,6 +16,7 @@ FoamFile
transportModel Newtonian;
nu nu [ 0 2 -1 0 0 0 0 ] 6.e-03;
nu 6.e-03;
// ************************************************************************* //

View File

@ -16,4 +16,5 @@ FoamFile
simulationType laminar;
// ************************************************************************* //

View File

@ -44,4 +44,5 @@ timePrecision 6;
runTimeModifiable yes;
// ************************************************************************* //

View File

@ -16,11 +16,12 @@ FoamFile
numberOfSubdomains 4;
method hierarchical;
method hierarchical;
coeffs
{
n (2 2 1);
n (2 2 1);
}
// ************************************************************************* //

View File

@ -21,21 +21,23 @@ SIMPLE
solvers
{
"p.*|pa.*"
"(p|pa).*"
{
solver PCG;
preconditioner DIC;
tolerance 1e-9;
relTol 0.01;
};
"m|ma"
"(m|ma)"
{
solver PCG;
preconditioner DIC;
tolerance 1e-9;
relTol 0.01;
};
"U.*|Ua.*"
"(U|Ua).*"
{
solver PBiCGStab;
preconditioner DILU;
@ -58,4 +60,5 @@ relaxationFactors
}
}
// ************************************************************************* //

View File

@ -102,4 +102,5 @@ optimisation
}
}
// ************************************************************************* //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volVectorField;
location "0";
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -25,16 +24,19 @@ boundaryField
{
type empty;
}
suction
{
type fixedValue;
value uniform ( 0 0 0 );
}
pressure
{
type fixedValue;
value uniform ( 0 0 0 );
}
inlet
{
type freestream;

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volVectorField;
location "0";
object Ua;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -25,16 +24,19 @@ boundaryField
{
type empty;
}
suction
{
type adjointWallVelocity;
value uniform ( 0 0 0 );
}
pressure
{
type adjointWallVelocity;
value uniform ( 0 0 0 );
}
inlet
{
type adjointFarFieldVelocity;

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -25,14 +24,17 @@ boundaryField
{
type empty;
}
suction
{
type zeroGradient;
}
pressure
{
type zeroGradient;
}
inlet
{
type outletInlet;

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object pa;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -25,14 +24,17 @@ boundaryField
{
type empty;
}
suction
{
type zeroGradient;
}
pressure
{
type zeroGradient;
}
inlet
{
type adjointFarFieldPressure;

View File

@ -3,6 +3,6 @@ cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions
#------------------------------------------------------------------------------
cleanCase
cleanCase0
#------------------------------------------------------------------------------

View File

@ -3,10 +3,14 @@ cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
#------------------------------------------------------------------------------
resourcesDir=$FOAM_TUTORIALS/incompressible/adjointOptimisationFoam/resources
resourcesDir="$FOAM_TUTORIALS"/incompressible/adjointOptimisationFoam/resources
cp -rf "$resourcesDir"/meshes/naca0012/polyMesh/ constant/
restore0Dir
\cp -r $resourcesDir/meshes/naca0012/polyMesh constant
runApplication decomposePar
runParallel $(getApplication)
#------------------------------------------------------------------------------

View File

@ -16,6 +16,7 @@ FoamFile
transportModel Newtonian;
nu nu [ 0 2 -1 0 0 0 0 ] 6.e-03;
nu 6.e-03;
// ************************************************************************* //

View File

@ -16,4 +16,5 @@ FoamFile
simulationType laminar;
// ************************************************************************* //

View File

@ -44,4 +44,5 @@ timePrecision 6;
runTimeModifiable yes;
// ************************************************************************* //

View File

@ -16,11 +16,12 @@ FoamFile
numberOfSubdomains 4;
method hierarchical;
method hierarchical;
coeffs
{
n (2 2 1);
n (2 2 1);
}
// ************************************************************************* //

View File

@ -21,21 +21,23 @@ SIMPLE
solvers
{
"p.*|pa.*"
"(p|pa).*"
{
solver PCG;
preconditioner DIC;
tolerance 1e-9;
relTol 0.01;
};
"m|ma"
"(m|ma)"
{
solver PCG;
preconditioner DIC;
tolerance 1e-9;
relTol 0.01;
};
"U.*|Ua.*"
"(U|Ua).*"
{
solver PBiCGStab;
preconditioner DILU;
@ -58,4 +60,5 @@ relaxationFactors
}
}
// ************************************************************************* //

View File

@ -102,4 +102,5 @@ optimisation
}
}
// ************************************************************************* //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volVectorField;
location "0";
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -25,16 +24,19 @@ boundaryField
{
type empty;
}
suction
{
type fixedValue;
value uniform ( 0 0 0 );
}
pressure
{
type fixedValue;
value uniform ( 0 0 0 );
}
inlet
{
type freestream;

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volVectorField;
location "0";
object Ua;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -25,16 +24,19 @@ boundaryField
{
type empty;
}
suction
{
type adjointWallVelocity;
value uniform ( 0 0 0 );
}
pressure
{
type adjointWallVelocity;
value uniform ( 0 0 0 );
}
inlet
{
type adjointFarFieldVelocity;

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -25,14 +24,17 @@ boundaryField
{
type empty;
}
suction
{
type zeroGradient;
}
pressure
{
type zeroGradient;
}
inlet
{
type outletInlet;

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object pa;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -25,14 +24,17 @@ boundaryField
{
type empty;
}
suction
{
type zeroGradient;
}
pressure
{
type zeroGradient;
}
inlet
{
type adjointFarFieldPressure;

View File

@ -3,6 +3,6 @@ cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions
#------------------------------------------------------------------------------
cleanCase
cleanCase0
#------------------------------------------------------------------------------

View File

@ -3,10 +3,14 @@ cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
#------------------------------------------------------------------------------
resourcesDir=$FOAM_TUTORIALS/incompressible/adjointOptimisationFoam/resources
resourcesDir="$FOAM_TUTORIALS"/incompressible/adjointOptimisationFoam/resources
cp -rf "$resourcesDir"/meshes/naca0012/polyMesh/ constant/
restore0Dir
\cp -r $resourcesDir/meshes/naca0012/polyMesh constant
runApplication decomposePar
runParallel $(getApplication)
#------------------------------------------------------------------------------

View File

@ -19,4 +19,6 @@ adjointRASModel adjointLaminar;
adjointTurbulence on;
printCoeffs off;
// ************************************************************************* //

View File

@ -16,6 +16,7 @@ FoamFile
transportModel Newtonian;
nu nu [ 0 2 -1 0 0 0 0 ] 6.e-03;
nu 6.e-03;
// ************************************************************************* //

View File

@ -16,4 +16,5 @@ FoamFile
simulationType laminar;
// ************************************************************************* //

View File

@ -44,4 +44,5 @@ timePrecision 6;
runTimeModifiable yes;
// ************************************************************************* //

View File

@ -16,11 +16,12 @@ FoamFile
numberOfSubdomains 4;
method hierarchical;
method hierarchical;
coeffs
{
n (2 2 1);
n (2 2 1);
}
// ************************************************************************* //

View File

@ -21,21 +21,23 @@ SIMPLE
solvers
{
"p.*|pa.*"
"(p|pa).*"
{
solver PCG;
preconditioner DIC;
tolerance 1e-9;
relTol 0.01;
};
"m|ma"
"(m|ma)"
{
solver PCG;
preconditioner DIC;
tolerance 1e-9;
relTol 0.01;
};
"U.*|Ua.*"
"(U|Ua).*"
{
solver PBiCGStab;
preconditioner DILU;
@ -58,4 +60,5 @@ relaxationFactors
}
}
// ************************************************************************* //

View File

@ -104,4 +104,5 @@ optimisation
}
}
// ************************************************************************* //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volVectorField;
location "0";
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -25,16 +24,19 @@ boundaryField
{
type empty;
}
suction
{
type fixedValue;
value uniform ( 0 0 0 );
}
pressure
{
type fixedValue;
value uniform ( 0 0 0 );
}
inlet
{
type freestream;

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volVectorField;
location "0";
object Ua;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -25,16 +24,19 @@ boundaryField
{
type empty;
}
suction
{
type adjointWallVelocity;
value uniform ( 0 0 0 );
}
pressure
{
type adjointWallVelocity;
value uniform ( 0 0 0 );
}
inlet
{
type adjointFarFieldVelocity;

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object nuTilda;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -25,16 +24,19 @@ boundaryField
{
type empty;
}
suction
{
type fixedValue;
value uniform 0;
}
pressure
{
type fixedValue;
value uniform 0;
}
inlet
{
type inletOutlet;
@ -43,4 +45,5 @@ boundaryField
}
}
// ************************************************************************* //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object nuaTilda;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -25,16 +24,19 @@ boundaryField
{
type empty;
}
suction
{
type fixedValue;
value uniform 0;
}
pressure
{
type fixedValue;
value uniform 0;
}
inlet
{
type adjointFarFieldNuaTilda;
@ -42,4 +44,5 @@ boundaryField
}
}
// ************************************************************************* //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object nut;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -25,16 +24,19 @@ boundaryField
{
type empty;
}
suction
{
type nutUSpaldingWallFunction;
value uniform 0;
}
pressure
{
type nutUSpaldingWallFunction;
value uniform 0;
}
inlet
{
type calculated;

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -25,14 +24,17 @@ boundaryField
{
type empty;
}
suction
{
type zeroGradient;
}
pressure
{
type zeroGradient;
}
inlet
{
type outletInlet;

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object pa;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -25,14 +24,17 @@ boundaryField
{
type empty;
}
suction
{
type zeroGradient;
}
pressure
{
type zeroGradient;
}
inlet
{
type adjointFarFieldPressure;

View File

@ -3,6 +3,6 @@ cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions
#------------------------------------------------------------------------------
cleanCase
cleanCase0
#------------------------------------------------------------------------------

View File

@ -3,10 +3,14 @@ cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
#------------------------------------------------------------------------------
resourcesDir=$FOAM_TUTORIALS/incompressible/adjointOptimisationFoam/resources
resourcesDir="$FOAM_TUTORIALS"/incompressible/adjointOptimisationFoam/resources
cp -rf "$resourcesDir"/meshes/naca0012/polyMesh/ constant/
restore0Dir
\cp -r $resourcesDir/meshes/naca0012/polyMesh constant
runApplication decomposePar
runParallel $(getApplication)
#------------------------------------------------------------------------------

View File

@ -25,4 +25,5 @@ adjointSpalartAllmarasCoeffs
adjointTurbulence on;
// ************************************************************************* //

View File

@ -16,6 +16,7 @@ FoamFile
transportModel Newtonian;
nu nu [ 0 2 -1 0 0 0 0 ] 1.e-05;
nu 1.e-05;
// ************************************************************************* //

View File

@ -14,15 +14,16 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
simulationType RAS;
simulationType RAS;
RAS
{
RASModel SpalartAllmaras;
RASModel SpalartAllmaras;
turbulence on;
turbulence on;
printCoeffs on;
printCoeffs on;
}
// ************************************************************************* //

View File

@ -44,4 +44,5 @@ timePrecision 6;
runTimeModifiable yes;
// ************************************************************************* //

View File

@ -16,11 +16,12 @@ FoamFile
numberOfSubdomains 4;
method hierarchical;
method hierarchical;
coeffs
{
n (2 2 1);
n (2 2 1);
}
// ************************************************************************* //

View File

@ -21,21 +21,23 @@ SIMPLE
solvers
{
"p.*|pa.*"
"(p|pa).*"
{
solver PCG;
preconditioner DIC;
tolerance 1e-9;
relTol 0.01;
};
"m|ma"
"(m|ma)"
{
solver PCG;
preconditioner DIC;
tolerance 1e-9;
relTol 0.01;
};
"U.*|Ua.*|nuTilda.*|nuaTilda.*|yWall|da"
"(U.*|Ua.*|nuTilda.*|nuaTilda.*|yWall|da)"
{
solver PBiCGStab;
preconditioner DILU;
@ -62,4 +64,5 @@ relaxationFactors
}
}
// ************************************************************************* //

View File

@ -128,4 +128,5 @@ optimisation
}
}
// ************************************************************************* //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volVectorField;
location "0";
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -25,16 +24,19 @@ boundaryField
{
type empty;
}
suction
{
type fixedValue;
value uniform ( 0 0 0 );
}
pressure
{
type fixedValue;
value uniform ( 0 0 0 );
}
inlet
{
type freestream;

View File

@ -0,0 +1,48 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2012 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volVectorField;
object Ua;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 0 1 -1 0 0 0 0 ];
internalField uniform ( 0 0 0 );
boundaryField
{
frontBack
{
type empty;
}
suction
{
type adjointWallVelocity;
value uniform ( 0 0 0 );
}
pressure
{
type adjointWallVelocity;
value uniform ( 0 0 0 );
}
inlet
{
type adjointFarFieldVelocity;
value uniform ( 0 0 0 );
}
}
// ************************************************************************* //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object nuTilda;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -25,16 +24,19 @@ boundaryField
{
type empty;
}
suction
{
type fixedValue;
value uniform 0;
}
pressure
{
type fixedValue;
value uniform 0;
}
inlet
{
type inletOutlet;
@ -43,4 +45,5 @@ boundaryField
}
}
// ************************************************************************* //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object nuaTilda;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -25,16 +24,19 @@ boundaryField
{
type empty;
}
suction
{
type fixedValue;
value uniform 0;
}
pressure
{
type fixedValue;
value uniform 0;
}
inlet
{
type adjointFarFieldNuaTilda;
@ -42,4 +44,5 @@ boundaryField
}
}
// ************************************************************************* //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object nut;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -25,16 +24,19 @@ boundaryField
{
type empty;
}
suction
{
type nutUSpaldingWallFunction;
value uniform 0;
}
pressure
{
type nutUSpaldingWallFunction;
value uniform 0;
}
inlet
{
type calculated;

View File

@ -0,0 +1,47 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2012 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 0 2 -2 0 0 0 0 ];
internalField uniform 0;
boundaryField
{
frontBack
{
type empty;
}
suction
{
type zeroGradient;
}
pressure
{
type zeroGradient;
}
inlet
{
type outletInlet;
outletValue uniform 0;
value uniform 0;
}
}
// ************************************************************************* //

View File

@ -0,0 +1,46 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2012 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object pa;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 0 2 -2 0 0 0 0 ];
internalField uniform 0;
boundaryField
{
frontBack
{
type empty;
}
suction
{
type zeroGradient;
}
pressure
{
type zeroGradient;
}
inlet
{
type adjointFarFieldPressure;
value uniform 0;
}
}
// ************************************************************************* //

View File

@ -1,46 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2012 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volVectorField;
location "0";
object Ua;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [ 0 1 -1 0 0 0 0 ];
internalField uniform ( 0 0 0 );
boundaryField
{
frontBack
{
type empty;
}
suction
{
type adjointWallVelocity;
value uniform ( 0 0 0 );
}
pressure
{
type adjointWallVelocity;
value uniform ( 0 0 0 );
}
inlet
{
type adjointFarFieldVelocity;
value uniform ( 0 0 0 );
}
}
// ************************************************************************* //

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