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; version 2.0;
format ascii; format ascii;
class volScalarField; class volScalarField;
location "0";
object epsilon; object epsilon;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

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

View File

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

View File

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

View File

@ -1,8 +1,8 @@
#!/bin/sh #!/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 cleanCase0
blockMesh > log.blockMesh 2>&1
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -9,7 +9,7 @@ decompDict="-decomposeParDict system/decomposeParDict.20"
# unset decompDict # unset decompDict
# copy motorbike surface from resources directory # 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 surfaceFeatureExtract
runApplication blockMesh runApplication blockMesh

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -3,6 +3,6 @@ cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions . ${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 . ${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 runApplication decomposePar
runParallel $(getApplication) runParallel $(getApplication)
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------

View File

@ -16,6 +16,7 @@ FoamFile
transportModel Newtonian; 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; simulationType laminar;
// ************************************************************************* // // ************************************************************************* //

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -3,6 +3,6 @@ cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions . ${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 . ${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 runApplication decomposePar
runParallel $(getApplication) runParallel $(getApplication)
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------

View File

@ -16,6 +16,7 @@ FoamFile
transportModel Newtonian; 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; simulationType laminar;
// ************************************************************************* // // ************************************************************************* //

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -3,6 +3,6 @@ cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions . ${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 . ${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 runApplication decomposePar
runParallel $(getApplication) runParallel $(getApplication)
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------

View File

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

View File

@ -16,6 +16,7 @@ FoamFile
transportModel Newtonian; 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; simulationType laminar;
// ************************************************************************* // // ************************************************************************* //

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -3,6 +3,6 @@ cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions . ${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 . ${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 runApplication decomposePar
runParallel $(getApplication) runParallel $(getApplication)
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------

View File

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

View File

@ -16,6 +16,7 @@ FoamFile
transportModel Newtonian; 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 RAS
{ {
RASModel SpalartAllmaras; RASModel SpalartAllmaras;
turbulence on; turbulence on;
printCoeffs on; printCoeffs on;
} }
// ************************************************************************* // // ************************************************************************* //

View File

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

View File

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

View File

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

View File

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

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0; version 2.0;
format ascii; format ascii;
class volVectorField; class volVectorField;
location "0";
object U; object U;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -25,16 +24,19 @@ boundaryField
{ {
type empty; type empty;
} }
suction suction
{ {
type fixedValue; type fixedValue;
value uniform ( 0 0 0 ); value uniform ( 0 0 0 );
} }
pressure pressure
{ {
type fixedValue; type fixedValue;
value uniform ( 0 0 0 ); value uniform ( 0 0 0 );
} }
inlet inlet
{ {
type freestream; 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; version 2.0;
format ascii; format ascii;
class volScalarField; class volScalarField;
location "0";
object nuTilda; object nuTilda;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -25,16 +24,19 @@ boundaryField
{ {
type empty; type empty;
} }
suction suction
{ {
type fixedValue; type fixedValue;
value uniform 0; value uniform 0;
} }
pressure pressure
{ {
type fixedValue; type fixedValue;
value uniform 0; value uniform 0;
} }
inlet inlet
{ {
type inletOutlet; type inletOutlet;
@ -43,4 +45,5 @@ boundaryField
} }
} }
// ************************************************************************* // // ************************************************************************* //

View File

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

View File

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