Applying Nonconstant Boundary Conditions for pde

1 次查看(过去 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!

采纳的回答

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 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