Time dependent boundary condition in PDE toolbox possible?
3 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
Jannatun Nahar
2017 年 3 月 14 日
編集済み: Jannatun Nahar
2017 年 3 月 14 日
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.
回答 (1 件)
Bill Greene
2013 年 3 月 14 日
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 件のコメント
Steven
2018 年 9 月 20 日
this link is no longer valid : http://www.mathworks.com/help/pde/ug/boundary-conditions-for-scalar-pde.html
参考
カテゴリ
Help Center および File Exchange で Boundary Conditions についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!