How to calculate gradiant at mesh points in pde toolbox and one more question?
1 次查看(过去 30 天)
显示 更早的评论
I'm going to calculate grad(u) at mesh points in pde toolbox. Is this a good way? :
[ux1,uy1] = pdegrad(p,t,u) ;
ux = pdeprtni(p,t,ux1) ;
uy = pdeprtni(p,t,uy1) ;
In addition I'd like to know what is meant by "center of triangle" in pde toolbox documentation? Are its coordinates as:
x_c = (p(1,t(1,j)) + p(1,t(2,j)) + p(1,t(3,j)))/3 ;
y_c = (p(2,t(1,j)) + p(2,t(2,j)) + p(2,t(3,j)))/3 ;
thanks,
回答(0 个)
另请参阅
类别
在 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!