Ray Speth
478a62d2af
[Thermo] Make tolerances used in state setters more consistent
2016-10-19 12:55:18 -04:00
Ray Speth
5b1a4a60bb
[Thermo] Fix silent failures in HP/UV/SV/SP convergence
...
In cases where the specified state was non-physical (i.e. corresponded to a
negative temperature), the iteration would exit when the temperature reached a
small enough value. Computing the error in temperature relative to the current
temperature avoids this problem.
Fixes #264
2016-10-19 10:58:22 -04:00
Ray Speth
89d0c5601f
[Python] Add CanteraError class for execptions
...
Anything that raises a CanteraError in C++ will now raise CanteraError in
Python, instead of the more generic RuntimeError.
This change increases the required Cython version to 0.23 or newer.
2016-10-18 22:58:14 -04:00
Ray Speth
940b7ea01f
[Matlab] Always allocate string buffers of an appropriate size
...
Never use fixed size buffers which can force content to be truncated
Resolves #118 .
2016-10-18 11:21:42 -04:00
Ray Speth
8a9eabeeac
[clib] Add buffer length argument to all functions returning strings
...
If the buffer is not long enough, the string is truncated and the return value
is the required buffer length. Otherwise, the return value is 0.
2016-10-18 11:21:42 -04:00
Ray Speth
c16c15367f
[Matlab] Fix ThermoPhase 'clear' method
...
This function was actually being directed into 'thermoget' and calling the
'newFromXML' method (on a non-existent XML tree) instead of calling the 'del'
method.
2016-10-18 11:21:42 -04:00
Ray Speth
5f0e20bf93
[clib] Rename some functions to increase consistency
2016-10-17 19:15:38 -04:00
Ray Speth
100d6db87b
[clib] Combine "phase_" and "th_" prefixes as "thermo_"
2016-10-17 19:15:38 -04:00
Ray Speth
bdda7b5eaf
[clib] Remove some redundant/unusable/unnecessary functions
2016-10-17 19:15:36 -04:00
Ray Speth
a8c6158543
[Matlab] Remove partial implementations of unneeded methods
2016-10-17 18:42:27 -04:00
Ray Speth
ad7a02d0e9
Add support for Sundials 2.7.0
2016-10-15 20:50:15 -04:00
Ray Speth
fd3f2c72fb
[clib] Remove ctbdry.h which declared only undefined functions
2016-10-15 20:50:15 -04:00
Ray Speth
b51c1b8e4e
[clib] Fix const-ness of clib function arguments
2016-10-15 20:50:15 -04:00
Ray Speth
40630a3ab4
Fix const-ness of some function arguments
2016-10-15 20:50:15 -04:00
g3bk47
83989824ea
[1D] made Domain1D::grid(size_t) a const member function
2016-10-15 18:24:35 -04:00
g3bk47
e83b095c3a
[Kinetics] added const version of Kinetics::reaction
2016-10-15 18:24:35 -04:00
Ray Speth
50d0f9913f
[Test] Make reaction rate comparisons more granular
2016-10-15 13:36:38 -04:00
Ray Speth
e7ac87918d
Update .gitignore
2016-10-15 11:44:52 -04:00
Ray Speth
ce502d5268
Fix Travis links in README.rst
2016-10-14 20:05:13 -04:00
Ray Speth
9f115c4526
[Doc] Add MSVC redistributable to installation instructions
2016-10-14 18:52:56 -04:00
Ray Speth
cb2876c33c
[Doc] Add some information about compiling to the "simple" c++ example
2016-10-14 17:31:40 -04:00
Ray Speth
ac771aaac5
[Doc] Adjust example docstrings to get better automatic summaries
2016-10-14 17:20:18 -04:00
Ray Speth
0c1eb4cd89
[Doc] Include summaries of each example in index of Matlab examples
2016-10-14 17:06:45 -04:00
Ray Speth
994d7e9a53
[Doc] Adjust example docstrings to get better automatic summaries
2016-10-14 17:06:45 -04:00
Ray Speth
a35a0cb510
[Doc] Include summaries of each example in index of Python examples
2016-10-14 17:06:45 -04:00
Ray Speth
5af1dfd29c
Add notices to documentation for classes with no tests or examples
...
See #267
2016-10-13 18:40:03 -04:00
Ray Speth
c8d3aa23d2
[Samples] Remove unused function 'writeCanteraHeader'
2016-10-13 18:40:03 -04:00
Ray Speth
e6bf450620
[Kinetics] Simplify logic in C_AnyN::multiply
2016-10-13 18:40:03 -04:00
Ray Speth
6ca9dc2cc3
[Kinetics] Remove unused m_finalized member variable
2016-10-13 18:40:03 -04:00
Ray Speth
0b5e209b40
[Kinetics] Remove unused private members of class Kinetics
2016-10-13 18:40:03 -04:00
Ray Speth
f17750e483
Make species names case-preserving instead of case-sensitive
...
This improves interoperability when working with mechanisms which use differing
conventions for naming species using uppercase or lowercase.
2016-10-13 18:40:03 -04:00
Ray Speth
deee889baf
[clib] Make clib headers public
2016-10-13 18:40:03 -04:00
Ray Speth
5d7c8f393b
[CTML] Remove unnecessary 'global' declarations
2016-10-13 18:40:03 -04:00
Ray Speth
ae6e7fdff7
Add license/copyright info to files that were missing it
2016-10-10 22:48:23 -04:00
Ray Speth
ecbfecd7fd
Replace existing copyright notices with uniform copyright/license info
2016-10-10 22:19:01 -04:00
Ray Speth
822e03e938
Update copyright statement in License.txt
2016-10-10 21:20:53 -04:00
Ray Speth
a4be32474e
Add institutional affiliations to AUTHORS
2016-10-10 21:18:54 -04:00
Ray Speth
cc0e19a7a7
Add header to AUTHORS and merge authors & contributors
2016-10-10 21:18:54 -04:00
Ray Speth
c0d007ab1d
Fix Travis build on OS X
...
Installing SCons using pip has stopped working. Installing using Homebrew works
fine.
2016-10-10 00:32:48 -04:00
Ray Speth
9c368d57b3
[Cython] translate_exception should raise RuntimeError
...
This is more consistent with the behavior of Cython for other exception types,
where unknown types of std::exception are translated to Python RuntimeError
exceptions.
2016-10-09 17:58:44 -04:00
Bryan W. Weber
9bba45b01e
Fix minor docs typo in Matlab enthalpy_mole
2016-10-04 11:34:04 -04:00
Ray Speth
8a86fed0ca
[Python] Move composite classes out of Cython
...
This makes it easier to add more features to these composite classes without
increasing the size of the compiled Cython extension.
2016-09-19 18:57:19 -04:00
Ray Speth
e332fcbba2
[clib] Make clib actually usable as a C (not C++) interface
...
- Cannot include any C++ headers or use C++ types (e.g. 'bool')
- Functions arguments cannot have default values
- "extern C" needs to be wrapped by "#ifdef __cplusplus"
2016-09-19 18:48:40 -04:00
Ray Speth
09629e27ee
Rewrite README.rst
2016-09-11 00:08:05 -04:00
Ray Speth
11f6c2f993
Consolidate duplicate species checks in Phase::addSpecies
2016-09-10 21:45:24 -04:00
Ray Speth
e49f843797
[Python] Prevent adding species to in-use Thermo objects
2016-09-09 22:50:17 -04:00
Ray Speth
178b452a49
[Transport] Automatically reinitialize after change in number of species
...
This makes it possible for GasTransport objects to work reasonably well with
ThermoPhase objects that have had species added to them. The main changes
required are to make the initialization functions idempotent.
2016-09-09 22:50:17 -04:00
Ray Speth
46b97beee7
[Transport] Restore temperature after fitting properties
2016-09-09 22:50:17 -04:00
Ray Speth
1660167bd7
Allow adding species / reactions from Python
...
This enables the base functionality, but does not protect against any erroneous
usage.
2016-09-09 22:50:17 -04:00
Ray Speth
85e2e9968b
[Thermo] Deprecate RedlichKisterVPSSTP::Vint
2016-09-08 17:21:20 -04:00