Numerical model and simulation of a truck with a fluid basin
Octave compatible version: https://github.com/auralius/truck-with-fluid-basin/tree/octave
The model is based on the following paper:
Numerical optimal control of a coupled ODE-PDE model of a truck with a fluid basin
This is still an ongoing work. The goal is similar to the paper mentioned above. However, we will deploy different optimization methods.
The animation below shows the moving truck due to an external forces of 4000N for 0.5 seconds. After that, the force is removed. See the file: demo1.m. Since there is no friction between the truck and its environment, the truck keeps moving.
See also this PDF file for the model derivation process.