explanation on boundary condition matrix

조회 수: 4 (최근 30일)
Dany
Dany 2013년 9월 17일
댓글: Florian Baumgartner 2015년 8월 3일
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일
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
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개)

카테고리

Help CenterFile Exchange에서 Eigenvalue Problems에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by