geometry from 2D [p,e,t] mesh data for PDE equation

7 次查看(过去 30 天)
I want to solve a PDE equation on a specific mesh using assempde
From my polygonal geometry I used mesh2D from the matlab file exchange to create my mesh and then I "manually" rewrote them so they are on the same format as the canonical 2D matlab mesh data.
So here I am with my [p, e, t] data which displays nicely when I call pdemesh(p,e,t) Then I'll write my pdebound function to apply my boundary conditions but then I wonder :
How do I give that information to assempde ?
Indeed I need to create a model using createpde and then attach it my geometry.
I've seen that there's a function called geometryFromMesh but the documentation says that it's for 3D geometry whereas mine is only 2D.
I can't figure out the workaround.. Any ideas ?
Thank you.

采纳的回答

Luc Rébillout
Luc Rébillout 2015-9-15
Another case of "Didn't read that line of the documentation".
The parameters can be given to assempde like so
u = assempde(b,p,e,t,c,a,f)
With b the boundary condition matrix.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Geometry and Mesh 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by