Filter löschen
Filter löschen

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

4 Ansichten (letzte 30 Tage)
Luc Rébillout
Luc Rébillout am 15 Sep. 2015
Beantwortet: Luc Rébillout am 15 Sep. 2015
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.

Akzeptierte Antwort

Luc Rébillout
Luc Rébillout am 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.

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by