Encountering errors while adding a three-way valve to redirect flow based on temperature in SimScape fuel cell model for cooling system. Need help troubleshooting.

I am encountering difficulties modeling a cooling system in SimScape that involves a three-way valve to redirect flow based on temperature. While using a fuel cell SimScape model as a base, I've modified the model to include a three-way valve that directs flow through the pump, cooling channels, and heat exchanger when the fuel temperature reaches a set value. My primary focus is on modeling the cooling system, and I'm not particularly concerned with the fuel cell. This what i trying to model,
However, the simulation is generating an error message that reads 'Transient initialization at time 1.195706359781554e-06, solving for consistent states and modes, failed to converge. Nonlinear solver: failed to converge, residual norm too large.' This error seems to be impacting the tank, three-way valve, and cooling channels. To operate the valve, I've set the maximum spool travel to 3 cm and established the spool position at maximum A-T orifice area to -0.001 and the spool position at maximum P-A orifice area to 3. This model currentlly,
I have included images of the sub-models for the cooling system, heat flow input, and flow control. These sub-models show the individual components and connections of each system, such as the heat exchanger, pump, and three-way valve in the cooling system sub-model.
cooling system sub-model:
flow control:
heat flow input:
Would you be able to assist me in diagnosing this error and determining its cause?

2 Comments

I don't see anything unreasonable with the network itself. So I have to guess it's some incompatibility of the parameters. If you could share the model, it'll make further diagnostics possible.
One thing you may want to check quickly: do you have any elevation in the tank outlets? If so, they needs to be cancelled out by the elevations elsewhere, but I don't see any component that can do so. Non-zero elevation ports connected as a loop can be an infinite source of energy (GREAT!), and may lead to the error you see. Just a guess.

Sign in to comment.

Answers (0)

Products

Release

R2022b

Asked:

on 13 Mar 2023

Commented:

on 24 Mar 2023

Community Treasure Hunt

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

Start Hunting!