Using DiabaticCombustionChamber with BICUBIC/TTSE backend #660
Unanswered
NilsBarner
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Good morning @NilsBarner you can import the logger and change the file and screen log levels: from tespy.tools.logger import define_logging
Import logging
define_logging(screen_level=logging.ERROR, file_level=logging.ERROR) Would that help? I have to check myself, how to entirely shut it down... To your other question: pyromat is slower because its backwards methods are super slow (ph calls, which are the one most often accessed by tespy). I was not aware before implementing it. Maybe thermopack could be of help, but we need to implement a wrapper for that first (may not be too difficult). Or you could generate the lookup tables yourself from HEOS and then use lookup tables in a custom wrapper? We can talk about this topic and make a meeting, if you want. Best Francesco |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Good morning,
I would like to integrate the tespy DiabaticCombustionChamber module into another python library, for which the default implementation using the HEOS backend is prohibitively slow. From my own experience, switching to the BICUBIC/TTSE backend should do the trick, however, the simple example below returns
ValueError: inputs are not in range, p=6340.41 Pa, T=298.15 K
, because the tabular backends in CoolProp do not extend below the triple-point (of nitrogen in this particular case).As none of the partial pressures should actually be below the triple-point pressure of nitrogen, I suspect this is due to some tespy-internal solver being out of bounds. Could you either suggest a fix to this approach of speeding up the below example, or propose an alternative? Interestingly, the PyromatWrapper with ideal gas backend is even slower than HEOS...
Finally, because I want to integrate the tespy DiabaticCombustionChamber module into another python library, I would like to turn off all printouts, both the console and to any log files. Is there a top-level command for this or do I have to uncomment all instances of
logger
in the tespy src folder (as I have done)?Thank you for your help, best wishes,
Nils
Beta Was this translation helpful? Give feedback.
All reactions