new parameters exposed - opterrpow, delaunay, blockfill, filldist, maxoutersteps, only3D_domain_nr, try_hexes. replace parthread with parallel_meshing

This commit is contained in:
nsr 2020-10-29 21:44:09 +05:30
parent 5b0f650a28
commit b3bbc670a2
2 changed files with 38 additions and 5 deletions

View File

@ -1014,8 +1014,16 @@ namespace nglib
check_overlap = 1;
check_overlapping_boundary = 1;
parthreadenable = 0;
parallel_meshing = 1;
nthreads = 4;
opterrpow = 2;
delaunayenable = 1;
blockfillenable = 1;
blockfilldist = 0.1;
maxoutersteps = 10;
only3D_domain_nr = 0;
try_hexes = 0;
surfcurvfact = 2;
chartdistfact = 1.2;
@ -1066,8 +1074,16 @@ namespace nglib
check_overlap = 1;
check_overlapping_boundary = 1;
parthreadenable = 0;
parallel_meshing = 1;
nthreads = 4;
opterrpow = 2;
delaunayenable = 1;
blockfillenable = 1;
blockfilldist = 0.1;
maxoutersteps = 10;
only3D_domain_nr = 0;
try_hexes = 0;
surfcurvfact = 2;
chartdistfact = 1.2;
@ -1100,6 +1116,7 @@ namespace nglib
mparam.meshsizefilename = meshsize_filename;
else
mparam.meshsizefilename = "";
mparam.optsteps2d = optsteps_2d;
mparam.optsteps3d = optsteps_3d;
@ -1109,8 +1126,16 @@ namespace nglib
mparam.checkoverlap = check_overlap;
mparam.checkoverlappingboundary = check_overlapping_boundary;
mparam.parthread = parthreadenable;
mparam.parallel_meshing = parallel_meshing;
mparam.nthreads = nthreads;
mparam.opterrpow = opterrpow;
mparam.delaunay = delaunayenable;
mparam.blockfill = blockfillenable;
mparam.filldist = blockfilldist;
mparam.maxoutersteps = maxoutersteps;
mparam.only3D_domain_nr = only3D_domain_nr;
mparam.try_hexes = try_hexes;
stlparam.resthsurfcurvfac = surfcurvfact;
stlparam.resthchartdistfac = chartdistfact;

View File

@ -133,8 +133,16 @@ public:
// Nikhil - 29/09/2020
// Added a couple more parameters into the meshing parameters list
// from Netgen into Nglib
int parthreadenable; //!< Enable / Disable parallel threads
int parallel_meshing; //!< Enable / Disable parallel meshing
int nthreads; //!< Set number of threads to use
double opterrpow;
int delaunayenable; //!< Enable / Disable delaunay
int blockfillenable; //!< Enable / Disable block fill
double blockfilldist; //!< Enable / Disable block fill distance
int maxoutersteps; //!< Set max number of outer steps
int only3D_domain_nr;
int try_hexes; //!< Enable / Disable hex-meshing
double surfcurvfact; //!< Set STL - surface curvature
double chartdistfact; //!< Set STL - chart distance
@ -169,7 +177,7 @@ public:
- #invert_trigs:0
- #check_overlap: 1
- #check_overlapping_boundary: 1
- #parthreadenable: 0
- #parallel_meshing: 1
- #nthreads: 4
- #surfcurvfact: 2
- #chartdistfact: 1.2