Remove cells from blockMesh using topoSet + subsetMesh.
Posted September 10, 2021 at 17:16 by frantov
Remove elements from a mesh
Steps:
1. Generate whole sphere mesh using blockMesh See tutorials/mesh/blockMesh/sphere
2. Delete half sphere mesh using topoSet + subsetMesh.
3. Step 2 generates an "oldInternalFaces", checkMesh, fails. Then I use createPatch to set "oldInternalFaces" as wall. checkMesh OK.
4. Use topoSet to generate an inlet using a cylinderToCell
5. Create inlet using createPatch
To have these operations organized I created folders for the topoSet and patch operations. Then I took advantage of the argument -dict, which allows you to call the dictionaries from a folder.
Attached is the system folder, in case is useful or any suggestions are welcome.
blockMesh
topoSet -dict system/topo1/topoSetDict
subsetMesh topRegion -overwrite
createPatch -dict system/patch1/createPatchDict -overwrite
topoSet -dict system/topo2/topoSetDict
createPatch -dict system/patch2/createPatchDict -overwrite
Steps:
1. Generate whole sphere mesh using blockMesh See tutorials/mesh/blockMesh/sphere
2. Delete half sphere mesh using topoSet + subsetMesh.
3. Step 2 generates an "oldInternalFaces", checkMesh, fails. Then I use createPatch to set "oldInternalFaces" as wall. checkMesh OK.
4. Use topoSet to generate an inlet using a cylinderToCell
5. Create inlet using createPatch
To have these operations organized I created folders for the topoSet and patch operations. Then I took advantage of the argument -dict, which allows you to call the dictionaries from a folder.
Attached is the system folder, in case is useful or any suggestions are welcome.
blockMesh
topoSet -dict system/topo1/topoSetDict
subsetMesh topRegion -overwrite
createPatch -dict system/patch1/createPatchDict -overwrite
topoSet -dict system/topo2/topoSetDict
createPatch -dict system/patch2/createPatchDict -overwrite
Total Comments 0