Newton's second law
Model was written in NetLogo 5.0.2
•
Viewed 292 times
•
Downloaded 35 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] globals [F m a s d_v v B d_t] to setup clear-all setup-cestica setup-pozadina reset-ticks end to setup-pozadina 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 "circle" set size 2 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 F force set m mass set d_t 0.0001 end to izracun set a (F / m) 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 | |
---|---|---|---|---|
Newton's second law.png | preview | Preview for 'Newton's second law' | over 11 years ago, by Hrvoje Mladinić | Download |
This model does not have any ancestors.
This model does not have any descendants.