Advertisement
Guest User

Untitled

a guest
Jul 11th, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. tijd := tijd + tijdstap
  2.  
  3.  
  4. 'Snelheid:'
  5. zwaartekracht := valversnelling * massa
  6. fhelling := zwaartekracht * Sin(hellingshoek) + wrijvingopschans
  7. floodrecht := zwaartekracht * Cos(hellingshoek)
  8. dsnelheid := fhelling / massa
  9. snelheid := snelheid + dsnelheid
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21. 'Deze wil nog niet werken. :S'
  22.  
  23. 'Wrijving op de schans:'
  24. Wrijvingopschans := luchtwrijving + glijwrijving
  25. glijwrijving := Wrijvingsconstante * floodrecht * massa
  26. luchtweerstand := Weerstandsconstante * Frontaaloppervlakte * 0,5 * luchtdichtheid * snelheid
  27.  
  28.  
  29. '           Deze formules heb ik van het internet geplukt voor lucht en glijweerstand:      '
  30. '                    Q(glij)  = wrijvingsconstante * massa * Floodrecht                     '
  31. '         Q(lucht) = Constante * frontaaloppervlakte * 0,5 * dichtheid lucht * snelheid     '
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44. 'Afstand op de schans:'
  45. dafstandschans := snelheid * tijdstap
  46. afstandschans := afstandschans + dafstandschans
  47. als afstandschans >= 103,5 dan dsnelheid=0 eindals
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.    
  55.    
  56.  
  57.  
  58. 'Deze doet het nog niet:'
  59. als afstandschans >= 103,5 dan dafstandschans=0 eindals
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71. 'Tijd na het vertrekken van de schans:'
  72. valtijd := valtijd + tijdstap
  73. als afstandschans<= 103,5 dan valtijd=0 eindals
  74.  
  75.  
  76. 'Horizontale beweging:'
  77. horizontaleafstand := horizontaleafstand + dhorizontaleafstand
  78. dhorizontaleafstand := snelheid * Cos(hellingshoek) * tijdstap
  79.  
  80.  
  81. 'Verticale beweging:'
  82. dy=0,5 * valversnelling * valtijd^2
  83. als afstandschans<=103,5 dan dy=0 eindals
  84. y := y-dy
  85. als y<0 dan stop eindals
  86.  
  87. 'Hoogte skier:'
  88. schans :=103,6 * Sin(hellingshoek)
  89. SZ= 103,5-afstandschans
  90. hschans :=SZ * Sin(hellingshoek)
  91. dhschans := schans-hschans
  92. hoogte := 149-dhschans
  93. als hoogte<=89,6 dan dhschans=0 eindals
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement