|
[Sponsors] |
|
March 31, 2021, 13:49 |
Why topoSet does work incorrectly?
|
#1 |
New Member
Join Date: Sep 2020
Posts: 28
Rep Power: 5 |
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? picture0.png picture1.jpg picture2.jpg The file can be downloaded from the cloud: https://drive.google.com/file/d/1xT4...ew?usp=sharing Code:
actions ( { name supportCellSet_1; type cellSet; action new; source surfaceToCell; file "obj_2.stl"; outsidePoints ( (-27.755749702453613 -14.90625 0.1956501007080078) (4.457550048828125 -6.677660942077637 15.221670150756836) ); includeCut true; includeInside true; includeOutside false; nearDistance -1; curvature -100; } { name cellZone_1; type cellZoneSet; action new; source setToCellZone; sourceInfo { set supportCellSet_1; } } ); |
|
April 1, 2021, 03:38 |
Try useSurfaceOrientation
|
#2 |
Senior Member
Carlos Rubio Abujas
Join Date: Jan 2018
Location: Spain
Posts: 127
Rep Power: 9 |
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 ( { name supportCellSet_1; type cellSet; action new; source surfaceToCell; file "obj_2.stl"; outsidePoints (); useSurfaceOrientation true; includeCut false; includeInside true; includeOutside false; nearDistance -1; curvature -1; } { name cellZone_1; type cellZoneSet; action new; source setToCellZone; sourceInfo { set supportCellSet_1; } } ); |
|
April 1, 2021, 04:39 |
|
#3 | |
New Member
Join Date: Sep 2020
Posts: 28
Rep Power: 5 |
Quote:
Can I avoid this? |
||
April 1, 2021, 06:04 |
|
#4 | |
Senior Member
Carlos Rubio Abujas
Join Date: Jan 2018
Location: Spain
Posts: 127
Rep Power: 9 |
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:
|
||
April 1, 2021, 07:44 |
|
#5 | |
New Member
Join Date: Sep 2020
Posts: 28
Rep Power: 5 |
Quote:
|
||
April 1, 2021, 09:25 |
|
#6 |
New Member
Join Date: Sep 2020
Posts: 28
Rep Power: 5 |
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?
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[mesh manipulation] TopoSet cellset is not deleting from stl cellZone | sunagra27 | OpenFOAM Meshing & Mesh Conversion | 0 | March 9, 2021 01:50 |
bug : topoSet STOP RESPONDING while trying to make cellzones near to a surface. | sk11 | OpenFOAM Bugs | 0 | March 1, 2021 11:49 |
Does CX_Interpret_String work in parallel? | 86lolo | Fluent UDF and Scheme Programming | 2 | June 30, 2014 04:36 |
Companies that lease software & hardware for cloud-based work? | Catthan | ANSYS | 0 | June 18, 2014 10:53 |
Do all CFD analysts have to do some hands-on work except PhDs? | e13drd | Main CFD Forum | 2 | March 17, 2014 14:56 |