Professional Documents
Culture Documents
200040075
Pratham Kingar
1 (a) 0/U
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / A nd | Version: 11
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
version 2.0;
format ascii;
class volVectorField;
object U;
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -1 0 0 0 0];
boundaryField
inlet
type fixedValue;
outlet
{
type zeroGradient;
obstacle
type noSlip;
frontAndBack
type empty;
symmetry
type symmetry;
// ************************************************************************* //
b) constant/transportProperties
// *************************************************************************
| ========= | |
| \\ / O peration | Version: 5 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
version 2.0;
format ascii;
class dictionary;
location "constant";
object transportProperties;
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 1e-05;
// ************************************************************************* //
c) constant/turbulanceProperties
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / O peration | Version: 5 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
version 2.0;
format ascii;
class dictionary;
location "constant";
object turbulenceProperties;
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
simulationType laminar;
// ************************************************************************* //
2) system/controlDict
========= |
\\ / A nd | Version: 11
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
format ascii;
class dictionary;
location "system";
object controlDict;
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
application simpleFoam;
startFrom startTime;
startTime 0;
stopAt endTime;
endTime 5000;
deltaT 1;
writeControl timeStep;
writeInterval 100;
purgeWrite 0;
writeFormat ascii;
writePrecision 6;
writeCompression off;
timeFormat general;
timePrecision 6;
runTimeModifiable true;
// ************************************************************************* //
3) system/blockMeshDict
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / A nd | Web: http://www.foam-extend.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
version 2.0;
format ascii;
class dictionary;
location "constant/polyMesh";
object blockMeshDict;
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
convertToMeters 0.01;
vertices
// pre-block
(0 0 0) // 0
(15 0 0) // 1
(0 20 0) // 2
(15 20 0) // 3
(0 0 1 ) // 4
(15 0 1 ) // 5
(0 20 1 ) // 6
(15 20 1 ) // 7
// obstacle blocks
(23.58578 8.58578 0 ) // 8
(23.58578 8.58578 1 ) // 9
(26.414 8.58578 0) // 10
(26.414 8.58578 1) // 11
(26.414 11.414 0 ) // 12
(26.414 11.414 1) // 13
(23.58578 11.414 0) // 14
(23.58578 11.414 1) // 15
(35 0 0 ) // 16
(35 0 1 ) //17
(35 20 0 ) // 18
(35 20 1 ) // 19
// post-block
(90 0 0 ) // 20
(90 20 0 ) // 21
( 90 0 1 ) // 22
( 90 20 1 ) // 23
);
blocks
// pre-block
// obstacle blocks
// post-block
);
edges
arc 8 10 (25 8 0 ) // change the numbers 10, 11, 12 etc as per your choice
arc 9 11 (25 8 1 )
arc 10 12 (27 10 0 )
arc 11 13 (27 10 1 )
arc 12 14 (25 12 0 )
arc 13 15 (25 12 1 )
arc 14 8 (23 10 0 )
arc 15 9 (23 10 1 )
);
boundary
inlet
type patch;
faces
(
(0 2 6 4 )
);
outlet
type patch;
faces
(20 21 23 22 )
);
symmetry
type symmetry;
faces
(2 6 7 3)
(3 7 19 18)
(18 19 23 21)
(0 4 5 1 )
(1 5 17 16)
(16 17 22 20)
);
obstacle
type wall;
faces
(8 14 15 9)
(8 9 11 10)
(10 12 13 11)
);
frontAndBack
{
type empty;
faces
( 4 5 7 6)
(1 16 10 8)
(5 17 11 9)
(1 8 14 3)
(5 9 15 7)
(14 12 18 3)
(15 13 19 7)
(10 16 18 12)
(11 17 19 13)
( 16 20 21 18)
( 17 22 23 19)
);
);
mergePatchPairs
);
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
4) MESH
5. Velocity and pressure contour plots
Pressure