Commit Graph
765 Commits
Author SHA1 Message Date
Raymond Speth 272398e6e1 [Test] Fix badly-formated floats in XML input files 2021-01-29 21:35:40 -05:00
Ingmar Schoegl 85b8f23c35 Mark _allowGasPhase override as not intended for general use 2021-01-29 13:39:28 -05:00
Ingmar Schoegl ac1274fa0a [thermo] Finalize liquid-water-IAPWS95 updates 2021-01-29 13:39:28 -05:00
Ingmar Schoegl 4ba894df55 [thermo] Add IAPWS as alternative backend to existing Water wrapper
While the current 'liquid-water-IAPWS95' thermo model only implements liquid
(and supercritical) states, the underlying IAPWS formulation can be extended
beyond in future revisions.

- avoid 'liquid' as part of the nomenclature
- YAML phase name is updated to `water-iapws95`
- Instead of creating a new wrapper, `iapws95` is added as an alternative
  backend to the existing `Water` class
2021-01-29 13:39:28 -05:00
Ingmar Schoegl f3e2a940fb [thermo] Implement allowGasPhase override for WaterSSTP 2021-01-29 13:39:28 -05:00
Raymond Speth 68d85229d4 Add N2 to h2o2.yaml
This makes it possible to use the h2o2 mechanism with air as the oxidizer.
2021-01-24 22:07:55 -05:00
Raymond Speth a4635b79f2 [SCons] Skip OpenMP test/sample when omp.h is not available 2021-01-24 22:07:02 -05:00
Ingmar Schoegl 986f44bc33 [samples] Fix cxx demo and add sample to test suite 2020-09-04 17:19:31 -04:00
Ray Speth 07dac7be82 [Test] Update output files for C++ flamespeed sample
The old version of the sample was using a strange definition for the
composition of air which corresponded to neither of the typical
approximations, for example "O2: 1.0, N2: 3.76" or "O2: 0.21, N2: 0.79".
2020-07-05 11:10:05 -04:00
Ray Speth 421ea8feb3 [Test] Add regression test based on C++ openmp_ignition sample 2020-07-03 13:06:02 -04:00
Ray Speth 8aa33e9a12 [Test] Add regression test of C++ LiC6_electrode sample 2020-07-03 13:06:02 -04:00
Ray Speth 53b756a5ea [Test] Use rankine C++ sample for regression test 2020-07-03 13:06:02 -04:00
Ray Speth 257e390b2a [Test] Add regression test using C++ Blasius BVP sample 2020-07-03 13:06:02 -04:00
Ray Speth 097f0e9ca3 [SCons/Test] Enable comparisons of profile data in regression tests
This is the same method used for profile comparisons in the Python test
suite. These comparisons are skipped (with a warning) if Numpy is not
installed.
2020-07-03 13:06:02 -04:00
Ray Speth 10aee9755d [Test] Remove remaining cxx_ex sub-tests
We have plenty of tests of the equilibrium solver for ideal gas mixtures,
and the reaction path diagram test doesn't make a very good C++ example.
2020-07-03 13:06:02 -04:00
Ray Speth 287d9baf2d [Test] Make cxx_ex transport tests into a (tested) c++ sample program 2020-07-03 13:06:02 -04:00
Ray Speth 19d6608c64 [Test]: Add regression test of c++ 'kinetics1' sample program
Remove the existing cxx_ex test which duplicates this sample.

