CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [CAD formats] How can i export CAD file and make a mesh? (https://www.cfd-online.com/Forums/openfoam-meshing/219236-how-can-i-export-cad-file-make-mesh.html)

kim4545 July 20, 2019 11:33

How can i export CAD file and make a mesh?
 
1 Attachment(s)
Hello Foamers. I'm university student from Korea

I'm designing a Supersonic Wind tunnel which will be used in my professor's lab.

I've already made a CAD modeling for supersonic nozzle for Mach number 3, 4.5, 6 with CREO

I want to simulate these nozzles with OpenFoam to see whether the outlet Mach number matches the design test section Mach number for the boundary condition of inlet pressure, outlet pressure.

To see the boundary layer viscous effect and make a correction for the nozzle, i want to export my CAD file and make a mesh with it.

I'm totally new in OpenFoam, so could you recommend me an advice or tutorials for it?

I'll attach jpg file of my CAD design for nozzle.
(Cross section view. left side is inlet and right side is outlet)

Sorry for my bad English :<

Aepinus July 21, 2019 02:19

Hello Kim,

are you also completely new in CFD ? I would recommend to begin with the basic and not with subsonic and supersonic flow. Start with incom. Flows and Tutorials. Try to understand what is important on a mesh. https://www.openfoam.com/documentation/tutorial-guide/ . Then go back to your original problem. Best Regards

Kondorfa July 28, 2019 10:47

The CAD software you use, needs to provide the possibility to export the nozzle as a mesh. I usually use the *.obj file format. *.stl should also work.


Sometime I use the free software MeshLab to turn, scale of move the resulting mesh output from the CAD software.


You can open such an *obj or *.stl file in paraView to check how it fits into a domain you created beforehand e.g. by the blockMesh utility.


Then you need to store the mesh in the constant/triSurface folder and use snappyHexMesh. This requieres quite some time to have snappyHeymesh do what you wnat it to do, :rolleyes: but it is worth it.:)



Best,
K.

kim4545 July 28, 2019 14:32

THANKS

I learned how to mesh the geometry designed from CREO or other CAD.

Now i'm stuck with some other problems like Meshing or Initialization.

I'm going to learn step by step.

Again thanks for your reply.


All times are GMT -4. The time now is 01:30.