Simulink Initial Conditions error

조회 수: 8 (최근 30일)
phillip benoit
phillip benoit 2025년 2월 9일
댓글: phillip benoit 2025년 2월 9일
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
karthik kumar k
karthik kumar k 2025년 2월 9일
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개)

karthik kumar k
karthik kumar k 2025년 2월 9일
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
phillip benoit
phillip benoit 2025년 2월 9일
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.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Simscape Electrical에 대해 자세히 알아보기

제품


릴리스

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by