Solve a simple wave equation with System Modeler: Equation-based Approach

GROUPS:
1 year ago
2 Replies
 Malte Lenz 1 Vote This is very nice, Shenghui!You could simplify your definition of var a little by using the string form also allowed in WSMPlot. This would avoid the complicated LeftPointer and RightPointer symbols:var[i_Integer]:="ndisp["<>ToString[i]<>"]";
1 year ago
 @Malte, Thanks for the suggestion. I also notice that I can use WSMSetValues if I have a internal parameter that handles this index in the modelica code.