Catera with additional transport models
To both check and update the cached state values. Reduces a lot of code duplication in the use of CachedValues. I'd like to make state1, state2, and stateNum private so that they can only be accessed with one of the validate functions, and also add some asserts to the validate functions that do not use all of the state variables to ensure that the unused ones are set to their default values to prevent the case where the wrong validate() function is called and incorrectly determines that the cached state is valid. First pass at making the state variables private caused a test failure for test_problems/statmech. The m_spthermo->update() call in IdealGasPhase::_updateThermo() throws an exception for this test right now that gets caught in equilibrate(). When using validate() the cached state variable is updated before the m_spthermo->update() call and subsequently it thinks that the thermo does not need to be updated, whereas when cached.state1 is being set after the m_spthermo->update() call it does not get set. The current blessed output for that test is just the text of the exception that gets caught, so I suspect the test may not work as is. |
||
|---|---|---|
| bin | ||
| data | ||
| doc | ||
| ext | ||
| include/cantera | ||
| interfaces | ||
| platform | ||
| samples | ||
| site_scons | ||
| src | ||
| test | ||
| test_problems | ||
| .gitignore | ||
| AUTHORS | ||
| INSTALL | ||
| License.txt | ||
| README | ||
| SConstruct | ||
******* CANTERA ******* Version 2.2a (development) License Information =================== See the file "License.txt" for information on the terms & conditions for usage, and a DISCLAIMER OF ALL WARRANTIES. All trademarks referenced herein are property of their respective holders. Web Resources ============= 1. The Cantera Google Code site: http://cantera.googlecode.com/ This site contains the Cantera source code, and the issue tracker for bugs and enhancement requests. 2. The Cantera SourceForge site: http://sourceforge.net/projects/cantera Distribution of Cantera releases and binary installers. It also contains the project CVS history. 3. Cantera Documentation: http://cantera.github.com/docs/sphinx/html/index.html This site contains documentation for the current stable version of Cantera. http://cantera.github.com/dev-docs/sphinx/html/index.html This site contains documentation for the development version of Cantera. 4. The Cantera User's Group: http://groups.google.com/group/cantera-users This site has a message board for discussions amongst Cantera users. 5. The Cantera Developers Group: http://groups.google.com/group/cantera-dev Limited access site where developers can discuss development ideas.