explanation on boundary condition matrix

where can i find an explanation about boundary condition matrix? especially what does each row in this matrix stands for. the documantation provided in the matlab help is not very clear.
thank you.

 採用された回答

Bill Greene
Bill Greene 2013 年 9 月 17 日

0 投票

Have you looked at this page?
There is a general description of the matrix format along with two examples.
If you are defining boundary conditions in a MATLAB script, my own preference (and recommendation) is to write a "boundary file" (user-written MATLAB function) to define your boundary conditions instead of trying to create a boundary matrix. I find writing a boundary condition function to be much more straightforward than writing a boundary matrix. The approach is documented here:
Bill

3 件のコメント

Dany
Dany 2013 年 9 月 18 日
still not clear enough, although the "pdebound" might work. but now a new question came up. when you use the "pdebound" function you get 4 matrices at the end:
[qmatrix,gmatrix,hmatrix,rmatrix] = pdebound(p,e,u,time)
but when you use the "assempde" function you have to use one boundary matrix. how does those 4 matrices replace/create the one boundary matrix needed for the "assempde" function?
thank you.
Bill Greene
Bill Greene 2013 年 9 月 18 日
The first argument to assempde (or pdenonlin, parabolic, etc) can be a function handle. For example:
b = @pdebound;
u=assempde(b, ...);
(Note, the function doesn't have to be named pdebound for this to work.)
Bill
Florian Baumgartner
Florian Baumgartner 2015 年 8 月 3 日
When I have only Dirichlet boundary conditions, do I have to gibe "assempde" 4 matrixes (q,g,h,r) or just 2 matrixes (h,r) with the command
if true
b = @pdebund
u = assempde(b, ...)
end

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

その他の回答 (0 件)

製品

Community Treasure Hunt

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

Start Hunting!

Translated by