How to convert XYZ coordinate into nodes (like Xi, Yj) on the grid curve surface?

4 views (last 30 days)
Hello everyone
I would like to get some help from people in this community here.
Now I have FE data as XYZ coordinates (fig1). This data is from retangular meshing of curve surface. It will be used to calculate for "central different method" as formula in fig2.
As I understand, I should to convert all nodes into Xi, Yj (fig 3). Then, I can calculate as equation above. For now, I have no idea how to convert it. I have searched the code or the related examples a lot,but I could not find.
Does anyone advise me how to solve it?
Thank you in advance
Panida

Answers (1)

Bjorn Gustavsson
Bjorn Gustavsson on 28 Nov 2022
Are you looking for something like this:
HTH
  2 Comments
Panida Kaewniam
Panida Kaewniam on 28 Nov 2022
Thank you for promt response.
It looks similar what I am looking for. But the xy2sn needs to find centerline of X and Y ( the XY data from the function). My data is not from any function, It is along geometry. Is there another solution?
Bjorn Gustavsson
Bjorn Gustavsson on 28 Nov 2022
Well if that doesnt suit you, perhaps any of the triangularization-based tools on the FEX could be used or adapted: trigradient2, trigradient or gradient-for-scattered-data.
HTH

Sign in to comment.

Categories

Find more on MATLAB in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!