SimScape Gas simulation error
6 views (last 30 days)
Show older comments
Hi, I'm working to a simscape project, and the results of the simulations were fine (no warnings, no errors, physical results accurate and control logics accomplished) till yesterday. Today I opened the project, I executed it without applying any modifications in the model parameters nor in the simulator parameters, and I riceived the following warnings:
Firstsolve for initial conditions failed to converge. Trying again with all high priorities relaxed to low.
Component:Simulink | Category:Model warning
第二solve for initial conditions failed to converge. Trying again with all variable targets ignored.
Component:Simulink | Category:Model warning
Unableto satisfy all initial conditions. The variables involved are listed below.
Thefollowing变量的目标无法兑现:
'Tank_1.T_I'(Temperature of gas volume)
'Tank_1.p_I'(Pressure of gas volume)
'tank_2.t_i'(Temperature of gas volume)
'Tank_2.p_I'(Pressure of gas volume)
'Tank_3.T_I'(Temperature of gas volume)
'Tank_3.p_I'(Pressure of gas volume)
'Tank_4.T_I'(Temperature of gas volume)
'Tank_4.p_I'(Pressure of gas volume)
'Tank_5.T_I'(Temperature of gas volume)
'Tank_5.p_I'(Pressure of gas volume)
'Tank_6.T_I'(Temperature of gas volume)
'tank_6.p_i'(Pressure of gas volume)
'Tank_9.T_I'(Temperature of gas volume)
'Tank_9.p_I'(Pressure of gas volume)
Those are pressures and temperatures of the tanks in my plant.
As a consequence, the simulation doesn't run because of simulation errors. The fact is that I didn't modify anything. Between the two runs I didn't even use my PC.
If I try to modify slightly the initial conditions the simulation runs, but way faster than before and it gives an error after a few seconds.
Does anyone have ever experienced something like this? And how did you manage?
Thank you a lot
0 Comments
Accepted Answer
Juan Sagarduy
on 16 Mar 2021
Hello Federico
Debugging such model is often difficult, and various settings may affect. My recommendation would be to reach MathWorks technical support and share the files as well.
Br Juan
0 Comments
More Answers (0)
See Also
Categories
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
开始狩猎!