create inlet and outlet
Hi,
I need to create an inlet and outlet in final mesh (after a blockMesh-snappyHexMesh (.stl)). I tried topoSet followed by createPath with no sucess. My inlet and outlet are pipes (cylindrical shape) and my main body is a tank. Thank you. |
Isn't it easier to remesh with CORRECT settings?
in snappyHexMesh in geometry subdictionary: Code:
geometry Code:
refinementSurfaces |
Many thanks for your reply,
but how can I build an .stl file of flat geometry? |
snappHexMesh expects that you provide closed surface file, so it can be determined, whether to prepare mesh for internal or external flow based on locationInMesh input. You can't use flat non-closed geometry, as the snappyHexMesh is designed to prepare 3d meshes.
You can create 3d closed surface out of flat stl elements of course (stl is meant to represent surfaces flat ord 3d). People often use software like SALOME to prepare stl surface mesh with matching points between patches. You can export each of these patches as separate stls and concatenate them to a single file - copypaste its content to a single file or you can use linux command: Code:
cat inlet.stl outlet.stl wall.stl > myGeometry.stl |
I've discovered this tool recently:
https://openfoamwiki.net/index.php/AutoPatch It is actually possible to create patches after you've meshed over your stl with snappyHexMesh, but they are separated automatically by some algorithm, based on feature angle specified (and not an exact region, so you can end up with much more patches, than you wanted). New patches are also named automatically auto0, auto1, auto2 etc. You can rename them manually in constant/polyMesh/boundary With feature angle of 120 degrees: Code:
autoPatch 120 |
All times are GMT -4. The time now is 13:52. |