File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed
src/Mechanical/Rotational Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ Linear 1D rotational spring
94
94
@symcheck c > 0 || throw (ArgumentError (" Expected `c` to be positive" ))
95
95
end
96
96
@parameters begin
97
- c, [description = " Spring constant" , unit = u " N*m" ]
97
+ c, [description = " Spring constant" , unit = u " N*m*rad^-1 " ]
98
98
phi_rel0 = 0.0 , [description = " Unstretched spring angle" , unit = u " rad" ]
99
99
end
100
100
@equations begin
Original file line number Diff line number Diff line change @@ -65,15 +65,21 @@ Constant torque source
65
65
tau_constant,
66
66
[
67
67
description = " Constant torque (if negative, torque is acting as load in positive direction of rotation)" ,
68
- unit = u " N*m"
68
+ unit = u " N*m" ,
69
69
]
70
70
end
71
71
@extend flange, phi = partial_element = PartialTorque (; use_support = false )
72
72
@variables begin
73
- tau (t), [description = " Accelerating torque acting at flange (= -flange.tau)" ,
74
- unit = u " N*m" ]
75
- w (t), [description = " Angular velocity of flange with respect to support" ,
76
- unit = u " rad*s^-1" ]
73
+ tau (t),
74
+ [
75
+ description = " Accelerating torque acting at flange (= -flange.tau)" ,
76
+ unit = u " N*m" ,
77
+ ]
78
+ w (t),
79
+ [
80
+ description = " Angular velocity of flange with respect to support" ,
81
+ unit = u " rad*s^-1" ,
82
+ ]
77
83
end
78
84
@equations begin
79
85
w ~ D (phi)
You can’t perform that action at this time.
0 commit comments