|
[Sponsors] |
[snappyHexMesh] Defining separate objects as a region in an STL file at once |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 29, 2023, 02:36 |
Defining separate objects as a region in an STL file at once
|
#1 |
New Member
george
Join Date: Feb 2021
Posts: 16
Rep Power: 5 |
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) ); regards, scfd |
|
September 29, 2023, 04:34 |
|
#2 |
Senior Member
M
Join Date: Dec 2017
Posts: 703
Rep Power: 13 |
AFAIK there is no possibility to just mesh every region. That would be a great feature, though.
|
|
Tags |
seperate, snappyhexmesh, stl |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] funkyDoCalc with OF2.3 massflow | NiFl | OpenFOAM Community Contributions | 14 | November 25, 2020 04:30 |
OpenFoam "Permission denied" and "command not found" problems. | iyidaniel@yahoo.co.uk | OpenFOAM Running, Solving & CFD | 11 | January 2, 2018 07:47 |
[swak4Foam] swak4foam building problem | GGerber | OpenFOAM Community Contributions | 54 | April 24, 2015 17:02 |
[swak4Foam] build problem swak4Foam OF 2.2.0 | mcathela | OpenFOAM Community Contributions | 14 | April 23, 2013 14:59 |
DxFoam reader update | hjasak | OpenFOAM Post-Processing | 69 | April 24, 2008 02:24 |