CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Pre-Processing (
-   -   Is there a simple way to make refineMesh write the cellLevel (

chtrapp February 16, 2009 11:25

Hello. Right now I'm worki

Right now I'm working on a tool that does multiple runs of refineMesh and modifies the refineMeshDict according to a new dictionary (refineRegionsDict) before each run. To keep the meshes cheap I have integrated an option to make sure that already refined cells (from snappyHexMesh) are deleted from the selected region. To achieve this, the case is copied to a backup and mapFields is used after each step to refresh the cellLevel. This works fine to avoid the cells that have been refined by snappyHexMesh but does not get the ones that resultet from running refineMesh.
So, does anybody know a way to get refineMesh to write the cellLevel?

With kind regards, Christian.

All times are GMT -4. The time now is 22:46.