snappyHexMesh: cell lower corner instead of cell centre
Hi all,
I would like to change the criterion that snappyHexMesh uses to keep cells into the domain during the refinement stage (cast). I would like to keep in the domain all the cells that have not the cell centre but the cell lower corner into the domain. I am trying to modify the code in the file "src/mesh/autoMesh/autoHexMesh/meshRefinement/meshRefinement.C". At line 75 there is the cell centres vector definition: Quote:
Quote:
I think I am not writing/initializing the vector correctly. Does anyone have any suggesstion? Thanks in advance Andrea |
Hi All,
I solved the problem using a Dynamic Vector. This is fine and I have all the cell-lower-corner in a vector. If I am understanding correctly, OpenFOAM selects the cells that have to be deleted according to an index defined in cellRegion: Code:
regionSplit cellRegion(mesh_); I would like to change this: no cell-centre criterion but cell-lower-corner. Does anyone know which is the file I have to look for? Thanks for any help Andrea |
Now I am able to change the vector:
Code:
cellsToRemove Code:
cellToRemoveLowerCorner Code:
labelList exposedFaces(cellRemover.getExposedFaces(cellsToRemoveLowerCorner)); Quote:
Thanks Andrea |
Hi All,
finally I have it. I changed the "edge" definition into meshRefinement.C file |
Hi All,
finally I have it. I changed the "edge" definition into the meshRefinement.C file Andrea |
All times are GMT -4. The time now is 10:31. |