CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

SnappyHexMesh for CHT - multiregion ideas???

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 2, 2023, 14:02
Default SnappyHexMesh for CHT - multiregion ideas???
  #1
Member
 
Jairo A. Gutiérrez S
Join Date: Nov 2014
Posts: 57
Rep Power: 11
jairoandres is on a distinguished road
Dear All,

I am using OpenFOAM for CHT studies on PCBs. In order to optimize the case preparation time, I am constructing the whole PCB, LED's and other components with searchable surfaces. I do not really want to create independient STLs for each component as it would be very time-consuming.

I can quickly build a case using these searchable surfaces to describe refinementRegions in the background mesh in snappyHexMesh, and then use topoSet to create the different cell regions from these refined regions.

However, as refinementRegions only works with Castellated mesh (does not snap), some small features like simplified LEDs and copper layers have an incorrect size, which greatly affects the simulations.

On the other hand, using these searchable surfaces to determine refinementSurfaces does the job neatly as the mesh is snapped. But naturally, removes either the rest of the background mesh (air) or the solids.

Is there a way to either
1. Force snappyHexMesh to perform snapping in refinementRegions?
2. Prevent snappyHexMesh to remove mesh when using refinementSurfaces?
3. Perform boolean operations between searchableSurfaces inside snappyHexMesh? I had in mind something like selecting all cells and creating a new surface removing all solid regions from the background box?

Thank you all,

Jairo
jairoandres is offline   Reply With Quote

Old   October 2, 2023, 16:05
Default
  #2
Member
 
Jairo A. Gutiérrez S
Join Date: Nov 2014
Posts: 57
Rep Power: 11
jairoandres is on a distinguished road
Well, I think I found a good-working solution.

Following one tutorial of OpenFOAM, (one of the CHT-based called something like snappyHeater...), I realized that given a hollow STL, snappyHexMesh can perform surfaceRefinements without explicitly removing mesh from the domain. Therefore, I used a searchableSurface called plate, which is basically a finite plane. In that way, then, when topoSet is used afterwards, the regions given by the searchableBox completely match the refined surface region, and the resulting cell zones have the proper thickness.
jairoandres is offline   Reply With Quote

Reply

Tags
multiregion, snapping, snappyhexmesh


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
MultiRegion SnappyHexMesh Workflow for complex geometries Dicanic Main CFD Forum 3 March 3, 2022 18:18
snappyHexMesh multiRegion failure Liz1219 OpenFOAM 7 March 5, 2021 06:00
[snappyHexMesh] Multiregion snappyhexmesh obiscolly50 OpenFOAM Meshing & Mesh Conversion 0 April 18, 2019 00:51
snappyHexMesh axisymmetric multiRegion Henning86 OpenFOAM Running, Solving & CFD 0 October 23, 2014 12:05
[snappyHexMesh] SnappyHexMesh and MultiRegion - get regions from Salome to OF dzi OpenFOAM Meshing & Mesh Conversion 2 September 4, 2014 10:04


All times are GMT -4. The time now is 19:15.