我想用MATLAB里面的pde模块求解一个亥姆霍兹方程,亥姆霍兹方程的系数是随空间变化的变量。我的系数数据是在矩形网格上的数据,而pde用的是三角网格。请问我怎样才能把矩形网格的数据用在三角网格上呢?谢谢大家的阅读与帮忙。

1 个评论

KSSV
KSSV 2017-3-23
Approximate Translation:
I would like to use MATLAB inside the pde module to solve a Helmholtz equation, Helmholtz equation coefficient is a variable with the space changes. My coefficient data is data on a rectangular grid, and pde uses a triangular mesh. How can I use rectangular grid data on triangular meshes? Thank you for reading and helping.

请先登录,再进行评论。

 采纳的回答

Rik
Rik 2017-3-23

0 个投票

(Quoted answer copied from a similar question)
"I'm afraid that you cannot use a rectangular mesh with PDE Toolbox. The toolbox uses triangular meshes only.
Alan Weiss
MATLAB mathematical toolbox documentation"
So you'll have resample that rectangular grid to a triangular grid.

3 个评论

jiankai liu
jiankai liu 2017-3-23
Thank you for your help. I just have learnt MATLAB for a few days.And I don't know about it very well. Can you tell me is there a function that I can use to convert my data on rectangular grid to the triangular grid that pde generates. thank you for your reading and help. Jian-Kai Liu
Rik
Rik 2017-3-23
As I am not an expert on PDE (I have never done anything with it), I will copy again from the answer by Alan.
"You are free to create a mesh and use the legacy solver functions such as assempde. Just make sure that you carefully follow the mesh data specification. You will also have to specify boundary conditions for your geometry.
Good luck,
Alan Weiss
MATLAB mathematical toolbox documentation"
jiankai liu
jiankai liu 2017-3-24
Dear Rik Wisselink,
I am so happy to see your reply. You have helped me a lot.
I will learn something about the legacy solver functions and about MATLAB.
Good luck to you,too
Jian-Kai Liu

请先登录,再进行评论。

更多回答(0 个)

标签

Community Treasure Hunt

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

Start Hunting!

Translated by