Skip to content

Commit 2ca7936

Browse files
committed
docs: Translational.Mass: s_0 -> s
1 parent 0068343 commit 2ca7936

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/Mechanical/Translational/components.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,21 +38,21 @@ Fixes a flange position (velocity = 0)
3838
end
3939

4040
"""
41-
Mass(; name, v_0 = 0.0, m, s_0 = nothing, g = nothing)
41+
Mass(; name, v_0 = 0.0, m, s = nothing, g = nothing)
4242
4343
Sliding mass with inertia
4444
4545
# Parameters:
4646
4747
- `m`: [kg] mass of sliding body
4848
- `v_0`: [m/s] Initial value of absolute linear velocity of sliding mass (default 0 m/s)
49-
- `s_0`: [m] (optional) initial value of absolute position of sliding mass
49+
- `s`: [m] (optional) initial value of absolute position of sliding mass
5050
- `g`: [m/s²] (optional) gravity field acting on the mass, positive value acts in the positive direction
5151
5252
# States:
5353
5454
- `v`: [m/s] absolute linear velocity of sliding mass
55-
- `s`: [m] (optional with parameter s_0) absolute position of sliding mass
55+
- `s`: [m] (optional with parameter s) absolute position of sliding mass
5656
5757
# Connectors:
5858

test/Mechanical/multibody.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
using ModelingToolkit
22
using ModelingToolkitStandardLibrary.Mechanical.MultiBody2D
33
using ModelingToolkitStandardLibrary.Mechanical.TranslationalPosition
4-
using DifferentialEquations
4+
using OrdinaryDiffEq
55
# using Setfield
66
using Test
77

88
@parameters t
99

1010
@named link1 = Link(; m = 1, l = 10, I = 84, g = -9.807)
1111
@named link2 = Link(; m = 1, l = 10, I = 84, g = -9.807, x1_0 = 10)
12-
@named cart = Mass(; m = 1, s_0 = 0)
12+
@named cart = Mass(; m = 1, s = 0)
1313
# @named force = SineForce(;amp=3e3, freq=15)
1414
@named fixed = Fixed()
1515
# @named m1 = Mass(;m=0.5)

0 commit comments

Comments
 (0)