Scilab 6.1.1 xcos spring movement model

Hello, I need help because I have no idea how to do this task:
Set context (menu simulation, e.g.: k=1, m=1)
2. Use INTEGRAL_f, GAIN_f(-k/m)
3. In the model, reproduce the signal property described above:

  • signal after double integration INTEGRAL_f INTEGRAL_f and
  • multiplied by the constant GAIN_f(-k/m)
  • is still the same signal
  1. The model should enable simulations of changes over time (CSCOPXY time series)
    a. Spring weight locations
    b. Speeds
    c. Accelerations
  2. The model should also enable the study of the relationship between
    (phase diagram)
    a. location and speed
    b. position and acceleration
    1

I’ve already set the context k=1,m=1 and so far I’ve done only this because I don’t know what to do next

Point 1 is missing. Namely, the definition of the input signal.

S.

1 Like

F = -kx
m*((d^2 * x)/(d * t^2)) = -k*x
(d^2 * x)/d * t^2) = -(k/m)*x

x - position
(d * x)/(d * t) - speed
(d^2 * x)/(d * t^2) - acceleration

3

From my understanding, you should also have 3 CSCOPE to display these over time.

These can be represented on 2 CSCOPEXY.

I have already did something in MATLAB you can use it here too.