marco's blog

IDAError

Hi,

I have realized this model:
***************************************************************************************************
model Tank
ReadSignal tSensorLevel;
LiquidFlow qIn;
LiquidFlow qOut;
parameter Real a = 0.02;
Real xt(start = 0.0);
equation
der(xt) = (qIn.lflow - qOut.lflow);
qOut.lflow = a*xt;
tSensorLevel.val = xt;
end Tank;
connector ReadSignal
Real val;
end ReadSignal;
connector LiquidFlow
Real lflow;
end LiquidFlow;
model BaseController
parameter Real hMax = 8;

Syndicate content