Skip to content

Commit 3089d6a

Browse files
Merge pull request #306 from SciML/zero_defaults
[RFC] Remove more unnecessary defaults
2 parents 27d80f5 + 84b58e3 commit 3089d6a

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/Mechanical/Translational/components.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ Linear 1D translational damper
184184
end
185185
@variables begin
186186
v(t)
187-
f(t) = 0.0
187+
f(t)
188188
end
189189

190190
@components begin

src/Mechanical/Translational/sensors.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Linear 1D position input sensor.
4040
end
4141

4242
@variables begin
43-
s(t) = 0.0
43+
s(t)
4444
end
4545

4646
@equations begin
@@ -71,7 +71,7 @@ Linear 1D position input sensor.
7171
end
7272

7373
@variables begin
74-
a(t) = 0.0
74+
a(t)
7575
end
7676

7777
@equations begin

src/Mechanical/TranslationalPosition/utils.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ Partial model for the compliant connection of two translational 1-dim. flanges.
4242
flange_b = Flange()
4343
end
4444
@variables begin
45-
v_a(t) = 0.0
46-
v_b(t) = 0.0
47-
s_rel(t) = 0.0
48-
f(t) = 0.0
45+
v_a(t)
46+
v_b(t)
47+
s_rel(t)
48+
f(t)
4949
end
5050
@equations begin
5151
D(flange_a.s) ~ v_a
@@ -81,8 +81,8 @@ Partial model for the compliant connection of two translational 1-dim. flanges.
8181
flange_b = Flange()
8282
end
8383
@variables begin
84-
delta_s(t) = 0.0
85-
f(t) = 0.0
84+
delta_s(t)
85+
f(t)
8686
end
8787
@equations begin
8888
delta_s ~ flange_a.s - flange_b.s

0 commit comments

Comments
 (0)