How can I create FEA colour plots?
18 ビュー (過去 30 日間)
古いコメントを表示
Hi Everyone,
I have an array of dataset containing X,Y coordinates and their corresponding FEA results (Von Mises, Displacement, Strain).
What is the easiest way to plot this data on coloured contour plots?
Thank you for your help.
3 件のコメント
回答 (1 件)
Lubos Smolik
2020 年 4 月 3 日
Assuning that you have a planar rectangular geometry and coordinates and results are stored in vectors x, y and vonMises, you can use the following code:
% x - vector of x coordinates
% y - vector of y coordinates
% vonMises - nodal von Mises stress
n = 50; % number of levels
contourf(x, y, vonMises, n);
xlim([min(x) max(x)]);
ylim([min(y) max(y)]);
xlabel("X coordinate")
ylabel("Y coordinate")
bar = colorbar;
title(bar, "Von Mises stress")
If your geometry is not rectangular, then you also need some information about connections between individual nodes as J. Alex Lee has already noted.
10 件のコメント
Lubos Smolik
2020 年 4 月 4 日
Tamas, have you checked comment https://www.mathworks.com/matlabcentral/answers/509490-how-can-i-create-fea-colour-plots#comment_820742 ? I used scatteredInterpolant there and than visualised data using surface function.
参考
カテゴリ
Help Center および File Exchange で Surface and Mesh Plots についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!