Applying Nonconstant Boundary Conditions for pde

3 Ansichten (letzte 30 Tage)
Hanne
Hanne am 8 Okt. 2014
Beantwortet: Bill Greene am 8 Okt. 2014
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!

Akzeptierte Antwort

Bill Greene
Bill Greene am 8 Okt. 2014
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

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by