TUT: cavity: add Allrun-parallel

The change helps to carry out and monitor
  parallelisation tests for FOs and topoSets.
This commit is contained in:
Kutalmis Bercin 2020-10-23 10:07:35 +01:00
parent da65e02707
commit 83b432c9d2
14 changed files with 59 additions and 46 deletions

View File

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

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object epsilon;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -21,16 +20,12 @@ internalField uniform 0.00754;
boundaryField
{
movingWall
{
type epsilonWallFunction;
value uniform 0.00754;
}
fixedWalls
"(movingWall|fixedWalls)"
{
type epsilonWallFunction;
value uniform 0.00754;
}
frontAndBack
{
type empty;

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object k;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -21,16 +20,12 @@ internalField uniform 0.00375;
boundaryField
{
movingWall
{
type kqRWallFunction;
value uniform 0.00375;
}
fixedWalls
"(movingWall|fixedWalls)"
{
type kqRWallFunction;
value uniform 0.00375;
}
frontAndBack
{
type empty;

View File

@ -20,12 +20,7 @@ internalField uniform 0;
boundaryField
{
movingWall
{
type zeroGradient;
}
fixedWalls
"(movingWall|fixedWalls)"
{
type zeroGradient;
}
@ -36,4 +31,5 @@ boundaryField
}
}
// ************************************************************************* //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object nut;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -21,16 +20,12 @@ internalField uniform 0;
boundaryField
{
movingWall
{
type nutkWallFunction;
value uniform 0;
}
fixedWalls
"(movingWall|fixedWalls)"
{
type nutkWallFunction;
value uniform 0;
}
frontAndBack
{
type empty;

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object omega;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -21,16 +20,12 @@ internalField uniform 22.4;
boundaryField
{
movingWall
{
type omegaWallFunction;
value uniform 22.4;
}
fixedWalls
"(movingWall|fixedWalls)"
{
type omegaWallFunction;
value uniform 22.4;
}
frontAndBack
{
type empty;

View File

@ -20,12 +20,7 @@ internalField uniform 0;
boundaryField
{
movingWall
{
type zeroGradient;
}
fixedWalls
"(movingWall|fixedWalls)"
{
type zeroGradient;
}
@ -36,4 +31,5 @@ boundaryField
}
}
// ************************************************************************* //

View File

@ -0,0 +1,16 @@
#!/bin/sh
cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
#------------------------------------------------------------------------------
runApplication blockMesh
restore0Dir
runApplication decomposePar
runParallel topoSet
runParallel $(getApplication)
#------------------------------------------------------------------------------

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
{
@ -26,4 +25,5 @@ RAS
printCoeffs on;
}
// ************************************************************************* //

View File

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

View File

@ -0,0 +1,27 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2006 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object decomposeParDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
numberOfSubdomains 4;
method hierarchical;
coeffs
{
n (2 2 1);
}
// ************************************************************************* //

View File

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

View File

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