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 - Jun 4 at 11:47PM
Felix Yepez
4 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 - Jun 05 12:54AM
lookang Avatar
lookang
190 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


The OSP Network:
Open Source Physics - Tracker - EJS Modeling
Physlet Physics
Physlet Quantum Physics