Replies: 1 comment 3 replies
-
f(X) = .... where X = (x,y)
model = CartesianDiscreteModel(domain,partition;map=f) |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone,
I am working with Gridap.jl and generated a simple structured mesh using the following code:
domain = (0,1,0,1)
partition = (20,20)
model = CartesianDiscreteModel(domain, partition)
This creates a structured 20x20 quadrilateral mesh in the domain [0,1]×[0,1]. Now, I would like to modify the structure "model" to densify the mesh towards the edges using the following transformation:
(xn,yn)= 0.5 + 0.5 * tanh(eps * (2 * (x,y) - 1)) / tanh(eps)
where (xn,yn) are the new nodal coordinates after applying the transformation to the original coordinates (x,y), epsilon is the densification parameter.
My Question:
How can I modify the model structure in Gridap to change only the nodal coordinates according to this transformation, while keeping the connectivity and other aspects of the mesh unchanged?. I adding pictures of what I want for clarity:
I want to past from this:
to this:
Beta Was this translation helpful? Give feedback.
All reactions