Commit graph

5907 commits

Author SHA1 Message Date
Bryan W. Weber
49cb039536 [Cython] Add interface for new PureFluid property pairs 2016-01-25 13:07:34 -05:00
Bryan W. Weber
af81729504 [Cython] Add units to PureFluid property docstrings 2016-01-25 13:07:34 -05:00
Bryan W. Weber
50a97063b7 Reduce relative tolerance of state setter in Substance
Reduce the relative tolerance from 3.e-8 to 1.e-8.
2016-01-25 13:07:34 -05:00
Bryan W. Weber
63cfed1503 Add functions to set property pairs specified in Sub.cpp
Add functions to set the unimplemented property pairs specified
in the Substance::Set function of Sub.cpp
2016-01-25 13:07:34 -05:00
Bryan W. Weber
31316b7079 Switch PureFluidPhase to use double instead of doublereal 2016-01-25 13:07:34 -05:00
Bryan W. Weber
9970b4bcc5 Fix typo in ThermoPhase.h 2016-01-25 13:07:34 -05:00
Bryan W. Weber
28e8fa1d2d Whitespace fixup in comments in ThermoPhase.h 2016-01-25 13:07:34 -05:00
Ray Speth
efd6d232c7 [Cython] Fix conversion of element-related strings to Python strings 2016-01-24 23:27:39 -05:00
Bryan W. Weber
c72f1b607a [Test] Add test for elements with multiple matches depending on old string splitting method 2016-01-22 18:18:43 -05:00
Bryan W. Weber
f95f118515 Make the name of an element in Python always lowercase 2016-01-22 18:18:43 -05:00
Ray Speth
9276f56008 Use full string (minus white space) when matching element names/symbols
Also make check for element names case-insensitive.
2016-01-22 18:18:43 -05:00
Bryan W. Weber
9577409516 [Doc] Add documentation for new Element class and functions 2016-01-22 18:18:43 -05:00
Bryan W. Weber
b351c624da [Test] Add tests for new Element class and functions 2016-01-22 18:18:43 -05:00
Bryan W. Weber
ba8c906cd8 [Cython] Add interface to new Element information functions 2016-01-22 18:18:43 -05:00
Bryan W. Weber
c324386fb2 Add functions to get more information about elements.
Add functions to get the atomic number, name, symbol, and weight
of elements looked up by the atomic number, name, or symbol.
2016-01-22 18:18:43 -05:00
Bryan W. Weber
f3bc7a5d5b Replace LookupWtElements with getElementWeight function
Deprecate LookupWtElements. Also split the atomic weights
database into one for named elements and for named isotopes.
2016-01-22 18:18:42 -05:00
Bryan W. Weber
af48524593 [Doc] Fix missing file after rename in Matlab docs 2016-01-22 17:37:41 -05:00
Bryan W. Weber
82d4b50bef [Doc] Fix warnings in Sphinx/Matlab docs 2015-12-27 16:50:18 -05:00
Bryan W. Weber
ee9d5750a3 [Matlab] Add missing PureFluid constructors for fluids defined in liquidvapor.xml 2015-12-26 14:54:37 -05:00
Bryan W. Weber
cf49649dd8 [Matlab] Move lowercase air.m to uppercase Air.m to be consistent with the other PureFluid functions 2015-12-26 14:49:47 -05:00
Bryan W. Weber
9977fd6f49 [Matlab] Switch PureFluids to use liquidvapor xml file 2015-12-26 14:45:56 -05:00
Ray Speth
0703770638 [Python] Regularly flush stdout when printing from C++
This prevents excessive output buffering when output is being redirected and the
only source of printing is Cantera's c++ functions, e.g. when running the 1D
solver.
2015-12-15 11:41:54 -05:00
Ray Speth
1c09f7f14b [Thermo] Make continuity check for enthalpy dimensionally consistent
All quantities here are nondimensional, so taking h+cp*T makes no sense, and
caused the test to pass even for suspicously discontinuous thermo data (although
the bad data would generally get flagged by the tests for cp and/or s).
2015-12-15 11:41:54 -05:00
Ray Speth
4887775109 Eliminate unnecessary counter member variables 2015-12-01 15:54:55 -05:00
Ray Speth
2dfa43ffa7 Fix indexing error in ImplicitSurfChem::eval
This method was not working in the case where there was more than one surface
phase, since 'loc' was always set to zero.
2015-11-24 13:31:45 -05:00
Ray Speth
a75a8f2c82 [Test] Move testIAPWSPres into the gtest suite 2015-11-24 10:59:15 -05:00
Ray Speth
61a457121a [Test] Move testIAPWSTripP into the gtest suite 2015-11-24 10:59:14 -05:00
Ray Speth
1cc0d42988 [Test] Move tests for WaterPropsIAPWSphi to gtest suite
Remove test-related functions from the implementation.
2015-11-24 10:59:14 -05:00
Ray Speth
7562d79bad Remove unnecessary calls to ostream.close() 2015-11-23 18:06:54 -05:00
Trevor Hickey
b751087859 Removes uneeded .close() calls
These calls are not needed. ofstream's destructor will close the file.

