lanl / LaGriT

Los Alamos Grid Toolbox (LaGriT) is a library of user callable tools that provide mesh generation, mesh optimization and dynamic mesh maintenance in two and three dimensions.
https://lanl.github.io/LaGriT/
Other
116 stars 48 forks source link

[Tinerator] setting max_edge_length does not work #182

Open pinshuai opened 4 years ago

pinshuai commented 4 years ago

I have been trying the option of max_edge_length in the build_refined_triplane function in dem_class.py to generate coarser mesh away from the refined feature, but it did not change the meshing results.

Here is the code snippet:

min_edge_length = 1 
max_edge_length = 20 

# Variably-refined mesh
my_dem.build_refined_triplane(min_edge_length, max_edge_length, slope = 0.5,  refine_dist = 0.5,  interactive=False)

I tried changing max_edge_length from 8 to 20 and slope from 0.5 to 5, but none of those generated significantly different meshes (by eyeballing).

I also tried changing refine_dist option and it only affected the extent of the refine mesh, not the size of the coarse mesh.