Minimum valid Temperature Error At Time 0
7 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I have set up a simple gas system:
Two constant pressure chambers connected by an ISO Orifice. The Temperature of both chambers and the temperature source are set to high, with the same value of 273.15K. However, when I try to run the simulation with Real or Semiperfect gas, I get an error:
- At time 0.000000, one or more assertions are triggered. See causes for specific information.
- Temperature at port B must be greater than or equal to Minimum valid temperature. The assertion comes from: Block path: SimplifiedTest/Orifice ISO 6358 (G)
I'm not sure why this is happening, or how to fix it. The same issue happens with similar setups with other pipes or flow restrictions.
0 commentaires
Réponses (1)
Zuber Khan
le 18 Sep 2024
Hi,
It is possible that the the step size is unfortunately too large for the model to simulate stably. I recommend using the variable step solver (i.e., no local solver) while developing a model, as it is generally more robust.
If you need to run the model in fixed step, then you will have to decrease the step size and/or increase the number of non-linear iteration. When running in fixed step and the step size is not small enough, it is common to get a failure near the start of simulation. This is because the initial values of the variables in the model are not always close to where they want to be.
Therefore, one way to improve it is to set the initial values of variables (e.g., pressure ,temperature, etc.) closer to where they should be (for example, based on the results obtained from a variable step simulation). You can even consider using the Simscape operating point to save an operating point a few second after the simulation starts (when it looks like things have settled down), and start the simulation from the saved operating point instead.
If the issue still persists, you can try decreasing the initial temperature at either of the pressure chambers and analyze how the model behaves.
I hope it helps.
Regards,
Zuber
0 commentaires
Voir également
Catégories
En savoir plus sur Gas Models dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!