Lookup table based modelling v/s Differential equations?

1 view (last 30 days)
Which of the two mentioned methods would be best to model and simulation a system?
Lets consider a spring and damper system. We can derive differential equations where one would need the values for spring constant and damping factor.
What if there is data for spring and dampers in the form of force vs displacement for Spring and force vs velocity for dampers. This data could be used in lookup table block in simulink to model the system.
Which method between the two: Lookup table based & Differential equations would be the best ? And why?
  3 Comments
Nimish Iwale
Nimish Iwale on 29 Apr 2020
Best for the following in order of importance, 1. Precision 2. Accuracy 3. Complexness 3. Simulation speed
darova
darova on 29 Apr 2020
Edited: darova on 29 Apr 2020
Constant factor simpler to code and it's faster
Something like interp1 (interpolation) is needed for table values. It will be slower
If you can use constants for spring and damper - use them

Sign in to comment.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!