Transfinite Line Using Bump
Hi there,
I have been trying to re-engineer the bump functionality for transfinite lines (https://gitlab.onelab.info/gmsh/gmsh/-/blob/master/src/mesh/meshGEdge.cpp , ll. 195).
I aim to use gmsh for an automated, parameterized generation of meshes (for which gmsh seems to be a perfect choice). I want to prescribe a bump coefficient so that a certain length of the first line element is met. This will then ensure that when lines are touching, the touching cells have an equal size.
However, I did not find enough information online on this, nor can I 100% understand the C++ function.
I understand from the code that variable 'a' is the length of the first cell for the progression function, but it does not seem the same for the bump function. Variable 'b' also does not seem to do the job.
If what I am looking for is 'val', then I would like to understand how I can calculate t and d from the definition of the curve. Does it require a sort of mapping of the curve?
And yes, I came up with alternatives. But no, I can not split the lines in two to use progression, because the mesh is a little complex and this would lead to bad-quality meshes.
Could someone please help me out here? Did anybody ever do the same and might already have some code snippet available that does what I would like to achieve?
Thanks in advance, any help is highly appreciated! Best, Anais