Resolves #298.
2015-11-23 18:03:01 -05:00
Ray Speth
59f8fbc09d [Test] Relax tolerances on SOFC regression test
Test was failing with MinGW
2015-11-23 16:53:20 -05:00
Ray Speth
4e551f69ab Remove old version of CVODE
We now use the current version from the Sundials git submodule
2015-11-23 16:53:20 -05:00
Ray Speth
b4a1fb2db1 [SCons/Numerics] Use ext/sundials if system Sundials not installed 2015-11-23 16:53:20 -05:00
Ray Speth
34e38ab007 Add submodule for Sundials 2015-11-23 16:28:15 -05:00
Ray Speth
bab07860e3 [Transport] Fix segfault when species transport data is missing
Resolves #312.
2015-11-23 10:56:02 -05:00
Ray Speth
a7db9a7411 Fix LD_LIBRARY_PATH order when running tests
build/lib needs to be first in case LD_LIBRARY_PATH contains another Cantera
installation.

Resolves #310.
2015-11-22 17:04:05 -05:00
Bryan W. Weber
10981277ae [Doc] Add link to Working with Input Files section 2015-11-19 08:02:07 -05:00
Bryan W. Weber
61736bd2ef [Doc] Update docs for ck2cti
Update documentation to give short tutorial and reflect most recent
version. Add notes for common errors encountered. Remove old ck2cti
docs from Matlab and Cython interface documentation, prefering
cti/input-files.rst. Resolves #295.
2015-11-18 18:09:12 -05:00
Bryan W. Weber
ee14246b12 [Doc] Put physical constant units into consistent form 2015-11-18 18:09:12 -05:00
Ray Speth
4977b2773f [SCons] Fix documentation of 'optimize' option 2015-11-18 12:59:16 -05:00
Ray Speth
6885edb8f8 Remove checks for NO_FTN_STRING_LEN_AT_END
This variable is never defined (and would not work correctly even if it were).
2015-11-18 11:56:40 -05:00
Ray Speth
e58bd09859 Eliminate debug_verbose option and DEBUG_MODE macro
Vebose printing can always be enabled at runtime by setting flags on various
classes.
2015-11-18 11:02:30 -05:00
Ray Speth
ee95c60813 Simplify error handling to eliminate need for global error stack
All of the functions for manipulating the global error stack
(CanteraError::save, setError, showErrors, etc.) are deprecated. The ability to
store an error is retained only for use in the C and Fortran interfaces so that
the last error message can be retrieved after a function returns an error code.
2015-11-16 19:50:55 -05:00
Ray Speth
eb8695dffa Remove unnecessary overrides of cv_mole 2015-11-15 17:00:46 -05:00
Ray Speth
8a5bad1e70 Eliminate lowercase 'l' as a variable name 2015-11-13 21:38:43 -05:00
Ray Speth
03db1d3942 [SCons] Fix installation location for Python module location on OS X
Fixes #296
2015-11-13 20:51:16 -05:00
Ray Speth
48c6c6b8ad [Python] Fix full-state (e.g. TPX) properties of PureFluid
The implementations which come from ThermoPhase expect "X" to mean mole
fractions, but for PureFluid "X" means vapor fraction. No setter is provided
since all three properties cannot be specified simultaneously.

Resolves #307
2015-11-12 18:20:31 -05:00
Ray Speth
f5ff849b47 Replace std::copy with simpler direct assignment where possible 2015-11-12 17:35:30 -05:00
Ray Speth
69eeb20283 Remove duplicate check for thermo node 2015-11-12 15:50:31 -05:00
Ray Speth
f79419cc49 Remove abandoned header file 'solvers.h' 2015-11-12 15:40:50 -05:00