フィルターのクリア

Applying Nonconstant Boundary Conditions for pde

1 回表示 (過去 30 日間)
Hanne
Hanne 2014 年 10 月 8 日
回答済み: Bill Greene 2014 年 10 月 8 日
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!

採用された回答

Bill Greene
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 件)

カテゴリ

Help Center および File ExchangeGeometry and Mesh についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by