Unable to get a certain mass of gas to enter a cosntant volume chamber, build up pressure then leave to go into the rest of the system.
37 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
1 comentario
Yifeng Tang
el 13 de Nov. de 2024 a las 15:58
Could you please explain your question better so the community can better understand and help you?
Respuestas (1)
Pramil
el 22 de Nov. de 2024 a las 6:54
Assuming the value of variable "ptankVolume" to be "1", there are some changes required in your model in order to tackle the warnings you are getting.
1st Warning: "First solve for initial conditions failed to converge. Trying again with all high priorities relaxed to low".
- As the warning suggests, the solver is not able to find a solution for high priority values.
- This can be addressed by simply setting the priority of the target, in this case pressure in the "Volume Chamber" to low.
2nd Warning: "Solver was unable to reduce the step size without violating the minimum step size value of 3.55271E-14 for 1 consecutive times at time 10".
- This error is due to the sudden change in flow rate due to which the solver is not able to compute the values at timestep "10".
- Inorder to have a smooth transition and allow solver to be able to calculate the value, you can add the "Rate Limiter" block. This prevents the sudden change in value and hence get rid of the warning as well.
You can refer this documentation to know more about the "Rate Limiter" block:
I have also attached the updated model for your reference, if you have any doubts, feel free to drop them in comments here.
0 comentarios
Ver también
Categorías
Más información sobre Gas Models en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!