- Check Initial Conditions: Make sure the initial conditions you've set for your model are physically realistic and don't conflict with each other. For example, the error message seems to suggest that there is a conflict between the initial temperature of the electrolyzer and the water tank.
- Check Your Parameters: The error message also mentions that the volume of liquid must be greater than or equal to zero. This suggests that there might be a negative value somewhere in your parameters.
- Division by Zero: The error message indicates a division by zero in 'Wind_DC_Battery_Complete/Scopes/Product1'. Check this part of your model to ensure there's no scenario where a division by zero could occur.
- Solver Settings: You might also want to play around with the solver settings. Sometimes, changing the solver or adjusting the solver parameters (like the step size or tolerance) can help with convergence issues.
simulation of wind_solar_electrolyzer _fuel cell system
9 views (last 30 days)
Show older comments
Hello sir,
when i am simulating wind_solar_electrolyzer _fuel cell system, the following error is coming. Kindly help me to resolve it.
ERROR:
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
Warning: Matrix is close to singular or badly scaled. Results may be inaccurate. RCOND = 1.687506e-20. > In ne_inconsistent_ic
Unable to satisfy all initial conditions. The variables involved are listed below. The following variables are involved in a constraint that conflicts with their targets: 'Electrolyzer.Electrolyzer.R_heat.T' (Temperature) 'Electrolyzer.Electrolyzer.Water_Tank_TL.T_I' (Temperature of the liquid volume) Here are the equations involved: all components involved'Wind_DC_Battery_Complete/Electrolyzer/Electrolyzer'Equation locations are: 'C:\Program Files\MATLAB\R2022b\toolbox\physmod\simscape\library\m\+foundation\+electrical\+elements\thermal_resistor.ssc' (line 65) 'C:\Program Files\MATLAB\R2022b\toolbox\physmod\fluids\fluids\+fluids\+thermal_liquid\+tanks_accumulators\tank.sscp' (no line number info) The following variables are involved in a constraint that conflicts with their targets: 'Electrolyzer.H2_Storage_Tank.T_I' (Temperature of gas volume) Here are the equations involved: all components involved'Wind_DC_Battery_Complete/Electrolyzer''Wind_DC_Battery_Complete/Electrolyzer/H2 Storage Tank'Equation location is: 'C:\Program Files\MATLAB\R2022b\toolbox\physmod\simscape\library\m\+foundation\+gas\+elements\constant_volume_chamber.ssc' (line 202) 'Wind_DC_Battery_Complete/Electrolyzer/Storage Temperature'Equation location is: 'C:\Program Files\MATLAB\R2022b\toolbox\physmod\simscape\library\m\+foundation\+thermal\+sources\temperature.ssc' (line 26) The following variables' targets could not be honored: 'Battery.Dynamic.Battery1.num_cycles' (Discharge cycles) 'Battery.Dynamic.Battery1.charge' (Charge) 'Battery.Dynamic.Capacitor.vc' (Capacitor voltage) 'Capacitor.vc' (Capacitor voltage) 'Electrolyzer.H2_Storage_Tank.p_I' (Pressure of gas volume) 'Electrolyzer.Sensor.PS_Integrator.x' (x) 'Energy_storage.Battery.num_cycles' (Discharge cycles) 'Energy_storage.Battery.charge' (Charge) 'Fuel_Cell.temperature' (Temperature) 'Electrolyzer.Electrolyzer.Water_Tank_TL.level' (Liquid level)
Component:Simulink | Category:Model warning
Component:Simulink | Category:Block warning
Suppress
An error occurred while running the simulation and the simulation was terminated
Caused by:
- ['Wind_DC_Battery_Complete/DC Generator/Solver Configuration1']: At time 0.000000e+00, one or more assertions are triggered. See causes for specific information.
- Volume of liquid must be greater than or equal to zero. The assertion comes from: Block path: Wind_DC_Battery_Complete/Electrolyzer/ElectrolyzerAssert location: o (location information is protected) o (location information is protected)
Component:Simulink | Category:Block error
0 Comments
Answers (1)
Hornett
on 17 Sep 2024
Hi Banne,
I understand that you are getting a bunch of errors while compiling your Simulink model, the error messages indicate that your Simulink model is having trouble solving the initial conditions of your system, it seems like there are conflicting constraints. Here are a few suggestions to troubleshoot this problem:
Hope this helps!
0 Comments
See Also
Categories
Find more on Thermal Liquid Library in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!