Uniformly accelerated motion
Model was written in NetLogo 5.0.2
•
Viewed 291 times
•
Downloaded 18 times
•
Run 0 times
Do you have questions or comments about this model? Ask them here! (You'll first need to log in.)
Comments and Questions
Please start the discussion about this model!
(You'll first need to log in.)
Click to Run Model
turtles-own [d_x d_t d_v] globals [a s v B ] to setup clear-all setup-cestica setup-pozadina reset-ticks end to setup-pozadina ask patches [ set pcolor white ] set B random 15 ask patch -10 0 [ set pcolor grey set plabel "A" ] ask patch B 0 [ set pcolor grey set plabel "B" ] end to setup-cestica create-turtles 1 ask turtle 0 [ set color red setxy -10 0 set heading 90 set shape "car" if path? [ pen-down ] ] end to go ask turtle 0 [ ifelse xcor <= B [ unos izracun ] [ set a 0 set v 0 ] ] tick end to unos set a acceleration set d_t 0.0001 end to izracun set d_v (a * d_t) set v (v + d_v) set d_x (v * d_t) set xcor (xcor + d_x) set s (s + d_x) end
There is only one version of this model, created over 11 years ago by Hrvoje Mladinić.
Attached files
File | Type | Description | Last updated | |
---|---|---|---|---|
Uniformly accelerated motion.png | preview | Preview for 'Uniformly accelerated motion' | over 11 years ago, by Hrvoje Mladinić | Download |
This model does not have any ancestors.
This model does not have any descendants.