Time dependent boundary condition in PDE toolbox possible?
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentario
Jannatun Nahar
el 14 de Mzo. de 2017
Editada: Jannatun Nahar
el 14 de Mzo. de 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.
Respuestas (1)
Bill Greene
el 14 de Mzo. de 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 comentario
Steven
el 20 de Sept. de 2018
this link is no longer valid : http://www.mathworks.com/help/pde/ug/boundary-conditions-for-scalar-pde.html
Ver también
Categorías
Más información sobre Boundary Conditions en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!