|
[Sponsors] |
January 4, 2020, 13:46 |
Using setSet to define cellSet through stl
|
#1 |
New Member
Manuel Oliveira
Join Date: Nov 2019
Posts: 8
Rep Power: 6 |
Hello to all,
I am trying to define to divide a tensile specimen into 2 regions through an stl. The geometry: The stl to cut is colored blue: I am using setSet in the following: I created a file named setSet to run the command: setSet -batch setSet. In it I have:
I intent to add the same block I am removing by:
I want to check the cut but it is giving an unexpected result The result so far: It is not giving me a clean cut. After some searching I found out the following information on wiki
I have tried to change of the parameters for the near and curvature, however with no success. Can anyone explain what is understood by:
Is there a better way to define cellSets via an stl? Best Regards! |
|
January 5, 2020, 12:06 |
|
#2 |
New Member
Manuel Oliveira
Join Date: Nov 2019
Posts: 8
Rep Power: 6 |
Hello,
Don't know if it was the best way, but I was able to solve it through OF1906 with the creation of a topoSetDict and using useSurfaceOrientation as true Code:
actions ( { name metal; type cellSet; action new; source surfaceToCell; sourceInfo { file "geometry/specimen.stl"; useSurfaceOrientation false; outsidePoints ((0 0 0)); // definition of outside includeCut true; // cells cut by surface includeInside true; // cells not on outside of surf includeOutside false; // cells on outside of surf nearDistance 10; // cells with centre near surf // (set to -1 if not used) curvature -10; // cells within nearDistance // and near surf curvature // (set to -100 if not used) } } { name metal; type cellSet; action delete; source surfaceToCell; sourceInfo { file "geometry/secondRegion.stl"; useSurfaceOrientation true; outsidePoints ((0 0 0)); // definition of outside includeCut false; // cells cut by surface includeInside true; // cells not on outside of surf includeOutside false; // cells on outside of surf nearDistance 0; // cells with centre near surf // (set to -1 if not used) curvature 0; // cells within nearDistance // and near surf curvature // (set to -100 if not used) } } { name polymer; type cellSet; action new; source surfaceToCell; sourceInfo { file "geometry/secondRegion.stl"; useSurfaceOrientation true; outsidePoints ((0 0 0)); // definition of outside includeCut false; // cells cut by surface includeInside true; // cells not on outside of surf includeOutside false; // cells on outside of surf nearDistance 0; // cells with centre near surf // (set to -1 if not used) curvature 0; // cells within nearDistance // and near surf curvature // (set to -100 if not used) } } ); |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
HELP----Surface Reaction UDF | Ashi | Fluent UDF and Scheme Programming | 1 | May 19, 2020 21:13 |
UDF: trying to implement a Kinetic Equation source term | er.mkumar | Fluent UDF and Scheme Programming | 35 | March 22, 2019 10:20 |
[blockMesh] How can I define functions with m4? | entropie | OpenFOAM Meshing & Mesh Conversion | 2 | August 13, 2014 10:00 |
[snappyHexMesh] Experimentally obtained STL file for internal Flow SnappyHexMesh | Irish09 | OpenFOAM Meshing & Mesh Conversion | 9 | April 7, 2012 08:50 |
Free surface boudary conditions with SOLA-VOF | Fan | Main CFD Forum | 10 | September 9, 2006 12:24 |