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

how to import the CAD drawing into openfoam

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By elvis

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 18, 2011, 18:57
Default how to import the CAD drawing into openfoam
  #1
New Member
 
Shady ENANY
Join Date: May 2011
Location: Leicester
Posts: 24
Rep Power: 15
shadyenany is on a distinguished road
Send a message via Skype™ to shadyenany
Hi,

I'm a beginner user of the openfoam, and I have a project of modeling flow patterns in a membrane bio-reactor for waste water treatment using finite volume method. I've built the goemetry using two softwares (Auto-CAD 2012 and SolidEdge) and saved them according to their normal format (dwg or par) respectivley. The problem is that I need a software that could help me to generate mesh according to the Finite volume method so I can import the drawing afterwards into the OpenFOAM with their generated meshes. I've looked over other topics in the forum but I found many softwares which are not compatible with both softwares I used (either Autocad or openFOAM).

What I require is your suggetions within any simple software that can help in this phase (generating mesh and converting it into openFOAM) and I would more pleased if you could pass the tutorial of how I can use this software.

Many Thanks,
SE
shadyenany is offline   Reply With Quote

Old   July 19, 2011, 03:43
Default
  #2
Senior Member
 
Elvis
Join Date: Mar 2009
Location: Sindelfingen, Germany
Posts: 620
Blog Entries: 6
Rep Power: 24
elvis will become famous soon enough
Hi,

both CAD-programms should be able to create STL-files http://en.wikipedia.org/wiki/STL_(file_format) to use snappyhexmesh (SHM)
http://www.openfoam.com/docs/user/sn...#x26-1510005.4 http://www.openfoam.com/features/mesh-generation.php
http://www.tfd.chalmers.se/~hani/kur...on_2010_OP.pdf

otherwise you can use gmsh, netgen, salome, engrid, discretizer calculixs(preprocessor) to name a few programs (all are even for free of charge).
http://web.student.chalmers.se/group...SlidesOFW5.pdf =>Engrid based Tutorial
http://www.openfoamworkshop.org/08/p...FOAMCharts.pdf

http://www.caelinux.org/wiki/index.php/Doc:CAETutorials see=>Salome&Openfoam tutorial "a little bit outdated but you should be able to transfer to actual releases"

http://www.tfd.chalmers.se/~hani/kurser/OS_CFD_2010/ might be a good source as well
=> Mesh generation with m4/blockMesh, snappyHexMesh, and converters see link mentioned above

another file-formats that most CAD-programs support are IGES http://en.wikipedia.org/wiki/IGES and STEP http://en.wikipedia.org/wiki/ISO_10303

via IGES, STEP or STL you are able to export to one of the many free preprocessors which can be converted http://www.openfoam.com/features/mesh-conversion.php => gmshToFoam, netgenNeutralToFoam ideasUnvToFoam =>unv by salome
prasa likes this.

Last edited by elvis; July 19, 2011 at 04:22.
elvis is offline   Reply With Quote

Old   July 19, 2011, 03:46
Default
  #3
Member
 
Join Date: Nov 2009
Location: Germany
Posts: 96
Rep Power: 17
val46 is on a distinguished road
Hi,

the easiest way is probably to export your modell as stl-file.
Then use snappyHexMesh (mesh-tool in openFoam) to create your mesh.
__________________
"When I meet God, I am going to ask him two questions: Why relativity? And why turbulence? I really believe he will have an answer for the first." Werner Heisenberg
val46 is offline   Reply With Quote

Old   July 26, 2011, 22:44
Default
  #4
New Member
 
Shady ENANY
Join Date: May 2011
Location: Leicester
Posts: 24
Rep Power: 15
shadyenany is on a distinguished road
Send a message via Skype™ to shadyenany
Quote:
Originally Posted by val46 View Post
Hi,

the easiest way is probably to export your modell as stl-file.
Then use snappyHexMesh (mesh-tool in openFoam) to create your mesh.
Hi, Many Thanks for your kind reply.

I've saved the file as you mentioned before (STL file) but I don't know how I can start SnappyHexMesh. I've tried to copy the STL-File inside the openfoam directory, however it can't find the file still. Could you please discuss abit more.

Thanks;
SE
shadyenany is offline   Reply With Quote

Old   July 26, 2011, 22:46
Default
  #5
New Member
 
Shady ENANY
Join Date: May 2011
Location: Leicester
Posts: 24
Rep Power: 15
shadyenany is on a distinguished road
Send a message via Skype™ to shadyenany
Quote:
Originally Posted by elvis View Post
Hi,

both CAD-programms should be able to create STL-files http://en.wikipedia.org/wiki/STL_(file_format) to use snappyhexmesh (SHM)
http://www.openfoam.com/docs/user/sn...#x26-1510005.4 http://www.openfoam.com/features/mesh-generation.php
http://www.tfd.chalmers.se/~hani/kurser/OS_CFD_2010/mesh_generation_2010_OP.pdf

otherwise you can use gmsh, netgen, salome, engrid, discretizer calculixs(preprocessor) to name a few programs (all are even for free of charge).
http://web.student.chalmers.se/group...SlidesOFW5.pdf =>Engrid based Tutorial
http://www.openfoamworkshop.org/08/p...FOAMCharts.pdf

http://www.caelinux.org/wiki/index.php/Doc:CAETutorials see=>Salome&Openfoam tutorial "a little bit outdated but you should be able to transfer to actual releases"

http://www.tfd.chalmers.se/~hani/kurser/OS_CFD_2010/ might be a good source as well
=> Mesh generation with m4/blockMesh, snappyHexMesh, and converters see link mentioned above

