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/)
-   -   [snappyHexMesh] how to define patches with snappyHexMesh from a STL file ? (https://www.cfd-online.com/Forums/openfoam-meshing/88115-how-define-patches-snappyhexmesh-stl-file.html)

Cyp May 9, 2011 06:46

how to define patches with snappyHexMesh from a STL file ?
 
Hi!

I had a mesh defined as a STL file. Let's say my geometry is a cylinder.

However my STL file only provides a default patche and I would like to define 3 different patches (inlet, outlet, wall). Do you know how can I do such a thing with snappyHexMesh (or another tool) ?


Best regards,
Cyp

romant May 9, 2011 09:14

you can use names stl files, where the patches of your cylinder have names (check the motorbike tutorial for this)

or provide multiple stl files where each one contains the patch that is supposed to me meshed.

Sof March 14, 2012 12:35

Quote:

Originally Posted by Cyp (Post 306776)
Hi!

I had a mesh defined as a STL file. Let's say my geometry is a cylinder.

However my STL file only provides a default patche and I would like to define 3 different patches (inlet, outlet, wall). Do you know how can I do such a thing with snappyHexMesh (or another tool) ?


Best regards,
Cyp

Dear Cyp,

I know the thread is quite old but I wanted to ask the same question you already asked on the forum.

Did you manage to define inlet and outlet patches when using snappyhexmesh. If yes, could you please let me know how you did.

thank you
Sofiene

mihaipruna March 14, 2012 20:08

If you have one stl file with multiple solids defined one after another:

geometry

{

yourfile.stl

{

type triSurfaceMesh;

name whatever;

regions

{

solid1_name_in_stl_file

{

name whatever1;

}

solid2_name_in_stl_file

{

name whatever2;

}

.....

lovecraft22 March 15, 2012 12:30

http://www.cfd-online.com/Forums/ope...e-stlfile.html

Sof March 16, 2012 14:28

thank you!!


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