CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (http://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   Is there a simple way to make refineMesh write the cellLevel (http://www.cfd-online.com/Forums/openfoam-pre-processing/61994-there-simple-way-make-refinemesh-write-celllevel.html)

chtrapp February 16, 2009 10:25

Hello. Right now I'm worki
 
Hello.

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 04:26.