APS Excellence in Physics Education Award
November 2019

Education Prize Logo
Science SPORE Prize
November 2011

NSF Logo
The Open Source Physics Project is supported by NSF DUE-0442581.

Rotation 3D model post and replies

Return to the Rotation 3D model thread
Login to post to this thread

Rotation 3D model
Felix Yepez
6 Posts

Hi, I´m learning about EJS and I need to rotate a cylinder around Z axis using a variable (angular velocity). Could I get any example about that?

Thanks


Replies to Rotation 3D model

Re: Rotation 3D model -
lookang Avatar
lookang
245 Posts

define these variables in variables page
t
dt
angle
omega

evolution page set
t and dt as independent and increment

d (angle)/dt = omega


in the cylinder3D set
Transformation
[[angle,0,0,1]] // first is angle, 2nd is x-axis, 3rd is y-axis and 4th is z-axis

set attached example

Post edited June 5, 2017 at 12:55 AM EST.

Attached File: ejss_src_rotate3d.zip


OSP@SG blog
OSP@SG Digital Library


OSP Projects:
Open Source Physics - EJS Modeling
Tracker
Physlet Physics
Physlet Quantum Physics
STP Book