plot the deformed shape

조회 수: 48 (최근 30일)
Derek Cooper
Derek Cooper 2021년 2월 27일
답변: Balázs Dura-Kovács 2022년 6월 19일
Dear all,
I am trying to plot a deformed shape of a 3d object using pdeplot3d, inputing a structured array consisting of ux,uy,uz.
g = pdeplot3D(model,'ColorMapData',structuralresults.Displacement.uy)
The function plots the undeformed shape of the object, however it seems to ignore the 'Deformation' input.
Any ideas of how to deal with this?

채택된 답변

Cris LaPierre
Cris LaPierre 2021년 2월 27일
Your syntax for applying the deformation is correct. Perhaps your values of Displacement are not what you expect? We don't have your data to test, but since you are are displacing all nodes, I wonder if the end result is just a linear translation of your structure. In other words, the result of the deformation is just moving the structure uniformly in x,y and z.
Can you attach you structural model and Displacement variable? You can save them to a mat file and attach them to your post using the paperclip icon.
  댓글 수: 3
Cris LaPierre
Cris LaPierre 2021년 2월 27일
Learning as i go. It appears to me you are using settings for a structural model on a PDE model (the data types). Any chance you can create your model as a StructuralModel rather than a PDEModel?
I'm not seeing any way to apply a displacement to a pde model.
Derek Cooper
Derek Cooper 2021년 2월 27일
Great answer and it solved the problem. Much appreciated sir.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Balázs Dura-Kovács
Balázs Dura-Kovács 2022년 6월 19일
I had a similar issue with pdeplot3D eithor not plotting deformations or plotting unrealistic deformations. Turned out that the issue was that I wasn't using the DeformationScaleFactor parameter, so Matlab just picked something automatically.
This is how to plot the deformed shape properly:
figure
pdeplot3D(model,"Deformation",structuralresults.Displacement,"DeformationScaleFactor",1)
axis equal
axis on

카테고리

Help CenterFile Exchange에서 Geometry and Mesh에 대해 자세히 알아보기

태그

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by