k=1
Can we solve this on MATLAB?
3 次查看(过去 30 天)
显示 更早的评论
∇∙k(x,y)∇T+Q=0 on OMEGA
T=x on y=0
T=3+x^2 on y=3
T=y on x=0
∂T/∂x=1-T/5 on x=3
3 个评论
回答(1 个)
Prabhan Purwar
2019-10-14
Following equation can be solved by making use of curl() and vpasolve() functions, as shown in the below example code:
syms x y z
V = [x^3*y^2*z, y^3*z^2*x, z^3*x^2*y];
X = [x y z];
curl(V,X)
S = vpasolve(curl(V,X)+X == 0, x,y,z);
double(S.x)
ans =
0.0000 + 0.0000i
-1.0000 + 0.0000i
1.0000 + 0.0000i
0.0000 - 1.0000i
0.0000 + 1.0000i
Please have a look at the following code representing the working of solve and assume functions to solve equations with conditions.
Please refer to the following link for further information
- https://www.mathworks.com/help/symbolic/curl.html(Curl)
- https://www.mathworks.com/help/matlab/ref/divergence.html(Divergence)
- https://www.mathworks.com/help/symbolic/vpasolve.html(Vpasolve)
Hope this helps.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Assumptions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!