Ray Speth
fb9a4b1d61
Deprecate RootFind
2016-11-04 11:36:13 -04:00
Ray Speth
da87260062
[Thermo] Replace RootFind with Boost in RedlichKwongMFTP
...
As previously implemented, calling densSpinodalLiquid or densSpinodalGas would
crash since the pointer fdpdv_ was uninitialized, and furthermore could not even
be initialized with an instance of the spinodalFunc class because this class was
abstract.
Also fix densSpinodalLiquid and densSpinodalGas to actually calculate the roots
of the equation of state which are used as bounds for the search interval.
2016-11-04 11:36:13 -04:00
Ray Speth
145335880f
[SCons] Move PCH-related files out of include to avoid installing them
2016-11-04 11:36:13 -04:00
Ray Speth
334b154eef
[SCons] Prevent full rebuild after change to precompiled header
2016-11-02 18:36:50 -04:00
Ray Speth
a01032cd2d
Resolve some compiler warnings
2016-11-02 18:36:50 -04:00
Bryan W. Weber
7ef43421b4
Fix typo in application.h
2016-10-31 17:14:26 -04:00
Bryan W. Weber
174db13165
Fix typo in docs for findInputFile
2016-10-31 17:14:26 -04:00
Bryan W. Weber
1cdc6b6d7e
Add C-Lib and Matlab interface to getDataDirectories
2016-10-31 17:14:26 -04:00
Bryan W. Weber
d1c2ec48e7
Add function to get the data directories Cantera searches
2016-10-31 17:14:26 -04:00
Ray Speth
b01f9cd1e7
[1D] Remove temperature state variable from Surf1D and ReactingSurf1D
2016-10-30 21:35:20 -04:00
Ray Speth
0740131272
[1D] Remove 'dummy' variable from 1D boundaries
...
Affects Empty1D, Symm1D, OutletRes1D, Outlet1D
2016-10-30 21:35:20 -04:00
Ray Speth
52727a9550
[1D] Eliminate unnecessary state variables from Inlet1D
...
We do not need to solve the trivial equations 'T = Tin' and 'mdot = mdot_in'.
2016-10-30 21:35:20 -04:00
Ray Speth
388dbafb39
Deprecate wrapString
2016-10-28 18:38:23 -04:00
Ray Speth
7a24dc3817
Replace lowercase with boost string algorithms
2016-10-28 18:20:11 -04:00
Ray Speth
2a8ac43308
[SCons] Add fmt.h to system.h and improve PCH dependency handling
2016-10-28 12:40:53 -04:00
Ray Speth
e3dfc35ca1
[SCons] Use precompiled header to speed up compilation with MSVC
...
Update Appveyor config to turn off debug info so PCH can be used
2016-10-28 12:05:46 -04:00
Ray Speth
cbcce07981
[SCons] Use precompiled header to speed up compilation with GCC/Clang
2016-10-27 19:59:35 -04:00
Ray Speth
b25784dc09
Replace stripws with boost::algorithm::trim_copy
2016-10-27 11:28:03 -04:00
Ray Speth
367bdba551
Use boost::algorithm::split to implement tokenizeString
2016-10-27 11:28:03 -04:00
Ray Speth
2db7ebc55c
[clib] Update declaration for stflow_setTransport
2016-10-24 19:00:36 -04:00
BangShiuh
859eb6b94a
[1D] Deprecate 'withSoret' argument of setTransport
2016-10-24 18:57:05 -04:00
Ray Speth
ecb2868a18
[Reactor] Suppress recoverable errors in RHS function by default
...
Accumulate errors and show them if the integrator actually fails. In "verbose"
mode, the errors are shown as they occur.
2016-10-23 22:42:53 -04:00
Ray Speth
1dc0cedcd9
[Reactor] Use Boost's bracket_and_solve_root function
...
This algorithm is more robust than the simple Newton's method that it
replaces. Among its advantages is that it works with PureFluidPhase models.
Resolves #257
2016-10-22 16:17:57 -04:00
Ray Speth
28202f9fa2
[Reactor] Allow Reactor to function without requiring a Kinetics object
2016-10-22 15:50:01 -04:00
BangShiuh
04f9596cc5
[Transport] replace sumxw with mmw in GasTransport::getMixDiffCoeffs
...
The sumxw is redundant, so I replace it with mmw.
2016-10-21 23:17:11 -04:00
Ray Speth
3f3b96587b
[Thermo] Fix finite-difference properties in two-phase region
...
These properties are actually infinite in the two-phase region, but attempting
to compute them by finite difference would incorrectly give a finite result, so
they need to be treated as a special case.
2016-10-21 13:28:51 -04:00
Ray Speth
a92245f683
[Thermo] Fix calculation of derivative properties of pure fluids
...
Calculating specific heat capacities (cp or cv) for states near the saturation
curve would give incorrect results if the finite difference method used points
within the saturation region. To avoid this, we now check the points used for
computing the properties and use values outside the saturation region to compute
the derivatives.
Fixes #273
2016-10-21 13:28:51 -04:00
Ray Speth
b1a1ce6e23
[Thermo] Fix pure fluid thermal expansion coefficient calculation
2016-10-19 19:51:31 -04:00
Ray Speth
f6df8f31b3
[TPX] Move function implementations out of Sub.h
2016-10-19 17:40:50 -04:00
BangShiuh
6d5e28ec46
[1D] Use c_offset_Y instead of literal value "4"
2016-10-19 17:40:04 -04:00
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
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
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
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
e83b095c3a
[Kinetics] added const version of Kinetics::reaction
2016-10-15 18:24:35 -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
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
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
11f6c2f993
Consolidate duplicate species checks in Phase::addSpecies
2016-09-10 21:45:24 -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