Quiver Plot for a PDE slution
2 views (last 30 days)
Show older comments
Hey guys I have a PDE solved in an arbitrary domain and I want to plot gradient of solution to achieve velocity field, I do this by pdegrad and pdeplot tool, but the final figure shows vectors in a bad pattern, is there any way to determine the position of vectors manually?
best regards ;)
part of code:
[ucx,ucy] = pdegrad(p,t,totq); % Calculate gradient ugrad = [ucy;-ucx]; pdeplot(p,e,t,'flowdata',ugrad,'xydata',totq,'contour','on','flowstyle','arrow')
0 Comments
Answers (0)
See Also
Categories
Find more on Geometry and Mesh in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!