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

[snappyHexMesh] Defining separate objects as a region in an STL file at once

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 29, 2023, 01:36
Post Defining separate objects as a region in an STL file at once
  #1
New Member
 
george
Join Date: Feb 2021
Posts: 10
Rep Power: 5
scfd is on a distinguished road
Hi,

I'm seeking a way to define regions for multiple bodies within a single STL file simultaneously. When I mesh geometries like the one shown in fig-1 using snappyHexMesh, I encounter difficulties in defining inner coordinates (locationsInMesh). When there are a large number of objects (more than 100) that need to be defined, manually writing coordinates becomes frustrating because I have to identify the inner coordinates for each separate object in the STL file before adding them to the snappy dictionary. When I provide only one coordinate, it creates a region exclusively for that specific object or part.
Code:
locationsInMesh
(
        ((x0 y0 z0) fluid_region)
        //--------------------------//
	(( x1 y1 z1) solid_region_1)
	.
        .
	(( xn yn zn) solid_region_1)
        //--------------------------//
	(( x1 y1 z1) solid_region_2)
	.
        .
	(( xn yn zn) solid_region_2)
);
Is there an easy way to capture all separate objects as region with snappyHexMesh?

regards,
scfd
Attached Images
File Type: jpg fig-1.jpg (47.3 KB, 9 views)
scfd is offline   Reply With Quote

Old   September 29, 2023, 03:34
Default
  #2
Senior Member
 
M
Join Date: Dec 2017
Posts: 642
Rep Power: 12
AtoHM is on a distinguished road
AFAIK there is no possibility to just mesh every region. That would be a great feature, though.
AtoHM is offline   Reply With Quote

Reply

Tags
seperate, snappyhexmesh, stl


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
[swak4Foam] funkyDoCalc with OF2.3 massflow NiFl OpenFOAM Community Contributions 14 November 25, 2020 03:30
OpenFoam "Permission denied" and "command not found" problems. iyidaniel@yahoo.co.uk OpenFOAM Running, Solving & CFD 11 January 2, 2018 06:47
[swak4Foam] swak4foam building problem GGerber OpenFOAM Community Contributions 54 April 24, 2015 16:02
[swak4Foam] build problem swak4Foam OF 2.2.0 mcathela OpenFOAM Community Contributions 14 April 23, 2013 13:59
DxFoam reader update hjasak OpenFOAM Post-Processing 69 April 24, 2008 01:24


All times are GMT -4. The time now is 03:04.