Casual Introduction to Numerical Methods – a spring-mass-damper system model – part#3

Here is the third part of a tutorial in both elementary dynamics and numerical methods. It is written at a basic level and it shows you how to set up a dynamic model for numerical solving of simple differential equations.   The dynamic model makes use of an infinite loop, which make the calculations advance in time. Instead of a large table with formulas, this time we have a small number of cells with formulas in the upper part of the table (usually calculations take place in the top most row let’s call it “the current time row” or “the present”) and a large number of cells with historical data (constants) under this active row.
During every loop sequence, a new set of calculations in the “current time row” occur. The input data used in this calculations is taken from the last set of historical data (previous time step). The historical data is organized like a FIFO stack: the oldest time step of historical data is deleted each cycle, the rest of historical data is shifted down one time step per loop cycle to make room for the result of the new calculation which now will represent the latest historical data on top of the stack. Download the model and hit Reset first and then RunStop. Enjoy, George


This article has 2 Comments

  1. It should work in 2016 but a little slower. My wife has 2013 and I will check. How much did you pay for 2003? Yes I intend to do work in other packages. I recommend Scicos/Scilab. These are free replacement for Simulink/Matlab. Python is a temptation but you should use it as scripting language since it’s slow. I will also make more stuff in VBA from now on.

  2. Dear George,
    I remade you spring-damper-system-model in excel 2016. It can’t even drive the graphics and that is very sad. The python can drive numerical simulations in 0,002 s sequences. I love your tutorials and I allready purcheased excel 2003. Do you consider to make some work on the other free programs? Maybe Python?

Leave a Reply

Your email address will not be published. Required fields are marked *