Is there a way to import 2D meshes (nodes and triangles) into PDE model objects?

8 ビュー (過去 30 日間)
Benjamin Becker
Benjamin Becker 2017 年 6 月 27 日
コメント済み: Manula 2018 年 1 月 20 日
I am using the PDE toolbox to calculate coupled structural and acoustical problems. For 3D geometries it is possible to import a tetraeder mesh into the model by using the Matlab function
geometryFromMesh
I could not find a similar function for 2D geometry and the properties
model.Mesh.Nodes
and
model.Mesh.Elements
are read-only. I need such a function because I want to do the meshing outside the PDE toolbox. Is there a way to import my own 2D-mesh into the PDE model objects?
Regards Benjamin

採用された回答

Alan Weiss
Alan Weiss 2017 年 6 月 27 日
There is currently no functionality for creating geometry from a 2-D mesh. Sorry.
You might be able to use legacy functions to solve a PDE using a [p,e,t] mesh. You'll have to figure out how to specify coefficients and boundary conditions. For example, use a boundary matrix (very difficult) as sketched in the legacy assemb function reference page. Good luck,
Alan Weiss
MATLAB mathematical toolbox documentation
  9 件のコメント
Kaveh Gharibi
Kaveh Gharibi 2018 年 1 月 20 日
You are welcome!
Manula
Manula 2018 年 1 月 20 日
Hi Kaveh I was trying to run your code in matlab but got error saying 'Undefined function or variable 'elemnodeDatatria6'.How can I avoid it. Appreciate your help.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGeometry and Mesh についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by