Difference between revisions of "MRFSimpleFoam"

From OpenFOAMWiki
m (New page: = MRFSimpleFoam = == Introduction == This tutorial is aimed to generating the mesh in Gambit, importing and solving it with MRFSimpleFoam. == Mesh Generation == 1. generate two cylinde...)
 
m (Mesh Generation)
Line 7: Line 7:
 
== Mesh Generation ==
 
== Mesh Generation ==
  
1. generate two cylinders (r1=0.5 h1=1; r2=0.25, h2=0.5) and one cube (h3=0.3)
+
# generate two cylinders (r1=0.5 h1=1; r2=0.25, h2=0.5) and one cube (h3=0.3)[[Image:Objects.png|center|thumb|Domain generation]]
2. substract cylinder 2 from 1 (maintain cylinder 2)
+
# substract cylinder 2 from 1 (maintain cylinder 2)
3. substract cube 3 from cylinder 2
+
# substract cube 3 from cylinder 2
4. define continuum types (zones): rotor for cylinder 2, and stator for cylinder 1
+
# define continuum types (zones): rotor for cylinder 2, and stator for cylinder 1[[Image:Objects.png|center|thumb|Rotor/Stator domain]]
5. couple the interfaces
+
# define boundaries (inlet, outlet, cubeWall, cylindricWall, sliderFace), and couple the interfaces (sliderFace)[[Image:boundaries.png|center|thumb|Boundaries]]
6. define the coupled interface as INTERIOR
+
# define the coupled interface as INTERIOR
7. generate tetrahedral mesh (0.05 size)
+
# generate tetrahedral mesh (0.05 size)[[Image:]]
8. export
+
# export
9. fluentMeshToFoam ./ simulation geom/mrf.msh -writeSets -writeZones
+
# fluentMeshToFoam ./ simulation geom/mrf.msh -writeSets -writeZones

Revision as of 06:25, 31 March 2008

1 MRFSimpleFoam

1.1 Introduction

This tutorial is aimed to generating the mesh in Gambit, importing and solving it with MRFSimpleFoam.

1.2 Mesh Generation

  1. generate two cylinders (r1=0.5 h1=1; r2=0.25, h2=0.5) and one cube (h3=0.3)
    Domain generation
  2. substract cylinder 2 from 1 (maintain cylinder 2)
  3. substract cube 3 from cylinder 2
  4. define continuum types (zones): rotor for cylinder 2, and stator for cylinder 1
    Rotor/Stator domain
  5. define boundaries (inlet, outlet, cubeWall, cylindricWall, sliderFace), and couple the interfaces (sliderFace)
    Boundaries
  6. define the coupled interface as INTERIOR
  7. generate tetrahedral mesh (0.05 size)[[Image:]]
  8. export
  9. fluentMeshToFoam ./ simulation geom/mrf.msh -writeSets -writeZones