|
[Sponsors] | |||||
[snappyHexMesh] cellSet (or cellZone) refinement by snappyHexMesh |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|
|
#1 |
|
New Member
Jacob Child
Join Date: May 2024
Posts: 3
Rep Power: 3 ![]() |
Hello all!
Second post here, feel free to correct any forum/thread things I don't do correctly. Problem: I have an external mesh. I have created a cellSet using a topoSetDict and topoSet, and I want to refine it using snappyHexMesh (I thought this was done in the snap step, but is it castellation? I tried both). However, snappy doesn't seem to see it or refine it. Information: I called the cellSet GeneralRefine and also converted it to a cellZone as well. Under refinementRegions I put: Code:
GeneralRefine
{
levels ((2 2));
mode inside;
}
Code:
GeneralRefine
{
levels (2 2);
cellZones GeneralRefine;
cellZoneInside inside;
}
More in depth: The mesh is generated outside of snappy. I want to do some local refinement based off of a field function, so I created a cellSet and then originally ran refineMesh on that cellSet. This worked, but led to some unintented consequences such as large jumps between sizes. In snappy you can specify the number of cells between levels, so I was hopeful of creating the cellSet and then using snappy to refine it by just running the snap stage. Just in case I also ran the castellation stage, but it also didn't do anything. Could I create the cellSet in snappy based off of a field? |
|
|
|
|
|
|
|
|
#2 |
|
Member
Suhan Umur Okuducu
Join Date: Oct 2024
Location: Turkey
Posts: 33
Rep Power: 3 ![]() |
Hello,
If I understood you correctly, instead of including your cellSet in SHM, you could create a refinementBox that encompasses your cellSet and refine this refinementBox in the refinementRegions section of castellatedMesh. However, SHM needs to detect the base mesh, so the location of polyMesh is important. You can refer to the MotorBike tutorial to see how to create a refinementBox. I might be saying something incorrect. I'm not very good at OpenFOAM, but maybe it could be helpful. |
|
|
|
|
|
![]() |
| Tags |
| cellsets, cellzones, refinemesh, snappyhexmesh |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [snappyHexMesh] SnappyHexMesh running killed! | Mark JIN | OpenFOAM Meshing & Mesh Conversion | 7 | June 14, 2022 02:37 |
| decomposePar problem: Cell 0contains face labels out of range | vaina74 | OpenFOAM Pre-Processing | 37 | July 20, 2020 06:38 |
| [snappyHexMesh] snappyHexMesh does not create any mesh except one for the reference cell | Arman_N | OpenFOAM Meshing & Mesh Conversion | 1 | May 20, 2019 18:16 |
| [snappyHexMesh] Error snappyhexmesh - Multiple outside loops | avinashjagdale | OpenFOAM Meshing & Mesh Conversion | 53 | March 8, 2019 10:42 |
| [snappyHexMesh] snappyHexMesh aborting | Tobi | OpenFOAM Meshing & Mesh Conversion | 0 | November 10, 2010 04:23 |