Paul
c4aff04418
Updated URL in references to Cantera's license.
2019-09-23 22:02:33 -04:00
Ingmar Schoegl
bc8b4be654
[Reactor] clarify FlowDevice interface
...
* differentiated Valve::setValveCoeff from PressureController::setPressureCoeff
and introduced MassFlowController::setMassFlowCoeff for consistency.
* introduced FlowDevice::setTimeFunction and FlowDevice::setPressureFunction to
differentiate time-dependent and pressure-dependent functions.
* introduced arbitrary pressure dependence for PressureController
* deprecated FlowDevice::setFunction which is replaced by time and pressure
specific functions.
* introduced properties Valve.valve_coeff / PressureController.pressure_coeff /
MassFlowController.mass_flow_coeff in Cython interface and deprecated
Valve.set_pressure_coeff / PressureController.set_pressure_coeff
* deprecated corresponding function calls in clib interface
* deprecate FlowDevice.setParameters (which was only used by MATLAB interface)
2019-08-05 17:01:05 -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
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
Ingmar Schoegl
5d62f3bacc
added factories for FlowDevice and Wall objects
2019-05-28 19:21:28 -04:00
Ray Speth
19577abfbe
Deprecate rarely-used vector functions
2018-12-14 11:27:24 -05:00
Ray Speth
6f45b241b5
Remove code deprecated in Cantera 2.4
2018-12-14 11:27:24 -05:00
Ray Speth
b7f3ab561b
Fix compiler warnings issued by Visual Studio 2015
2018-08-28 16:45:49 -04:00
Ray Speth
fc7c85f8d1
[clib] Fix some size_t related compiler warnings
2018-08-28 16:45:49 -04:00
Ray Speth
7a697a4047
[Matlab] Fix warnings about use of deprecated AxiStagnFlow class
2018-08-23 16:31:17 -04:00
Ray Speth
7673f7cb52
Remove code deprecated in Cantera 2.3.0
2017-02-12 19:22:33 -05:00
Ray Speth
8e89bbb8d2
Add methods for accessing the git commit used when compiling
2017-01-20 22:43:56 -05:00
Ray Speth
aa4d07f543
[Thermo] Allow discontinuous thermo warnings to be suppressed
...
Resolves #354
2016-11-26 00:57:23 -05:00
Ray Speth
5641fa83e9
[clib/Matlab] Add function for getting Cantera version
2016-11-11 23:06:35 -05:00
Ray Speth
902ab5cccd
[clib] Improve consistency of function names
2016-11-11 23:06:35 -05:00
Ray Speth
8b9499160a
[clib] Remove wrapper for deprecated 'showErrors' function
2016-11-11 23:06:35 -05:00
Bryan W. Weber
1cdc6b6d7e
Add C-Lib and Matlab interface to getDataDirectories
2016-10-31 17:14:26 -04:00
Ray Speth
2db7ebc55c
[clib] Update declaration for stflow_setTransport
2016-10-24 19:00:36 -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
b51c1b8e4e
[clib] Fix const-ness of clib function arguments
2016-10-15 20:50:15 -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
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
Bryan W. Weber
8ada40f0be
[Matlab] Add interface to setChemistry
2016-08-12 11:53:53 -04:00
Ray Speth
a7aec575a9
[Matlab] Make ReactorSurface available in Matlab
2016-06-28 14:37:59 -04:00
Ray Speth
ca2a330d5f
[XML] Include file name in XML-related errors
...
Resolves #40
2016-05-03 15:03:51 -04:00
Bryan W. Weber
c1f287d648
[C API] Add interface to the new PureFluid property pairs
2016-01-25 13:14:50 -05:00
Ray Speth
7562d79bad
Remove unnecessary calls to ostream.close()
2015-11-23 18:06:54 -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
ac9dfa055c
[Thermo] Synchronize Mixture/Multiphase state before printing report
...
Do not assume that the states of the individual ThermoPhase objects still
correspond to the state of the mixture object. See #306 .
2015-11-12 12:42:35 -05:00
Steven DeCaluwe
14864e840b
Extend NoNorm option for setCoverages to the Matlab toolbox
...
Because normalizing the species coverages leads to incorrect Jacobian
calculations, it is sometimes necessary to not normalize the coverages.
As for bulk species mass/mole fractions, this option is currently only
available when passing the coverages as a vector (i.e., not available
for string identifiers).
2015-11-07 21:14:03 -05:00
Ray Speth
3f6d8b0aca
Use cppformat instead of int2str and fp2str
2015-10-14 18:45:23 -04:00
Ray Speth
2589a27b6c
Use range-based for and auto to simplify some loops
2015-10-14 18:45:23 -04:00
Ray Speth
71bb73b728
Eliminate unnecessary calles to std::string.c_str()
2015-10-14 18:45:22 -04:00
Ray Speth
0e4b0cba0f
[Matlab] Fix error handling for nAtoms to avoid false positives
...
Species can have negative "atoms" of an "element" in the case where the element
is an electron and the species is a positive ion.
2015-09-08 12:26:58 -04:00
Ray Speth
6a04193646
Fix un-bracketed if, for, and else statements
2015-08-02 23:06:15 -04:00
Ray Speth
e4c45b6429
General whitespace cleanup
...
Remove unnecessary blank lines and trailing whitespace. Replace tabs with
spaces.
2015-08-02 23:06:15 -04:00
Ray Speth
f1f10b6526
Remove unused, deprecated code marked for removal after Cantera 2.2
2015-07-15 12:08:50 -04:00
Ray Speth
d373e0751e
Remove unnecessary explicit specification of namespace Cantera
2015-06-24 14:45:55 -04:00
Bryan W. Weber
60827267b7
Add MATLAB interface to the setState_RP function
2015-06-15 17:47:37 -04:00
Ray Speth
217d780233
Fix calls to CanteraError with blank or incorrect first argument
...
The first argument should be the function name from which the exception was
thrown. Leaving this blank makes it difficult to track down the location of the
exception.
2015-06-09 12:03:57 -04:00
Ray Speth
5214672ab3
Merge namespace ctml with namespace Cantera
2015-05-27 18:09:07 -04:00
Ray Speth
b495262aff
[Matlab] 'cleanup' now deletes all Cantera objects
...
'cleanup' previously only deleted ThermoPhase, Kinetics, Transport, Domain1D,
Sim1D, and XML_Node objects, while missing all objects associated with reactor
networks (Reactor, ReactorNet, FlowDevice, Wall), MultiPhase, Func1, and
reaction paths (ReactionPathBuilder, ReactionPathDiagram).
Fixes #251 .
2015-04-08 23:08:42 -04:00
Ray Speth
cc17716182
Cleanup trailing whitespace
2015-02-26 21:52:52 +00:00
Ray Speth
39b751d655
[Equil] Always use the member function versions of 'equilibrate'
...
The various free functions are deprecated, along with the now unnecessary
headers 'equil.h' and 'equilibrium.h'.
2014-11-08 00:53:45 +00:00
Ray Speth
926b78cc7d
Deprecate Cabinet::assign
2014-11-08 00:53:35 +00:00
Ray Speth
ca68fbc075
Rename Cabinet member variables to avoid using reserved identifiers
...
Names containing double underscores are reserved for the C++ implementation.
2014-09-24 23:17:50 +00:00