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

3 views (last 30 days)
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.

Accepted Answer

Luc Rébillout
Luc Rébillout on 15 Sep 2015
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.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!