how to add multiple splines to generate a curvilinear grid #259
Unanswered
lilianrocha
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello! I'm trying to generate a curvilinear grid using more than 1 spline, I have two grids using separated splines:
Grid 01

Grid 02 (full code at the bottom of the page)

When I define create_mk_instance_with_curvilinear_grid_from_transfinite_method(), only one spline can be added in mk.curvilinear_compute_transfinite_from_splines(splines, curvilinear_parameters), for example:
I need to generate only one grid using the splines in grids 01 and 02 and I didn't find a example at https://deltares.github.io/MeshKernelPy/, any help with this issue would be appreciated!
Besides the issue with the splines, I don't know why my grid is "distorted", it seems like it's being projected in a 3d plane:
I was expecting a grid like this, for example, without any distortions:

Here's the code I'm using to generate Grid 02, for example:
(this code was modified using examples found at https://deltares.github.io/MeshKernelPy/examples/04_curvilineargrid_basics.html#generate-a-curvilinear-grid-using-the-transfinite-interpolation-method)
Thanks for the help :)
Beta Was this translation helpful? Give feedback.
All reactions