assignment for the course cfd with opensource softwarehani/kurser/os_cfd_2012/... · assignment for...
TRANSCRIPT
Solver#1 icoFoam Solver: interFoam/laminar Solver: simpleFoam
Assignment for the courseCFD with OpenSource Software
Hamed Jamshidi
Fluid Dynamics Devision,Applied Mechanics Department,
Chalmers University of Technology,Gothenburg, Sweden
2012-09-09
Hamed Jamshidi Assignment 1 2012-09-09 1 / 11
Solver#1 icoFoam Solver: interFoam/laminar Solver: simpleFoam
case: cavity
Results of cavity Case
The flow over a cavity with 1 m/s velocity at the top is solved by icoFoamwhich solves the incompressible laminar Navier-Stokes equations using thePISO algorithm. The code is inherently transient, requiring an initialcondition and boundary conditions.
Mesh andVelocity field
Streamlines coloredby velocity mag.
Hamed Jamshidi Assignment 1 2012-09-09 2 / 11
Solver#1 icoFoam Solver: interFoam/laminar Solver: simpleFoam
case: cavityFine
Results of cavityFine Case
The same geometry as previous case is simulated using finer mesh. This couldbe done by changing the number of cells in the blockMeshDictfile in thefollowing part:blocks(hex (0 1 2 3 4 5 6 7)(20 20 1) simpleGrading (1 1 1));
Mesh andVelocity field
Streamlines coloredby velocity mag.
Scaled Arrowsof Velocity
Hamed Jamshidi Assignment 1 2012-09-09 3 / 11
Solver#1 icoFoam Solver: interFoam/laminar Solver: simpleFoam
case: cavityHighRe
Results of cavityHighRe Case
Simulation of high Reynold flow inside the same cavity could be done bydecreasing the kinematic viscosity. This could be done by changing in thetransportProperties file which is in the constant directory in the followingpart:nu nu [ 0 2 -1 0 0 0 0 ]0.001;
Mesh andVelocity field
Streamlines coloredby velocity mag.
Hamed Jamshidi Assignment 1 2012-09-09 4 / 11
Solver#1 icoFoam Solver: interFoam/laminar Solver: simpleFoam
case: cavityGrade
Results of cavityGrade Case
As seen in the following figure in this case the mesh is ‘graded. This could bedone by changing the blockMeshDict file in the following part:blocks(hex (0 1 2 3 4 5 6 7) (20 20 1) simpleGrading (2 2 1));
Mesh andVelocity field Streamlines colored
by velocity mag.Hamed Jamshidi Assignment 1 2012-09-09 5 / 11
Solver#1 icoFoam Solver: interFoam/laminar Solver: simpleFoam
case: cavityClipped
Results of cavityClipped Case
In this case we use mapFields utility with the mapFieldsDict as follow:patchMap ( lid movingWall );cuttingPatches ( fixedWalls );
Mesh andVelocity field
Streamlines coloredby velocity mag.
Non-scaled Arrowsof Velocity
Hamed Jamshidi Assignment 1 2012-09-09 6 / 11
Solver#1 icoFoam Solver: interFoam/laminar Solver: simpleFoam
case: damBreak
Results of damBreak Case
In this case we use setFields utility with the setFieldsDict that should bemodify for this problem
Mesh and Vorticity mag.
Mesh and Phases at t=1s
Hamed Jamshidi Assignment 1 2012-09-09 7 / 11
Solver#1 icoFoam Solver: interFoam/laminar Solver: simpleFoam
case: damBreakFine
Results of damBreakFine Case
To have a better simulation some times the number of cells should beincreased. Different charactristics of blockMesh utility could be controlledby blockMeshDict.
Phases Velocity Plot
Hamed Jamshidi Assignment 1 2012-09-09 8 / 11
Solver#1 icoFoam Solver: interFoam/laminar Solver: simpleFoam
pitzDaily
Results of pitzDaily Case
Hamed Jamshidi Assignment 1 2012-09-09 9 / 11
Solver#1 icoFoam Solver: interFoam/laminar Solver: simpleFoam
MirrorMesh
mirrorMesh Utility Usage
This utility mirrors a mesh around a given plane specified in themirrorMeshDic. This plane could be defined in 3 different ways as follow:1. planeEquation2. embeddedPoints3. pointAndNormal
One of these should be defined.For example by defining a plane asplaneType pointAndNormal;pointAndNormalDict{basePoint (0 0 0);normalVector (0 1 0);}For cavity case the resulting mesh would be like the figures in next page
Hamed Jamshidi Assignment 1 2012-09-09 10 / 11
Solver#1 icoFoam Solver: interFoam/laminar Solver: simpleFoam
MirrorMesh
Mesh Velocity Field
Hamed Jamshidi Assignment 1 2012-09-09 11 / 11