@@ -4,41 +4,39 @@ Box on an incline
44
55> import Vector.Vector
66
7- Alla vektorer är i Newton
7+ All vectors are in newton.
88
99
10-
11- {.float-img-left}
10+ {.float-img-left}
1211
1312> fg = V2 0 (- 10 )
1413> m = 2
1514> alpha = 30
1615>
17- > enh_normal :: Double -> Vector2
18- > enh_normal a = V2 (cos a) (sin a)
16+ > unit_normal :: Double -> Vector2
17+ > unit_normal a = V2 (cos a) (sin a)
1918>
2019> f_l_ :: Vector2 -> Angle -> Vector2
21- > f_l_ fa a = scale ((magnitude fa) * (cos a)) (enh_normal (a- (pi / 2 )))
20+ > f_l_ fa a = scale ((magnitude fa) * (cos a)) (unit_normal (a- (pi / 2 )))
2221>
2322> fn :: Vector2 -> Angle -> Vector2
2423> fn fa a = negate (f_l_ fa a)
2524
26- Friktionsfritt plan:
27-
25+ Frictionfree incline:
2826
2927
3028> fr :: Vector2 -> Angle -> Vector2
3129> fr fa a = (fn fa a) + fa
3230
3331
34- ** Tester :**
32+ ** Tests :**
3533------------
3634
3735*Main> fr (V2 0 10) 0
3836
3937(0.0 x, 0.0 y)
4038
41- Good: Inge lutning - står still.
39+ Good: No inclination - stands still.
4240
4341
4442*Main> fr (V2 0 (-10)) 0
@@ -77,7 +75,7 @@ Good: 45* lutning - 5N både i x och y led. Pyth: 5^2 + 5^2 =/= 10^2
7775(-4.330127018922193 x, 2.499999999999999 y)
7876
7977
80- **Friktionskonstant - i rörelse :**
78+ **Frictionconstant - in motion :**
8179
8280\begin {align }
8381 F_{friction} = \mu * F_{normal} \iff \mu = \frac {F_{friction}}{F_{normal}}
@@ -86,24 +84,27 @@ Good: 45* lutning - 5N både i x och y led. Pyth: 5^2 + 5^2 =/= 10^2
8684> us = 0.5
8785> uk = 0.4
8886
87+ Add image how friction depends if there is movement.
88+
8989> type FricConst = Double
9090
91- friktionen
91+ Friction:
9292
93- friks = Fn * us, us = friktion statisk
93+ friks = Fn * us, us = friction static
9494
95- frikk = Fn * uk, uk = friktion kinetisk
95+ frikk = Fn * uk, uk = friction kinetic
9696
9797
98- Vi har normalkraften, o beh bara konstanterna .
98+ We have the normal force and only needs the constants .
9999
100- Speed har inget att göra med N för friktion? Dock gäller F*m = Nm = work = J = bugatti bränner däck .
100+ The current speed does not affect the friction. However F*M = Nm = work = J -> racer cars burn tires .
101101
102102> motscalar :: FricConst -> Vector2 -> Scalar
103103> motscalar u f = u * (magnitude f)
104104
105105Från en rörelse eller vekt, fixa komplementet
106106
107+
107108> enh_vekt :: Vector2 -> Vector2
108109> enh_vekt v | magnitude v == 0 = (V2 0 0 )
109110> | otherwise = scale (1 / (magnitude v)) v
@@ -115,7 +116,7 @@ Från en rörelse eller vekt, fixa komplementet
115116> motkraftv :: FricConst -> Vector2 -> Vector2 -> Vector2
116117> motkraftv u n v = scale (u * (magnitude n)) (negate (enh_vekt v))
117118
118- Nu ska vi bara summera
119+ Now we just need to sum the force vectors:
119120
120121> fru :: Vector2 -> Angle -> FricConst -> Vector2
121122> fru fa a u = (fr fa a) + (motkraftv u (fn fa a) (fr fa a))
@@ -167,9 +168,7 @@ Den statiska friktionen är konstig. Den borde stå still vid låg vinkel o hög
167168
168169Jag summerar ju visserligen krafterna, så det är nog något lurt med friktionshanteringen.
169170
170-
171-
172- Tester:
171+ Tests:
173172
174173fr
175174*Main> fr fg (pi/3 )
0 commit comments