TUT: reorganise the scripts and dicts in turbulentInflow

This commit is contained in:
Kutalmis Bercin
2019-11-14 10:09:36 +00:00
committed by Andrew Heather
parent 87250cb770
commit 80681eeb2b
16 changed files with 231 additions and 187 deletions

View File

@ -60,16 +60,16 @@ boundary
type wall;
faces ((4 3 9 10));
}
sides_half0
left
{
type cyclic;
neighbourPatch sides_half1;
neighbourPatch right;
faces ((1 2 5 0)(2 3 4 5));
}
sides_half1
right
{
type cyclic;
neighbourPatch sides_half0;
neighbourPatch left;
faces ((6 11 8 7)(11 10 9 8));
}
inlet

View File

@ -23,7 +23,7 @@ startTime 0;
stopAt endTime;
endTime 85;
endTime END_TIME;
deltaT 4e-3;
@ -31,7 +31,7 @@ writeControl timeStep;
writeInterval 1250;
purgeWrite 0;
purgeWrite 3;
writeFormat ascii;
@ -47,11 +47,12 @@ runTimeModifiable false;
adjustTimeStep false;
// Allow 10% run-up before calculating mean
// Allow 10% of time for initialisation before sampling
timeStart #eval #{ 0.1 * ${/endTime} #};
functions
{
#include "fieldAverage"
#include "sampling"
}

View File

@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
numberOfSubdomains 6;
numberOfSubdomains 3;
method scotch;

View File

@ -0,0 +1,36 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1906 |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object fieldAverage;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
fieldAverage1
{
type fieldAverage;
libs (fieldFunctionObjects);
writeControl writeTime;
timeStart $/timeStart;
fields
(
U
{
mean on;
prime2Mean on;
base time;
}
);
}
// ************************************************************************* //

View File

@ -15,25 +15,6 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
fieldAverage1
{
type fieldAverage;
libs (fieldFunctionObjects);
writeControl writeTime;
timeStart $/timeStart;
fields
(
U
{
mean on;
prime2Mean on;
base time;
}
);
}
inletSampling
{
type sets;
@ -56,7 +37,7 @@ inletSampling
}
inletCell
{
type face;
type midPoint;
axis y;
start (0.062832 0 1.57);
end (0.062832 2 1.57);