CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   how to import the CAD drawing into openfoam (http://www.cfd-online.com/Forums/openfoam/90694-how-import-cad-drawing-into-openfoam.html)

shadyenany July 18, 2011 17:57

how to import the CAD drawing into openfoam
 
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

elvis July 19, 2011 02:43

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

val46 July 19, 2011 02:46

Hi,

the easiest way is probably to export your modell as stl-file.
Then use snappyHexMesh (mesh-tool in openFoam) to create your mesh.

shadyenany July 26, 2011 21:44

Quote:

Originally Posted by val46 (Post 316559)
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 July 26, 2011 21:46

Quote:

Originally Posted by elvis (Post 316557)
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 July 26, 2011 21:47

Hi
 
Quote:

Originally Posted by elvis (Post 316557)
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?!

val46 July 27, 2011 02:40

Quote:

Originally Posted by shadyenany (Post 317626)
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).


All times are GMT -4. The time now is 05:24.