assignment 1 - chalmershani/kurser/os_cfd_2012/... · icofoaminterfoamsimplefoamutility icofoam |...
TRANSCRIPT
icoFoam interFoam simpleFoam Utility
Assignment 1
Florian Vesting
2012-09-07
Florian Vesting Assignment 1 2012-09-07 1 / 11
icoFoam interFoam simpleFoam Utility
icoFoam — Cavity
Florian Vesting Assignment 1 2012-09-07 2 / 11
icoFoam interFoam simpleFoam Utility
icoFoam — Cavity
Utilies: mapFields, blockMesh, sample
The first two figures show the differences of pressure and velocity between the coarse andfine grid along a horizontal line
The graphs were created using the sample utility and plotting with Gnuplot
The third figure shows the to cases directly in comparison within one window.
text was included in the window to distinguish the cases
Florian Vesting Assignment 1 2012-09-07 3 / 11
icoFoam interFoam simpleFoam Utility
icoFoam — Cavity Clipped
To the left, the initial solution from the unclipped cavity case
To the right, the solution for the changed geometry
Both figures are created using filter cellCenters and glyph
Utilies: mapFields, blockMesh
Florian Vesting Assignment 1 2012-09-07 4 / 11
icoFoam interFoam simpleFoam Utility
icoFoam — Cavity Grade
To the left, showing the generated graded grid
To the right, applying the meshQuality filter with themaximumEdgeRatio
Utilies: mapFields -consistent, blockMesh
Florian Vesting Assignment 1 2012-09-07 5 / 11
icoFoam interFoam simpleFoam Utility
icoFoam — Cavity High Re
Pressure with pressure contours (left), using contour on a slice
Streamlines using streamTracer colored with the vorticity
Utilies:
Florian Vesting Assignment 1 2012-09-07 6 / 11
icoFoam interFoam simpleFoam Utility
InterFoam — damBreak
Dambreak at the initialtime step usingHSV Color Space
Dambreak at the last timestep of 2 seconds.
Time visualization withAnnotateTime, changingthe format to %3.2f
Florian Vesting Assignment 1 2012-09-07 7 / 11
icoFoam interFoam simpleFoam Utility
InterFoam — damBreakFine
Decomposition of the domainfor parallel computations.
clip filter in the foregroundshowing the scalar value ofalpha1 at different time steps.
Florian Vesting Assignment 1 2012-09-07 8 / 11
icoFoam interFoam simpleFoam Utility
InterFoam — damBreak comparison
Direct comparison between the fine (left) and coarse (right) grid.
Both solutions were loaded in paraView and the coarse grid was translated.
Utilies for Dambreak: blockMesh, setFieldsUtilies for DambreakFine: blockMesh, setFields and desomposePar
Florian Vesting Assignment 1 2012-09-07 9 / 11
icoFoam interFoam simpleFoam Utility
SimpleFoam — pitzDaily
The movie shows the development ofthe kinetic energy k over thedifferent iterations.To show the iteration no. I usedAnnotateTime. The animated gif iscreated with convert command.
Streamlines at the convergediteration 765.The streamlines are created withstreamTracer. However, to get thecontour of the geometry behind thestreamlines I created a silce andcolored it with the solid color.
Utilies: blockMesh
Florian Vesting Assignment 1 2012-09-07 10 / 11
icoFoam interFoam simpleFoam Utility
Utility — Mesh manipulation
http://www.openfoam.com/features/mesh-manipulation.phphttp://openfoamwiki.net/index.php/RotateMesh
Rotates the mesh and fields from thedirecion n1 to the direction n2
On the damBreak example: rotate themesh-axis from parallel to X, to adiagonal orientation
rotateMesh "(1 0 0)" "(1 -1 0)"
Florian Vesting Assignment 1 2012-09-07 11 / 11