Difference between revisions of "Contrib:BondMatt/LaminarPipeFlow"

From CAELinuxWiki
Jump to: navigation, search
Line 24: Line 24:
 
<br/><br/>[[Image:mesh-groups.jpg]]
 
<br/><br/>[[Image:mesh-groups.jpg]]
  
<br/><br/><br/> Solver - Code Saturne
+
<br/><br/><br/> '''Solver - Code Saturne'''
 +
<br/> The CFD study was started by launching the 'Code-Saturne-Wizard' and creating a case. This dialogue box can be used to remember/select the right type of mesh to export (MED). To export the mesh it is just a matter of going back to Salome and right clicking on the mesh in the tree and selecting 'Export to MED file'.
 +
<br/><br/>[[Image:exportMEDmesh.jpg]]

Revision as of 21:46, 5 September 2009

Software Versions:
Ubuntu 8.04 LTS
Salome V4.1.4
Code Saturne V1.4.a (GUI)



Fluent Tutorial
The Cornell University Fluent tutorial can be found here Cornell Tutorial



Geometry / Mesh
The geometry is a box. The Cornell tutorial uses a 2-D box but Code Saturne can only work with 3-D geometry. The box represents a cross section of a pipe along its length cut in half to take advantage of the flow symmetry around the axis of the pipe. I created a box using the 'create a box' icon which brings up the same dialogue box if one goes to 'New Entity' and then 'Primitives' and then 'Box' in the task bar.

Box.jpg
Dx is the width of the box in the x-direction, starting at the origin. My dimensions: Dx=0.001, Dy=8, and Dz=0.1 Units are meters. The next step is to create the groups of faces for boundary conditions. As in the Cornell tutorial, half the pipe is studied to take advantage of symmetry. There are three symmetry B.C.s, one inlet B.C., one outlet B.C., and a wall B.C.

Box2.jpg

Groups can be created by going to 'New Entity', 'Group', and then 'Create'. When creating a group the elements are selected by type (points, lines, planes, solids) and added with the 'add' button. Descriptive group names should be used to make applying B.C.s easier. Once all elements for a group are selected and the name is specified the 'Apply' button is clicked.

Groups.jpg

Groups of edges were also created by direction so that the same mesh that is used in the Cornell tutorials could be created. In other words lines running in the x-direction were grouped into a group named 'xlines' and so on. This allows one dimensional submeshes to be created with the number of intervals on the edges specified. These submeshes are 1-dimensional and use the 'wire discretization' algorithm with the 'Nb. Segments' (number of segments) hypothesis. The main mesh used the 'Hexahedron' algorithm (3D) and 'Quadrangle (Mapping)' algorithm (2D). For the main mesh no 1D algorithm is specified since all edges are discretized by the submeshes.

Mesh1-3D.jpg

Mesh1-2D.jpg

Mesh1-submesh1.jpg

Mesh1-submesh1-hypothesis.jpg

Mesh1-submesh2-hypothesis.jpg

Mesh1-submesh3-hypothesis.jpg

The geometry groups are used to create groups of nodes. One method is to go to 'Mesh' and then 'Create Groups from Geometry' in the taskbar. The mesh and the geometry group are selected and the 'Apply' button selected.

Mesh-groups.jpg




Solver - Code Saturne
The CFD study was started by launching the 'Code-Saturne-Wizard' and creating a case. This dialogue box can be used to remember/select the right type of mesh to export (MED). To export the mesh it is just a matter of going back to Salome and right clicking on the mesh in the tree and selecting 'Export to MED file'.

ExportMEDmesh.jpg