How to simulate a fuel cell (specialized power systems) connected to a DC/DC converter in Simulink using simscape blocks?

4 views (last 30 days)
Hello everyone,
I have been trying for the last couple of days to create a model in Simulink of a fuel cell (using the block included in Simscape Electrical Specialized Power Systems) coupled to a DC/DC converter (using the block included in Simscape Electrical) as you can see in the code I attached to this post. The idea is to get the voltage from the fuel cell and raise it to 20 VDC. I don't know why but it keeps showing me this error:
An error occurred while running the simulation and the simulation was terminated
Caused by:
  • ['try_DCDC_Wandler/Solver Configuration1']: Initial conditions solve failed to converge.
  • Here is the set of components with unconverged equations: 'try_DCDC_Wandler/DC-DC Converter'Equation location is: 'C:\Program Files\MATLAB\R2021a\toolbox\physmod\elec\library\m\+ee\+semiconductors\+converters\dc_dc_converter_base.sscp'(no line number info) Equation location is: 'C:\Program Files\MATLAB\R2021a\toolbox\physmod\elec\library\m\+ee\+semiconductors\+converters\dc_dc_converter_base.sscp'(no line number info) Equation location is: 'C:\Program Files\MATLAB\R2021a\toolbox\physmod\elec\library\m\+ee\+semiconductors\+converters\dc_dc_converter_base.sscp'(no line number info) Equation location is: 'C:\Program Files\MATLAB\R2021a\toolbox\physmod\elec\library\m\+ee\+semiconductors\+converters\dc_dc_converter_base.sscp'(no line number info) Equation location is: 'C:\Program Files\MATLAB\R2021a\toolbox\physmod\elec\library\m\+ee\+semiconductors\+converters\dc_dc_converter_base.sscp'(no line number info)
I would really appreciate it if someone could help me or at least point me in the right direction. Thank you very much in advance!

Answers (1)

Joel Van Sickel
Joel Van Sickel on 3 Aug 2021
Hello Diego,
you can place a capacitor (on the simscape side) on the input to your dc/dc converter and set its initial voltage to a similar value to your fuel cell output voltage. (I placed it between the diode and the dc/dc converter to get it to start) This will allow the equations to converge. However, in general, mixing and matching simscape and specialized power systems creates very unstable models. It would likely be better to either use the simscape fuel cell model or replace the dc/dc converter with a specialized power systems block.
Regards,
Joel

Products


Release

R2021a

Community Treasure Hunt

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

Start Hunting!