Initial conditions failed to converge

4 views (last 30 days)
Maximus
Maximus on 27 Jul 2025
Commented: Maximus on 29 Jul 2025
I get the following error for a simple circuit I made to test how accumulators work:
An error occurred during simulation and the simulation was terminated
Caused by:
['AccumulatorTest/Solver Configuration']: Initial conditions solve failed to converge.
Nonlinear solver: Linear Algebra error. Failed to solve using iteration matrix.
all components and nodal across variables involved
Cannot solve for one or more variables, including dynamic variable derivatives:
Time derivative of 'Gas_Charged_Accumulator_TL.T_I' (Temperature of liquid volume)
Time derivative of 'Gas_Charged_Accumulator_TL.p_I' (Pressure of liquid volume)
'Fixed_Displacement_Pump_TL.Phi_A' (Energy flow rate into port A)
... (it lists off several more variables)
Problems possible for transient initialization, as well as stepsize control for transient solve, due to equations of one or more components:
all components involved
'AccumulatorTest/Fixed-Displacement Pump (TL)'
Equation location is:
'C:\Program Files\MATLAB\R2025a\toolbox\physmod\fluids\library\m\+fluids\+thermal_liquid\+pumps_motors\fixed_displacement_pump.sscp' (no line number info)
... (it lists off several more equations)
I have attached the model file. Thanks for the help!

Answers (1)

Jacob Mathew
Jacob Mathew on 29 Jul 2025
I was able to remove the error "Initial conditions solve failed to converge" by replacing the Ideal Torque Source Block with a Ideal Angular Velocity Block. However, this means the pump is now rotating at a constant rpm than compared to using a torque source which would allow the pump to reach a steady state rpm. This might not be desirable for the analysis you want to perform and might need further tweaking of the model to get the pump to work as intended.
I have attached my model "AccumulatorTestModified.slx" as reference
  1 Comment
Maximus
Maximus on 29 Jul 2025
Hi Jacob,
Thanks for taking the time to write this answer! Since I was only attempting to test the accumulator, this workaround will work for now, although I do wonder why the Torque block wasn't working. Thanks again!

Sign in to comment.

Products


Release

R2025a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!