Graphing a cross section of a pdeplot3D

I need a plotting function that will give me a 2D Shape specified by nodes in a thin crooss section of a 3D mesh and allow for an additional data set that will color map this geometry. Should look like a pdeplot3D, however that function doesn't work with user created data points, it seems to need full 3D geometry.
I've been trying to find a good way to accurately represent the stresses that are going on inside this body. I've been using imagesc and organizing the data such that the stress gives a color representation of where there are high and low stresses in a shape similar to the body before deformation (since it is a simple rectalngle). The issue is I need to show the data after deformation in which the cross section becomes irregular and it seems imagesc is ill-equipped for such a scenario.
The surf function also has not given great results because I don't need a 3D image.
I'm going to try using contourf, but I would like to make the cross section dimensions instead of using a rectangular plot.
model = createpde('structural','static-solid');
tic
gm = multicuboid(100,100,50);
model.Geometry = gm;
structuralProperties(model,'Cell',1,'YoungsModulus',10E3,'PoissonsRatio',0.49);
figure
pdegplot(model,'VertexLabels','on','EdgeLabels','on','FaceLabels','on')
structuralBC(model,'Face',1,'Constraint','fixed');
bracketThickness = 5;
generateMesh(model,'Hmax',bracketThickness);
MeshX = model.Mesh.Nodes(1,:);
MeshY = model.Mesh.Nodes(2,:);
MeshZ = model.Mesh.Nodes(3,:);
structuralBoundaryLoad(model,'Face',2,'Pressure',2000);
result = solve(model);
pdeplot3D(model,'ColorMapData',result.Stress.szz)
Strain.jpg
^ my results with the imagesc model.
That is Strain not Stress, and hope I somewhat accurately conveyed my problem

Réponses (0)

Catégories

En savoir plus sur Stress and Strain dans Centre d'aide et File Exchange

Produits

Version

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by