Why topoSet does work incorrectly?
3 Attachment(s)
Hello!
There is mesh created by cartesianMesh (meshDict) with surfaceMeshRefinement. I need to assign cells restricted by "obj_2.stl" to cellZone using topoSetDict (picture1.png). It must be done by surfaceToCell. But I've got the case that works incorrectly. Two outside points noticed in the piece of code should show the outside of stl file. So it must assign internal cells in cellZone (red points, picture0.png). However, this operation is done only boundary cells (picture2.png). Internal zone is ignored. I don't understand what's wrong. Could you help me? Attachment 83613 Attachment 83614 Attachment 83615 The file can be downloaded from the cloud: https://drive.google.com/file/d/1xT4...ew?usp=sharing Code:
actions |
Try useSurfaceOrientation
Hi Reptider,
It seems that the program get confused by the inside/outside definition. I had success using the option "useSurfaceOrientation" to automatically detect inside/outside regions instead of explicitly define the outsidePoints. Let me know if that works for you as well. Code:
actions |
Quote:
Can I avoid this? |
You're using OFv1912, right? I've tried it into OF v7 and your approach works fine, so maybe there is a bug ig OFv1912 with this app. If so it is not corrected into v2012 (also tried) so you may consider to report this issue.
I think your options right know are: a) switch to openFoam Foundation version (at least to do the topoSet, then you can use the defined sets into whatever version you use) b) Use the useSurfaceOrientation approach. c) Dig into the source code and find what is wrong. Quote:
|
Quote:
|
It works if I use the useSurfaceOrientation approach. But I see that insideCut is not necessary. How can I easily tell the topoSet in order to cutted cells at boundaries belong only one cellSet?
|
All times are GMT -4. The time now is 13:58. |