Jump with parachute

Jump with parachute preview image

1 collaborator

Tags

(This model has yet to be categorized with any tags)
Visible to everyone | Changeable by everyone
Model was written in NetLogo 6.2.0 • Viewed 215 times • Downloaded 9 times • Run 0 times
Download the 'Jump with parachute' 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 [
  Fluft
  acceleration
  tyngde-acceleration
  NLoop
  A
  dt
  y
  vy
]

breed [men man]

to setup
  clear-all
  set tyngde-acceleration 9.82               ;Alle fysiske størrelse er i SI-enheder
  set acceleration tyngde-acceleration
  set NLoop 100
  set A 1.3 * 0.3
  set dt 1.0 / NLoop
  set y startshøjde
  set vy 0
  create-men 1
  [
    setxy 0 y ; start position
    set shape "person"
    set color red
    set size 8
  ]
  reset-ticks
  paint-sky
end 

; beregn ny position og fart

to go
  if (ticks > udløsningstid )
  [
    set A 10 * 5
    ask men
    [ set shape "parachute"
      set size 15
      set heading 0
    ]
  ]
  repeat Nloop [              ; beregningerne laves med et kortere tidsinterval end skærmen opdateres
       set Fluft 0.5 * 1.2 * A * vy * vy              ; Fluft = 0.5 · rho · A · cw · v^2
       set acceleration (tyngde-acceleration - Fluft / masse)
       set vy ( vy - acceleration * dt )
       set y ( y + vy * dt )
      ]
  if (y < 0 )     ; stop inden manden rammer jorden
    [
      ask patches with [ pycor < 0 ] [ set pcolor green ]
      print ticks
      stop
    ]
  ask men [setxy xcor ( y ) ]       ; hvis ikke jorden er ramt endnu flyttes manden
  paint-sky
  tick      ; ticks tæller antal sekunder
end 

to paint-sky
    ask patches [ set pcolor 100 - ( min list  ( y / 1000)  10 )]
end 

There is only one version of this model, created almost 3 years ago by Solveig Skadhauge.

Attached files

File Type Description Last updated
Jump with parachute.png preview Preview for 'Jump with parachute' almost 3 years ago, by Solveig Skadhauge Download

This model does not have any ancestors.

This model does not have any descendants.