Hi all,
I've been developing a PSR for a reactive fluid CFD code. This code uses very small control volumes at various ranges of pressures and temperatures. This code also has dynamic mesh, so the control volumes are expected to go smaller.
With some reactors Cantera prints in the console:
"
***********************************************************************
CanteraError thrown by Phase::setDensity():
density must be positive
***********************************************************************
[CVODES ERROR] CVode
At t = 7.93512e-09 and h = 1.7748e-18, the error test failed repeatedly or with |h| = hmin.
***********************************************************************
CanteraError thrown by CVodesIntegrator:
CVodes error encountered. Error code: -3
"
I decided to test the reactor apart from the CFD program and introduce the values in the code in Cantera alone and i got the same error. I tested in Chemkin with the same conditions and it worked. I tested modified examples in python and I got the same error. The error is the same even if you change the mechanism. So i decided to change the parameters of the reactor one by one and see when the error disappears. The variables are temperature, Reactor volume, Reactor pressure and fuel mass flux. These variables appear in the code as ins[0], ins[1], ins[2] and ins[4] respectively.
If you leave "Reactor volume=5.8e-2" you can change every other variable in the most absurd way and it works. But if you set "Reactor volume=5.8e-13" or even "Reactor volume=5.8e-03" it breaks.
¿Why is this happening?
Thanks and my best regards,
Carlos