Simulink Initial Conditions error

7 visualizaciones (últimos 30 días)
phillip benoit
phillip benoit el 9 de Feb. de 2025
Comentada: phillip benoit el 9 de Feb. de 2025
I am really inexperienced with Simulink and am trying to simulate a very famous guitar pedal circuit from the 1960's but am unable to run it. Q1 and Q2 can be modeled after NKT275, AC128 or SFT363E germanium transistors.
Below are the errors i am getting, I have no idea how to fix this. I've attached the actual file as well.
First solve for initial conditions failed to converge. Trying again with all high priorities relaxed to low.
Component:Simulink | Category:Model warning
Second solve for initial conditions failed to converge. Trying again with all variable targets ignored.
Component:Simulink | Category:Model warning
An error occurred during simulation and the simulation was terminated
Caused by:
['FuzzFace/Solver Configuration']: Initial conditions solve failed to converge.
Here is the set of components with unconverged equations:
'FuzzFace/Battery'
Equation location is:
'C:\Program Files\MATLAB\R2024a\toolbox\physmod\battery\shared_library\m\+batteryecm\battery.sscp'(no line number info)
Equation location is:
'C:\Program Files\MATLAB\R2024a\toolbox\physmod\battery\shared_library\m\+batteryecm\battery.sscp'(no line number info)
  1 comentario
karthik kumar k
karthik kumar k el 9 de Feb. de 2025
To fix the issue, replace the Battery block with a DC Voltage Source and re-run the simulation. The Battery block may be introducing complexity that the solver can't handle. Follow these steps:
  1. Replace the Battery block with the DC Voltage Source block from the Simulink Simscape > Electrical > Sources library.
  2. Set the voltage of the DC Voltage Source to match the expected battery voltage (e.g., 9V for the Fuzz Face circuit).
  3. Re-run the simulation.
If the problem persists, reduce the solver's step size by going to Solver Configuration and setting the Max step size to 1e-6.

Iniciar sesión para comentar.

Respuestas (1)

karthik kumar k
karthik kumar k el 9 de Feb. de 2025
To fix the issue, replace the Battery block with a DC Voltage Source and re-run the simulation. The Battery block may be introducing complexity that the solver can't handle. Follow these steps:
  1. Replace the Battery block with the DC Voltage Source block from the Simulink Simscape > Electrical > Sources library.
  2. Set the voltage of the DC Voltage Source to match the expected battery voltage (e.g., 9V for the Fuzz Face circuit).
  3. Re-run the simulation.
If the problem persists, reduce the solver's step size by going to Solver Configuration and setting the Max step size to 1e-6.
  1 comentario
phillip benoit
phillip benoit el 9 de Feb. de 2025
I changed out the battery with the 9VDC voltage source and changed the max step size. It now gives me this error:
An error occurred during simulation and the simulation was terminated
Caused by:
['FuzzFace/Solver Configuration']: Initial conditions solve failed to converge.
Here is the set of components with unconverged equations:
'FuzzFace/Volume'
Equation location is:
'C:\Program Files\MATLAB\R2024a\toolbox\physmod\elec\library\m\+ee\+passive\potentiometer.sscp'(no line number info)
Component:Simulink | Category:Block error
I'm not sure if the potentiometers are configured correctly. This is what is in thier settings.

Iniciar sesión para comentar.

Categorías

Más información sobre Simscape Electrical en Help Center y File Exchange.

Productos


Versión

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by