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

1 Commento

KSSV
KSSV il 23 Mar 2017
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.

Accedi per commentare.

 Risposta accettata

Rik
Rik il 23 Mar 2017

0 voti

(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 Commenti

jiankai liu
jiankai liu il 23 Mar 2017
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 il 23 Mar 2017
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 il 24 Mar 2017
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

Accedi per commentare.

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by