Differences in blessed output are a result of updates to atomic weights
in dc96fb5fe8.
2020-07-03 13:06:02 -04:00
Ray Speth e773e3e59a [Test] Add regression test using C++ combustor example
Changes to the blessed output file are a result of updates to atomic weights,
and to fixes for how flow devices are updated (#886)
2020-07-03 13:06:02 -04:00
Ray Speth 45778cd5c6 [Test] Add regression test using C++ flamespeed sample
Add optional command line arguments to the sample so that it can
produce stable output.
2020-07-03 13:06:02 -04:00
Ray Speth 23fab0997f [Test] Reduce absolute comparison tolerance for Fortran 90 test 2020-06-26 18:00:38 -04:00
Ray Speth c3769ba56d [Fortran/Test] Add regression tests using the Fortran samples
The changes in the ctlib blessed output are mainly due to the updates of
physical constants and atomic weights (see 3e4842be9e and dc96fb5fe8).
2020-06-24 16:36:31 -04:00
Ray Speth ac11e7c99d [Test] Simplify setup of "test_problems" regression tests
- Use more standard approach to handling constructor kwargs
- Provide default values for additional arguments
- Integrate handling of programs used for multiple tests
2020-06-10 22:00:12 -04:00
Ray Speth ceeee5cf43 [Test] Clean up all compiler intermediates in test_problems
Some of the build files in the test_problems folder were not being
cleaned by scons test-clean. This seems to be because they were not the
same name as the executable.
2020-06-10 22:00:12 -04:00
Ray Speth 15b9b33455 [Thermo] Deprecate class FixedChemPotSSTP
This model can easily be replaced with StoichSustance using ConstCpPoly for the
species thermo.

The changed values in the LiSi regression tests suggest that there are some
implementation errors in the FixedChemPotSSTP class which will be automatically
resolved by eliminating it.
2020-04-05 11:21:25 -04:00
Ray Speth 4082636dc3 [Thermo] Deprecate "gas" mode of IdealSolnGasVPSS 2020-04-05 11:21:25 -04:00
Ray Speth 5bf5a794d2 Fix compiler warnings raised by Visual Studio and Clang 2020-01-11 12:19:20 -05:00
Ray Speth 69257433db [Test] Include non-numeric text in test_problems comparisons 2020-01-10 13:39:05 -05:00
Bryan W. Weber 7e50b7e53b [Test] Fix tests after updating report format
These regression tests include the output of ThermoPhase::report in the
test comparison.
2020-01-02 11:56:13 -05:00
Bryan W. Weber d185247529 [Test] Fix typo in silane_equil executable name 2020-01-02 11:56:13 -05:00
Ingmar Schoegl ef8dd04b7a [Thermo] fix setDensity in C++ layer 2019-12-06 13:52:53 -05:00
Ray Speth 8083fc7372 Fix incorrect method names referenced in error messages 2019-12-04 19:45:31 -05:00
Ingmar Schoegl 5bc81bf397 Finalize cleanup of warning messages 2019-11-10 22:56:20 -05:00
Ingmar Schoegl f5f7227e79 [Thermo] reformat NasaPoly2::validate warning 2019-11-10 22:56:20 -05:00
Ingmar Schoegl 91c7bf14d7 [Base] finalize introduction of Solution object in C++ layer 2019-11-08 15:12:36 -05:00
Ingmar Schoegl 2a9554c134 [Base] consolidate shared_ptr access in Solution 2019-11-08 15:12:36 -05:00
Ingmar Schoegl 58fc8f770c Replace doublereal by double 2019-11-08 15:12:36 -05:00
Ingmar Schoegl a0350925a7 [test_problems] replace convenience wrapper classes by C++ Solution
- Remove dependence on IdealGasMix.h
2019-11-08 15:12:36 -05:00
Paul c4aff04418 Updated URL in references to Cantera's license. 2019-09-23 22:02:33 -04:00
Bryan W. Weber ded50547f9 Update test results changed by constants and elements
Update reference values and blessed files in regression tests.
2019-08-09 15:15:30 -04:00
agarwalrounak 7523022d71 Update diamond.cti and diamond_cvd.py
Replace data/inputs/diamond.cti with test_problems version that has
more information. This results in a change in the default pressure and
mole fractions of the gas phase, which in turn changes the result of
one of the regression tests. This is fixed by setting the composition
and pressure of the gas phase in the test to their original values. The
default state from the CTI file matches from the paper.

In addition, there was a difference in the reversibility of reaction u
between the files. Since the thermo for C(d) specifies that the
reaction is irreversible, this is the sense of the reaction that is
chosen.

Include plotting in the diamond_cvd.py and use open properly.
2019-08-05 14:09:03 -04:00
Ingmar Schoegl d263566670 [Reactor] Deprecating magic numbers.
* add deprecation warning for int ReactorBase::type() (to be changed after Cantera 2.5)
 * introduce temporary std::string ReactorBase::typeStr() (to be renamed after Cantera 2.5)
 * deprecate all functions using the old call and introduce associated temporary functions
2019-08-01 15:37:48 -04:00
Bryan W. Weber 296e2912e5 [Test] Update to not use deprecated PureFluid.h
Update test_problems for rankine and pureFluid to avoid using the
deprecated PureFluid.h convenience wrapper classes. Update the
rankine.cpp test problem to match the rankine.cpp sample. Switch
both test_problems updated here to use writelog instead of
printf/cout.
2019-07-30 13:24:11 -04:00
Ray Speth 6a8c378846 [clib] Add functions for creating objects directly from input files
These methods work with YAML, CTI, and XML input files.
2019-06-25 22:30:59 -04:00
Ray Speth 6c82b61c3d [Kinetics] Always use temperature of "reacting" phase
This is always the lowest-dimensional phase, e.g. surface or edge for
heterogeneous systems.
2019-03-05 15:03:48 -05:00
Ray Speth 8bcb62f727 Fix GRI3.0 transport coefficients
The old (C++) ck2cti program unnecessarily rounded some species transport
coefficients. This updates the coefficients in the input files derived from GRI
3.0, and updates the test comparisons for affected tests.
2019-02-25 11:05:40 -05:00
Ray Speth 27c64b76f8 [Thermo] VPStandardStateTP does not use reference thermo objects
Since VPStandardStateTP and derived classes do not use the reference state
thermodynamic properties in the m_spthermo object, we can just install
placeholder objects there, and eliminate the wrapper clas STITbyPDSS.
2019-01-23 16:43:44 -05:00
Ray Speth 0f1da269fc [SCons] Simplify handling of PYTHONPATH in the test suite 2018-09-19 17:59:59 -04:00
Ray Speth d6da006e3e [SCons] Only build the Python package for Python 3.x 2018-09-19 17:59:59 -04:00
Ray Speth ff4958a720 [Transport] Migrate wtWater test to GTest test suite 2018-09-07 23:24:23 -04:00
Ray Speth b0deb41708 [Transport] Make WaterTransport constructible using newTransportMgr
This makes it possible to specify the WaterTransport model in XML input files,
and to use the model from Python and Matlab.

Resolves #289
2018-09-07 23:24:23 -04:00