필터 지우기
필터 지우기

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

조회 수: 4 (최근 30일)
Luc Rébillout
Luc Rébillout 2015년 9월 15일
답변: Luc Rébillout 2015년 9월 15일
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