CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[snappyHexMesh] Multibody STL file in SHM

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By AtoHM

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 2, 2022, 19:36
Default Multibody STL file in SHM
  #1
Senior Member
 
Mojtaba.a's Avatar
 
Mojtaba Amiraslanpour
Join Date: Jun 2011
Location: Tampa, US
Posts: 308
Rep Power: 15
Mojtaba.a is on a distinguished road
Send a message via Skype™ to Mojtaba.a
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
Can I refer to each solidbody inside snappyHexMeshDict?
__________________
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"
Mojtaba.a is offline   Reply With Quote

Old   August 3, 2022, 13:43
Default
  #2
Senior Member
 
M
Join Date: Dec 2017
Posts: 642
Rep Power: 12
AtoHM is on a distinguished road
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.
Yann likes this.
AtoHM is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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 08:46
[OpenFOAM.org] Error creating ParaView-4.1.0 OpenFOAM 2.3.0 tlcoons OpenFOAM Installation 13 April 20, 2016 17:34
what is swap4foam ?? AB08 OpenFOAM 28 February 2, 2016 01:22
[foam-extend.org] problem when installing foam-extend-1.6 Thomas pan OpenFOAM Installation 7 September 9, 2015 21:53
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 19:08


All times are GMT -4. The time now is 00:25.