CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (http://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   A simple question about snappy (http://www.cfd-online.com/Forums/openfoam-meshing/61592-simple-question-about-snappy.html)

prapanj March 11, 2009 04:30

After great difficulty I was f
 
After great difficulty I was finally able to use snappyHexMesh to mesh the external flow domain about a geometry I had. I am soon writing a tutorial about that, because I couldn't find good tutorials for snappy elsewhere.

My problem now is with setting boundary conditions. I have a rectangular block created using blockMesh. I had set the boundaries inflow and outflow etc. How will I set the boundary condition for the STL geometry's surface? In what Dict file do I set it? can I just add the surface in the boundary file in polyMesh directory?

After running snappy I got two folders 0.001 and 0.002. Do I have to copy the contents of these into a "constant" folder for running a solver on it?

I know my questions are so primitive. Please bear with me. Thank you

marico March 11, 2009 04:50

Hi Prapanj, Did you use a s
 
Hi Prapanj,

Did you use a single STL file?
every STL-region in STL-file (ASCII) starts with "solid NAME", where NAME is probably not present. (and ends with "endsolid NAME").
These regionnames, if present, are kept up by sHM and added to the boundary-file. So your problem is probably, how to assign the names to the regions. If you have only one region it might be easy to just add it manually.
How did you get the STL-File? When using "Salome" it is "relativly" easy to import IGES/STEP, name face-regions and export as single STL-files. (every region one STL-file, which can be called by sHM).
The polyMesh in last folder, here 0.002 (as it is the mesh after snapping), should be copied in "constant" folder to move on, at least I do so.

Best Regards
Marco


also check:
http://www.cfd-online.com/OpenFOAM_D...s/1/11251.html

and:
http://www.cfd-online.com/OpenFOAM_D...tml?1236240810

prapanj March 11, 2009 05:06

I am currently using only a si
 
I am currently using only a single STL file that I pulled out of the internet. I was having the question about the multiple STLs. I found a thread that talks about a script to use with blender, so that we can get named ascii STLS without having to manually copy each STL and make it one file. Anyway, the link you provided was really helpful. I get a clearer picture now. Thank you.

marico March 11, 2009 05:25

you can also use the multiple
 
you can also use the multiple files for sHM, just as one STL-file in geometry-definition.
Salome works on my OpenSUSE well and I guess the interface is more familiar than the one of Blender.

Marco

wendywu April 28, 2009 16:44

snappyHexMesh tutorial?
 
Quote:

Originally Posted by prapanj (Post 196327)
After great difficulty I was finally able to use snappyHexMesh to mesh the external flow domain about a geometry I had. I am soon writing a tutorial about that, because I couldn't find good tutorials for snappy elsewhere.

Hi, I found your turorial, very useful.

Thank you very much.

Wendy

prapanj May 6, 2009 07:30

Hi Wendy, I am sorry, I haven't uploaded my tutorial on the internet anywhere. How did you find, what did you find?

wendywu May 6, 2009 10:18

tutorial for snappyHex Mesh
 
Hi, sorry, Maybe I made a mistake. I found a tutorial , I thought it was yours.
http://www.cfd-online.com/OpenFOAM_D...s/1/11251.html

Because I saw that your are going to give a tutorial , then I found one after that, I thought it was yours accordingly. I was careless. Sorry, will you give another tutorial?

Wendy


All times are GMT -4. The time now is 23:17.