Newtons 2nd law F ma

No preview image

1 collaborator

Default-person Michael Ruhland (Author)

Tags

newton 

Tagged by Michael Ruhland about 10 years ago

physics 

Tagged by Michael Ruhland about 10 years ago

simms 

Tagged by Michael Ruhland about 10 years ago

Visible to everyone | Changeable by everyone
Model was written in NetLogo 5.0.5 • Viewed 397 times • Downloaded 31 times • Run 0 times
Download the 'Newtons 2nd law F ma' modelDownload this modelEmbed this model

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

globals
[
  total-distance
  cloud-color
  cloud-size
]

turtles-own
[
  mass
]

to setup
  clear-all
  ask patches [set pcolor blue]
  reset-ticks
  set total-distance 0
  set cloud-color 5
  set cloud-size 1
  
  
  
  crt 1 [
    setxy (-55) (0)
    set shape "car"
    set color red
    set size 2
    set heading 90
  ]
  crt 1 [
    setxy (55) (8)
    set shape "square"
    set color blue
    set size 1
  ]
end 

to go
    tick
    ;set total-distance (total-distance + (force / 100) / (2 * car-mass) * ticks * ticks)
    ifelse (force) / (2 * car-mass) * ticks * ticks <= 110
    [
    ask turtles with [shape = "car"]
    
    [
      hatch 1 [set shape "cloud"
        set color cloud-color
        set size cloud-size
      ]
      Set cloud-color (cloud-color + (5 / (22000) * car-mass / force) ^ .5)
      forward (force) / (2 * car-mass) * (ticks ^ 2 - (ticks - 1) ^ 2)]
    ]
    [
      ask turtles with [shape = "car"][set xcor 58]
      stop
    ]
    
   
    wait 0.01 * (2 * car-mass) / force
end 

There is only one version of this model, created about 10 years ago by Michael Ruhland.

Attached files

No files

This model does not have any ancestors.

This model does not have any descendants.