Bond graph based modelling using macros by Henk Verheul