Solving two-temperature model using pdepe
7 次查看(过去 30 天)
显示 更早的评论
Hi,
Am not so good in programming but am trying to do a simuation of laser ablation using two-temperature model. However, am not able to define boundary conditions correctly which is giving me a false output due to very limited temperature change. Can someone please help me code the boudary conditions for the following equation;
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/495188/image.png)
The code am having for the boudary condition is;
function [pl,ql,pr,qr] = pdebc(xl,ul,xr,ur,t) % Boundary Conditions
pl = [0;ul(1)];
ql = [300;300];
pr = [ur(1)-300;ur(2)];
qr = [300;300];
end
and the one for my initial condition is;
function u0 = pdeic(x) % Initial Conditions
u0 = [300; 300];
end
1 个评论
Luis
2023-2-7
Hey, Do you upload the code to Github or somewhere, I'm a new user of Matlab and I'll like to do the same simulation, nevertheless i can't find more information than this post to move forward.
Thx in advance.
采纳的回答
Saurav Chaudhary
2021-1-27
编辑:Saurav Chaudhary
2021-1-27
You can refer following MATLAB answer to get an idea about how to define boundary conditions for the equations.
Also the following documentation link contains multiple example that may help you with coding boundary conditions and getting more insight into pdepe.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Biotech and Pharmaceutical 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!