|
[Sponsors] |
August 2, 2022, 20:36 |
Multibody STL file in SHM
|
#1 |
Senior Member
|
Hi All,
The question is simple. I have an STL file like this: HTML Code:
solid solidBody1 facet normal -0.956157 -0.0404525 -0.290047 outer loop vertex -0.227845 0.803515 0.212524 vertex -0.241879 0.803515 0.258788 vertex -0.232543 0.826684 0.22478 ... endsolid solid solidBody2 facet normal -0.956157 -0.0404525 -0.290047 outer loop vertex -0.227845 0.803515 0.212524 vertex -0.241879 0.803515 0.258788 vertex -0.232543 0.826684 0.22478 ... endsolid
__________________
Learn OpenFOAM in Persian SFO (StarCCM+ FLUENT OpenFOAM) Project Team Member Complex Heat & Flow Simulation Research Group If you can't explain it simply, you don't understand it well enough. "Richard Feynman" |
|
August 3, 2022, 14:43 |
|
#2 |
Senior Member
M
Join Date: Dec 2017
Posts: 698
Rep Power: 12 |
Hi
AFAIK there are at least two options: 1) split the STL file in two. Just take out the second section from solid ... endsolid and put it into a separate file. Then you can address each region in the geometry {} subdictionary of the snappyHexMeshDict. 2) You can define them under regions, give them a custom name (or keep the original one) and then use that name to refer to the regions, e.g. in the refinementSurfaces subdictionary. Example is here http://www.wolfdynamics.com/wiki/meshing_OF_SHM.pdf Checkout slide 20, this is how you address the regions. If the regions are closed, you probably need to use locationsInMesh instead of locationInMesh and set two points inside. Then in refinementSurfaces subdictionary you are also able to create cellZones directly in for each region. Hope this helps. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
how to calculate mass flow rate on patches and summation of that during the run? | immortality | OpenFOAM Post-Processing | 104 | February 16, 2021 09:46 |
[OpenFOAM.org] Error creating ParaView-4.1.0 OpenFOAM 2.3.0 | tlcoons | OpenFOAM Installation | 13 | April 20, 2016 18:34 |
what is swap4foam ?? | AB08 | OpenFOAM | 28 | February 2, 2016 02:22 |
[foam-extend.org] problem when installing foam-extend-1.6 | Thomas pan | OpenFOAM Installation | 7 | September 9, 2015 22:53 |
OpenFOAM on MinGW crosscompiler hosted on Linux | allenzhao | OpenFOAM Installation | 127 | January 30, 2009 20:08 |