another file-formats that most CAD-programs support are IGES http://en.wikipedia.org/wiki/IGES and STEP http://en.wikipedia.org/wiki/ISO_10303

via IGES, STEP or STL you are able to export to one of the many free preprocessors which can be converted http://www.openfoam.com/features/mesh-conversion.php => gmshToFoam, netgenNeutralToFoam ideasUnvToFoam =>unv by salome

Many Thanks for your kind reply, I've downloaded netgen v.4.4 and I imported the geometry but while generating the mesh, an error message appears that some libraries are missing. Any suggestions?!
shadyenany is offline   Reply With Quote

Old   July 26, 2011, 22:47
Default Hi
  #6
New Member
 
Shady ENANY
Join Date: May 2011
Location: Leicester
Posts: 24
Rep Power: 15
shadyenany is on a distinguished road
Send a message via Skype™ to shadyenany
Quote:
Originally Posted by elvis View Post
Hi,

both CAD-programms should be able to create STL-files http://en.wikipedia.org/wiki/STL_(file_format) to use snappyhexmesh (SHM)
http://www.openfoam.com/docs/user/sn...#x26-1510005.4 http://www.openfoam.com/features/mesh-generation.php
http://www.tfd.chalmers.se/~hani/kurser/OS_CFD_2010/mesh_generation_2010_OP.pdf

otherwise you can use gmsh, netgen, salome, engrid, discretizer calculixs(preprocessor) to name a few programs (all are even for free of charge).
http://web.student.chalmers.se/group...SlidesOFW5.pdf =>Engrid based Tutorial
http://www.openfoamworkshop.org/08/p...FOAMCharts.pdf

http://www.caelinux.org/wiki/index.php/Doc:CAETutorials see=>Salome&Openfoam tutorial "a little bit outdated but you should be able to transfer to actual releases"

http://www.tfd.chalmers.se/~hani/kurser/OS_CFD_2010/ might be a good source as well
=> Mesh generation with m4/blockMesh, snappyHexMesh, and converters see link mentioned above

another file-formats that most CAD-programs support are IGES http://en.wikipedia.org/wiki/IGES and STEP http://en.wikipedia.org/wiki/ISO_10303

via IGES, STEP or STL you are able to export to one of the many free preprocessors which can be converted http://www.openfoam.com/features/mesh-conversion.php => gmshToFoam, netgenNeutralToFoam ideasUnvToFoam =>unv by salome

Many Thanks for your kind reply, I've downloaded netgen v.4.4 and I imported the geometry but while generating the mesh, an error message appears that some libraries are missing. Any suggestions?!
shadyenany is offline   Reply With Quote

Old   July 27, 2011, 03:40
Default
  #7
Member
 
Join Date: Nov 2009
Location: Germany
Posts: 96
Rep Power: 17
val46 is on a distinguished road
Quote:
Originally Posted by shadyenany View Post
Hi, Many Thanks for your kind reply.

I've saved the file as you mentioned before (STL file) but I don't know how I can start SnappyHexMesh. I've tried to copy the STL-File inside the openfoam directory, however it can't find the file still. Could you please discuss abit more.

Thanks;
SE
You have to copy the stl file into constant/triSurface/
Have a look at motorbike tutorial. You will find all necessary commands in there (Allrun).
__________________
"When I meet God, I am going to ask him two questions: Why relativity? And why turbulence? I really believe he will have an answer for the first." Werner Heisenberg
val46 is offline   Reply With Quote

Old   September 7, 2018, 12:40
Default
  #8
New Member
 
shantanu mandhane
Join Date: Jun 2018
Posts: 10
Rep Power: 8
shantanumandhane is on a distinguished road
Quote:
Originally Posted by val46 View Post
You have to copy the stl file into constant/triSurface/
Have a look at motorbike tutorial. You will find all necessary commands in there (Allrun).
Sorry for reopening this thread but where can I find the motorbike tutorial?
__________________
Regards!
Shantanu
shantanumandhane is offline   Reply With Quote

Old   October 31, 2019, 00:27
Default FreeCAD
  #9
New Member
 
kongtiao
Join Date: Oct 2019
Posts: 1
Rep Power: 0
tiankong is on a distinguished road
Generating grid can be really challenging by using openfoam's native tools.

You can create your grid if the geometry is fairly simple by using blockmesh or snappyhexmesh if you have your geometry in stl format.

In both cases, it's still quite difficult, because the learning curve is incredibly steep for openfoam's meshing tools, at least that's what I think so. I use another software to create my grid in most of the cases, I recommend the same for you, at least at the beginning so that you don't stuck.

FreeCAD has an experimental workbench which integrates with OpenFOAM directly,

I have a xp-pen Artist 12 Pro Art Drawing Pad and the FreeCAD app works fine on it.
tiankong is offline   Reply With Quote

Old   March 22, 2021, 12:26
Default
  #10
New Member
 
Paritosh Usmanpurkar
Join Date: Mar 2021
Posts: 3
Rep Power: 5
UParitosh is on a distinguished road
Incompressible/simpleFoam
UParitosh 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[CAD formats] Importing CAD Meshes in OpenFOAM vanmaercke OpenFOAM Meshing & Mesh Conversion 14 December 14, 2017 17:30
Superlinear speedup in OpenFOAM 13 msrinath80 OpenFOAM Running, Solving & CFD 18 March 3, 2015 06:36
[Other] CAD and openFOAM erik023 OpenFOAM Meshing & Mesh Conversion 2 September 9, 2008 16:27
OpenFOAM Training in Europe and USA hjasak OpenFOAM 0 August 8, 2008 06:33
Import to CAD - Gambit guest Main CFD Forum 5 November 21, 2002 11:37


All times are GMT -4. The time now is 00:37.