CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

Help for beginners

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 3, 2010, 07:41
Default Help for beginners
  #1
Member
 
Axel Söhngen
Join Date: Jan 2010
Location: Germany, Trier
Posts: 31
Rep Power: 16
chelvistero is on a distinguished road
Hello, i'm a student and new in using cfd and openfoam 1.6. I have studied the user manual and now i want to start to work with openfoam. I have to simulate e.g. a circulation around a cylinder. I have created a cylinder in Catia and imported it to OpenFoam with Netgen. Is there a possibility to create a space around the imported cylinder so that i can define the flow?

Thank you in advance
Please Help!
chelvistero is offline   Reply With Quote

Old   January 3, 2010, 08:27
Default
  #2
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 334
Rep Power: 18
phsieh2005 is on a distinguished road
Hi,

If your geometry is simply a cylinder inside a rectangular box, then, it will be better if you create the mesh using blockMesh (read the manual on how to use blockMesh). Or you can use either use gmsh or cgx to create the geometry/mesh, then, import the mesh to OpenFOAM format (cgx can write the mesh in OpenFOAM format so that it saves you the conversion step).

I will say that blockMesh is the best way for you because you can easily change mesh density if needed later.

Good Luck!

Pei
phsieh2005 is offline   Reply With Quote

Old   January 3, 2010, 09:14
Default
  #3
Member
 
Axel Söhngen
Join Date: Jan 2010
Location: Germany, Trier
Posts: 31
Rep Power: 16
chelvistero is on a distinguished road
Hello,
thank you for your fast answer.
The cylinder is just my first exercise. When it succeeds I have to analyse more complex geometries which are built from other students in catia. The import of the cylinder over netgen already succeeded an is also shown in paraview. But how to create an mesh around the cylinder to analise an air flow around the cylinder. Can i built a second mesh around the cylinder e.g using blockMesh? Or is my consideration of handling such a problem simply false??
chelvistero is offline   Reply With Quote

Old   January 3, 2010, 10:46
Default
  #4
Member
 
santhosh
Join Date: Apr 2009
Location: India
Posts: 70
Rep Power: 17
santoo_cfd is on a distinguished road
Hi,

If you are interested in only studying the physics of flow of around cylinder,I think it is need less to spend time on creating mesh on the imported geometry in openFOAM. You can either import complete mesh from third party software or completely create the mesh for ur problem in openFOAM.

If you choose second option, check the Programmers Guide (Page No-47) you will find complete blockMesh instructions for your problem(flow over a cylinder). just copy them into blockMesh file and create mesh.

Regards
Santosh
santoo_cfd is offline   Reply With Quote

Old   January 3, 2010, 11:08
Default
  #5
Member
 
Axel Söhngen
Join Date: Jan 2010
Location: Germany, Trier
Posts: 31
Rep Power: 16
chelvistero is on a distinguished road
Ok thank you for your fast answer. I will try your suggestion. I hope i deal with it.
chelvistero is offline   Reply With Quote

Old   January 3, 2010, 13:08
Default snappyHexMesh may help
  #6
New Member
 
Axel Tietjen
Join Date: Dec 2009
Location: Hamburg, Germany
Posts: 19
Rep Power: 17
Axel_T is on a distinguished road
Hi chelvistero,

if I understood your motivation right, you want to learn the procedure of mesh-creating for later (and more difficult) tasks.

Then it might be interesting for you to try out the snappyHexMesh feature, which is described in the UserGuide chapter 5.4. When you put already a stl-surface in the correct dictionary of your case, you would simply have to create a simple mesh with blockMesh, that has the right size to completely surround your geometry. You can verify that by running paraFoam and adding the stl-surface via the open-menue.

After that the snappyHexMeshDict must be edited properly, which is quite a bit complicated at first, but with a little practise you will get used to it.

in this forum are several threads about snappy that helped me out a lot.

Greetings and good luck

Axel
Axel_T is offline   Reply With Quote

Old   January 3, 2010, 15:43
Default
  #7
Member
 
Axel Söhngen
Join Date: Jan 2010
Location: Germany, Trier
Posts: 31
Rep Power: 16
chelvistero is on a distinguished road
Thank you very much Axel. That was exactly what I'm looking for and helps me a lot.

chelvistero is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 13:25.