i've got such code in Modelica:\
model BioPowerSetup
Modelica.Blocks.Interfaces.RealOutput BioPowerOutput;
parameter Real alpha = 0.05;
parameter Real mu1 = 7 / 25 ;
Real Nmax = 25;
parameter Real D = 0.2 ;
Modelica.Blocks.Noise.TruncatedNormalNoise Noise(y_min = -0.028, y_max = 0.028, samplePeriod = 1); equation
if BioPowerOutput < 489100 then
BioPowerOutput = alpha * mu1 * (Nmax * exp(mu1 * time));
else
BioPowerOutput = 489100 * exp(Noise.y * time);
end if;
end BioPowerSetup;
After compiling this program, it interrupts on the 55s with such error:
Warning: [EVENT] Mixed block did not converge during event iteration. [b4»] [@55.0 s]
Error: [GENERAL] Mid-simulation event iteration didn't converge. [@55.0 s]
I will be glad of any help!
I think, that error is located in the algebraic operation with noise value, but i don't know what to do with it.
Aucun commentaire:
Enregistrer un commentaire