Applying Nonconstant Boundary Conditions for pde
조회 수: 4 (최근 30일)
이전 댓글 표시
Dear experts,
I'm trying formulate a script that solves a pde so that different boundary conditions can be inputted for a "solver" in a loop. For this, I was trying to replicate an example in the manual:
But I encounter an error in line
pg = pdeGeometryFromEdges(gd); % create geometry container
which says:
Undefined function 'pdeGeometryFromEdges' for input arguments of type 'double'.
I also get similar error for 'pdeBoundaryConditions' which suggest these functions are not implemented to my matlab R2014a? Can anyone suggest an alternative&convenient way of implementing nonconstant boundary conditions?
Thanks a lot!
댓글 수: 0
채택된 답변
Bill Greene
2014년 10월 8일
The pdeGeometryFromEdges function is part of a new, simpler approach to defining boundary conditions in PDE Toolbox introduced in R2014b.
If you want to define boundary conditions programmatically (as opposed to using the pdetool GUI) in R2014a or earlier versions of PDE Toolbox, you will need to write a boundary condition function. This documentation page:
describes that in more detail. The links at the bottom of that page will take you to documentation pages with examples.
Bill
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Geometry and Mesh에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!