Time dependent boundary condition in PDE toolbox possible?
3 views (last 30 days)
Show older comments
I'm using the PDE toolbox to model the cooling of a rectangular body of material through various boundaries. I'm modeling it with a parabolic PDE.
I'd like to make one of the boundaries heat up through time, as the cooling material transfers heat to it. Is it possible to create a time-dependent boundary condition like this? I'm currently using Neumann boundaries, but would like to try it with both Neumann and Dirichlet, if possible.
Thanks in advance for any input.
-Dan
1 Comment
Jannatun Nahar
on 14 Mar 2017
Edited: Jannatun Nahar
on 14 Mar 2017
Hi, I have same problem. I can use both neumann and dirichlet under mixed form with respect to region, but how to switch between these two types based on time or some conditions? Like, if u>0 or t>1 use dirichlet else use neumann.
Answers (1)
Bill Greene
on 14 Mar 2013
Hi,
Defining boundary conditions to be functions of time is fairly straightforward. Neumann and Dirichlet conditions are handled in essentially the same way.
If you are using the pdetool GUI, you just define the boundary condition term (e.g. g) as an expression involving the variable "t"-- e.g. 5*t^2.
If you are solving the pde from the command line, the easiest way to specify such a boundary condition is by writing a "boundary file"-- a MATLAB function that you write for defining the boundary conditions on each geometry edge. An example is shown at the bottom of this documentation page: http://www.mathworks.com/help/pde/ug/boundary-conditions-for-scalar-pde.html A function handle to this function is then passed to the parabolic function as the b argument.
Bill
1 Comment
Steven
on 20 Sep 2018
this link is no longer valid : http://www.mathworks.com/help/pde/ug/boundary-conditions-for-scalar-pde.html
See Also
Categories
Find more on Boundary Conditions in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!