How can I create FEA colour plots?
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (1)
Lubos Smolik
el 3 de Abr. de 2020
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 comentarios
Lubos Smolik
el 4 de Abr. de 2020
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.
Ver también
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!