CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums

Remove cells from blockMesh using topoSet + subsetMesh.

Register Blogs Community New Posts Updated Threads Search

Rate this Entry

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
Posted in Uncategorized
Views 674 Comments 0 Edit Tags Email Blog Entry
« Prev     Main     Next »
Total Comments 0

Comments

 

All times are GMT -4. The time now is 12:54.