Hello, I am working on geometry of trochoidal-type engines like Wankel engines. For this I need to start coding with peritrochoid, however I couldnt plot. I have all the values just couldnt plot. Can you help me with this? Thank you.

답변 (1개)

Mathieu NOE
Mathieu NOE 2021년 11월 18일

0 개 추천

hello
according to the equations given here , the coding is quite simple :
% The epitrochoid with R = 3, r = 1 and d = 1/2
R = 3;
r = 1;
d = 1/2;
theta = linspace(0,2*pi,100);
x = (R+r)*cos(theta) - d*cos((R+r)/r.*theta);
y = (R+r)*sin(theta) - d*sin((R+r)/r.*theta);
plot(x,y);
axis square

댓글 수: 1

Star Strider
Star Strider 2021년 11월 18일
If using degree angular measure, use sind() and cosd() instead of sin() and cos().

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

카테고리

도움말 센터 및 File Exchange에서 Geoscience에 대해 자세히 알아보기

태그

질문:

2021년 11월 18일

댓글:

2021년 11월 18일

Community Treasure Hunt

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

Start Hunting!

Translated by