How to compound a block

조회 수: 1 (최근 30일)
A
A 2021년 7월 12일
댓글: A 2021년 7월 24일
I would like to use Variable Cylindrical Solid and Solid to create a block with a hemisphere at the end of the cylinder as shown in the image. Is it possible to change the size of Variable Cylindrical Solid after creation?
Please help me!
I would be grateful if you could attach the program, simulink etc.
・https://jp.mathworks.com/help/physmod/sm/ug/compounding-body-elements.html
・https://jp.mathworks.com/help/physmod/sm/ref/variablecylindricalsolid.html

채택된 답변

Yifeng Tang
Yifeng Tang 2021년 7월 23일
I attached a model showing two ways of doing that. Both use a mask and mask parameters to allow change of parameters afterwards. The difference between the two ways are how to represent the hemisphere. The simpler way is to use two spheres, with two halves overlapping with the cylinder. A fancy way is to create hemisphere using revolved solid. The mask provides a way to create the curve for creating the hemisphere (see its initialization tab).
You may replace the "fixed" cylinder with variable cylinder. The idea would be the same.
  댓글 수: 1
A
A 2021년 7월 24일
Thank you very much for your answer and for the sample.
I'm going to try changing the fixed blocks to variable blocks.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Bodies에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by