Skip to content

Commit e877c5f

Browse files
committed
Rotational.jl: Change some Int to Float64 values, because errors occured in some situations.
1 parent 5457cd3 commit e877c5f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

models/Rotational.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ PartialCompliant = Model(
6161
# Linear 1D rotational spring
6262
Spring = PartialCompliant | Model(
6363
c = 1.0u"N*m/rad", # (min = 0, info = "Spring constant")
64-
phi_rel0 = 0u"rad", # (info = "Unstretched spring angle")
64+
phi_rel0 = 0.0u"rad", # (info = "Unstretched spring angle")
6565
equations = :[
6666
tau = c * (phi_rel - phi_rel0) ]
6767
)
@@ -70,7 +70,7 @@ Spring = PartialCompliant | Model(
7070
SpringDamper = PartialCompliant | Model(
7171
c = 1.0*u"N*m/rad", # (min = 0, info = "Spring constant")
7272
d = 0.0u"N*m*s/rad", # (info = "Damping constant")
73-
phi_rel0 = 0u"rad", # (info = "Unstretched spring angle")
73+
phi_rel0 = 0.0u"rad", # (info = "Unstretched spring angle")
7474
equations = :[
7575
tau = c * (phi_rel - phi_rel0) + d * der(phi_rel) ]
7676
)

0 commit comments

Comments
 (0)