Closed BimwerxNZ closed 7 months ago
I realized the issue was with the scaling and range values of vertexes
Hey there,
thanks for your kind words and your interest! It seems that your problem has been solved.
Anyway, here is the explanation of the parameters:
The scaling (or size) is the actual mesh size that is applied to the underlying size function, which will be regarded during the meshing process. The range parameter defines the circular area around the vertex, where this local mesh size is applied to.
To compute the size function at a location (x,y), we consider three values: 1) The mesh size that stems from the size function which is provided by the user 2) The length of boundary edges in the vicinity of our location (x,y) 3) Nearby vertices (with scale and range parameters $s$ and $r$), for whose we calculate the mesh scale by $h = s \cdot exp(-\frac{\Delta x^2}{r^2})$, where $\Delta x$ is the distance vector between our location (x,y) and the vertex.
We then take the smallest of these three scales. In this way the mesh size is automatically adjusted in the vicinity of small edges, without distorting the elements too much.
I'm glad if TQMesh is helpful for you - please let me know if you find any bugs or missing features.
Regards, Flo
Hi, first of all, excellent work and thank you so much for sharing this. I've tried a few mesh parameters and found that with quad meshes, when adding a fixed vertex, that it does not maintain that point after 'tri2quad_modification'.
I'm using cpp to create some test cases, and created a custom class to hold a list of domains to mesh. The general workflow is as follow:
I am doing this for each domain, then I merge the meshes - not sure of this is where the issue resides?
The resulting mesh consists of quads, and boundary quad layers are working as expected. The only issue is that the fixed vertexes seem to do nothing. Am I missing something perhaps?
Happy to share full code, it's just quite a lot to post directly in this post.
Thanks again!