|
[Sponsors] |
[snappyHexMesh] How to Model STLs with Cavities |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 28, 2024, 20:04 |
How to Model STLs with Cavities
|
#1 |
New Member
Join Date: Nov 2023
Posts: 4
Rep Power: 3 |
Hey all,
TL;DR - I need to make regions out of an STL with a cavity, how can I do that? Please provide tutorials, videos, or advice. I am trying to find the correct workflow and utilities to model my system correctly. It pulls together a lot of concepts, so please feel free to share any advice you may have. For context, this is for a research project using the nuclear reactor modeling code SERPENT to model the behavior of a nuclear reactor core. The end goal is that OpenFOAM takes care of the density and temperature of the core materials and SERPENT then interprets that data to output the power density at each point. So, if anyone has advice for external couplings, please share. The current challenge is that I want to use a single STL file to split up my regions. For the sake of simplicity, imagine that the STL is of a closed aluminum can. There are two closed surfaces on this can that create the boundaries between three regions: fluid inside the can, the material that makes up the can, and fluid outside the can. From what I could gather, I need to create a blockMesh, use topoSet to extract the three regions from the STL, use snappyHexMesh to prepare the mesh, and then refine further if wanted. Here is a great opportunity to tell me I am way off and ought to use a different procedure. When I use surfaceCheck on the STL, it quickly and accurately identifies that the STL is both closed and that it has two parts. It then creates OBJ files for each of the two surfaces if anyone has advice on how I might just use those. It is my understanding that snappyHexMesh will throw away the interior volume if I don't preprocess the model, so how can I use topoSet to achieve a similar effect to surfaceCheck? I would rather not create two separate STLs because all of the relevant information is in the first one. Also, in the format that SolidWorks produces STLs, there is only one region in the STL file, so I can't split the mesh volume using literal STL regions. The three regions would be (blockMesh - externalSTL), (externalSTL - internalSTL), and (internalSTL). So, what tool (if not topoSet) can I use to automatically split the STL into inside and outside and define these regions? Once this is done, I would like to use the chtMultiRegionSimpleFoam solver to figure out the steady state solution for temperature distribution. Nuclear reactors have a small feedback loop on their operation where essentially power production is temperature dependent. To account for this, I am planning on using the externalCoupledHeater tutorial as a starting point. I can attach files if that would be helpful, but something tells me that it wouldn't accomplish much if I did. Let me know if you want them though. Thanks, BrownieBytes |
|
January 29, 2024, 04:21 |
|
#2 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,236
Rep Power: 29 |
Hello,
What OpenFOAM version are you using? Yann |
|
January 29, 2024, 14:19 |
|
#3 |
New Member
Join Date: Nov 2023
Posts: 4
Rep Power: 3 |
||
January 30, 2024, 04:13 |
|
#4 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,236
Rep Power: 29 |
Hello BrownieBytes,
For multi region simulations, you can define multiple regions in snappyHexMeshDict thanks to the locationsInMesh (rather than using the usual locationInMesh) See documentation here: https://doc.openfoam.com/2306/tools/...ocationsInMesh And an example in the snappyMultiRegionHeater tutorial: https://develop.openfoam.com/Develop...tiRegionHeater Regards, Yann |
|
Tags |
chtmultiregionsimpefoam, external application, snappyhexmesh 3d, toposet |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[IHFOAM] The IHFOAM Thread | Phicau | OpenFOAM Community Contributions | 392 | September 8, 2023 19:10 |
interFoam wave propagation and explosion of Courant number and residuals | ChiaraViola | OpenFOAM Running, Solving & CFD | 1 | June 26, 2019 06:36 |
NEW turbulence TRANSITIONAL model | giammy92 | OpenFOAM | 3 | June 30, 2016 10:47 |
manualInjection model in sprayFoam | Mentalo | OpenFOAM Running, Solving & CFD | 1 | April 2, 2014 10:29 |
Problems bout CFD model of biomass gasification, Downdraft gasifier | wanglong | FLUENT | 2 | November 26, 2009 00:27 |