Search code examples
modelicadymolaopenmodelica

Controller for model in Dymola


I need to control a flow that over time will go down to zero. From Matlab I have constructed a x and y graph where x is time and y is the Q-flow(Heat). What kind of controller could I use for this? I have looked at Ramp or firstorder.

From the picture the red circle is where I want to connect the controller.

enter image description here


Solution

  • Modelica.Blocks.Sources.TimeTable and Modelica.Blocks.Sources.CombiTimeTable should do the trick. You might even be able to copy-paste your x-y array from matlab.

    (Personal advice: pay attention to the documentation; only considering the icon, I messed up sometimes the vector index I wanted to connect as the output)