topoSet boxToFace misses faces on some sides.
Hi all,
I have a problem with topoSet missing out Faces that should be picked by boxToFace. I have a more complex gmsh-File where I want to use topoSet but reproduced my problem with a more simple case with a 3x3x3 cube with cubic elements. The size of the complete cube is 10.0x10.0x10.0 and I am trying to pick up all faces on every side of the cube later transforming it into patches to apply BCs. At first I convert the gmsh via gmshToFoam and then apply topoSet with the following file: Code:
/*--------------------------------*- C++ -*----------------------------------*\ Thank you! |
Depending on the geometry complexity, you could try to use the utility autoPatch and play around with the angle option. It will automatically create patches named auto0, auto1 … autoN. You can then rename these and assign types with createPatch and createPatchDict. This has the limitation that if the geometry changes, the numbering of automatically created patches might change as well, requiring createPatchDict to be edited. But it still might save time. I believe you can also define patches by defining boxes or other matching criteria in the createPatchDict directly (if that's what you are trying to do) and you wouldn't need to use topoSet first.
Cheers, Claudio |
It seems to me that you are not using a box but a plane. Have you tested using something slightly different, such as below.
Code:
{ |
All times are GMT -4. The time now is 04:23. |