Ray Speth
97156ffad5
[Python] Handle deprecation warnings from all sources consistently
...
Since deprecation warnings issued from C++ and from Cython code are shown by
default, set deprecation warnings issued from Python code to do the same.
Also, modify handling of Cython- and Python- issued deprecation warnings when
calling the make_deprecation_warnings_fatal and suppress_deprecation_warnings
functions.
2020-02-12 13:45:53 -05:00
Ingmar Schoegl
53eca8e559
[Input] Move remaining chemkin input files to test/data
2020-02-04 21:34:15 -05:00
Ingmar Schoegl
ae1f20a8dd
[Input] Remove chemkin input files not needed for unit tests
2020-02-04 21:34:15 -05:00
Ingmar Schoegl
b74f11bfd0
Fix cantera version
2020-01-27 16:54:26 -05:00
Ray Speth
b7591cb403
[Doc] Small improvements to YAML API docs
2020-01-21 15:50:26 -05:00
Ray Speth
d5f84e99ed
[Thermo] Fix pure fluid state restoration after property calculation
...
After calculating properties using finite differences (e.g. cp), the fluid was
returned to its original state by setting the state in terms of pressure and
temperature. However, because setting the state using these variables is an
iterative calculation with some error tolerance, the state was not restored
exactly. By restoring the state based on the initial temperature and density,
the restored state is identical to the initial state.
2020-01-21 15:50:26 -05:00
Ray Speth
6d06da5df2
[Input] Make string-based instantiation of LatticeSolid possible
2020-01-21 15:50:26 -05:00
Ray Speth
3eeed6327a
[Input] Make string-based instantiation of IonsFromNeutral possible
2020-01-21 15:50:26 -05:00
Ray Speth
cc2066a043
[Input] Move Debye-Huckel species parameters to their own sub-field
2020-01-21 15:50:26 -05:00
Ray Speth
43ad8bd892
Standardize names used for pure substance models
...
Ensure that the name returned by Sub::name() is a name that can be used to
reconstruct a substance of the same type.
Make phase names in liquidvapor.yaml match the substance model names.
2020-01-21 15:50:26 -05:00
Ray Speth
c4d5a17fea
[Input] Use more general data structure for AnyMap metadata
2020-01-21 15:50:26 -05:00
Ray Speth
50d4cb9660
Add 'clear' method to AnyMap
2020-01-21 15:50:26 -05:00
Ray Speth
a285e615a2
[Input] Fix reading of long integers in YAML files
2020-01-21 15:50:26 -05:00
Ray Speth
70f92d87bb
Make use of AnyValue equality comparisons
2020-01-21 15:50:26 -05:00
Ray Speth
8b1155a243
[Kinetics] Fix creation of surface reactions depending on phase order
...
The first phase in a Kinetics object is not necessarily the reacting phase
for Kinetics objects loaded from CTI/XML files, but is for YAML files.
2020-01-21 15:50:26 -05:00
Ray Speth
902ec6aa7e
Handle equality comparisons for types converted by AnyValue
2020-01-21 15:50:26 -05:00
Ray Speth
9b81b1ad16
Implement equality comparisons for AnyValue / AnyMap
2020-01-21 15:50:26 -05:00
Ray Speth
73c51126c7
[Input] Make YAML designated names canonical for factories
2020-01-21 15:50:26 -05:00
Ray Speth
37c899e43b
Add functions for factory alias management
...
This allows for error checking at the time of adding the alias, as well as
providing a public interface for adding aliases.
2020-01-21 15:50:26 -05:00
Ray Speth
24b34fedb4
Make canonical names of factory-registered types accessible
2020-01-21 15:50:26 -05:00
Ray Speth
38ad1cda8e
[Input] Skip over hidden keys when iterating over AnyMap
2020-01-21 15:50:26 -05:00
Ray Speth
e916fa7b22
[Input] Allow 'equation-of-state' field to contain multiple model options
2020-01-21 15:50:26 -05:00
Ray Speth
f0684875be
Make treating AnyMap as vector<AnyMap> easier in some cases
...
For entries that are lists of maps in the general case but often only contain
one item, it is convenient to allow them to be provided as just a map. This
modifies methods used to work with vectors of AnyMap objects to handle the
case where the child object is just a map.
2020-01-21 15:50:26 -05:00
Ingmar Schoegl
f79d619d8a
Fix typo
2020-01-13 22:07:43 -05:00
Ray Speth
4eb375e069
[Thermo] Deprecate "potential energy" property of IdealSolidSolnPhase
2020-01-11 12:19:20 -05:00
Ray Speth
9ac5da298c
Remove some un-Pythonic parentheses
2020-01-11 12:19:20 -05:00
Ray Speth
961b50101d
[Examples] Remove incorrect comment about transport model setup
2020-01-11 12:19:20 -05:00
Ray Speth
9e84845202
Remove references to previously-removed Semiconductor class
2020-01-11 12:19:20 -05:00
Ray Speth
5bf5a794d2
Fix compiler warnings raised by Visual Studio and Clang
2020-01-11 12:19:20 -05:00
Ray Speth
7657bf1c1c
Remove unused variable from class CVodesIntegrator
2020-01-11 12:19:20 -05:00
Ray Speth
66f80971d6
[Test] Fix warning from use of deprecated "TX" property
2020-01-11 12:19:20 -05:00
Ray Speth
1c178299e6
Fix Doxygen warnings generated in ct_defs.h
2020-01-11 12:19:20 -05:00
Ray Speth
9dc4d55b7a
[CI] Install numpy for Python 2 so CSV diff tests can run on Travis
2020-01-11 12:19:20 -05:00
Ray Speth
f70ecc379f
Fix some spelling errors
2020-01-11 12:19:20 -05:00
Ray Speth
1bdced1b17
Bump version to 2.5.0a4
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
Ingmar Schoegl
358195ea9e
[Reactor] Update Cython interface for mass_flow_rate
...
- introduce MassFlowController.mass_flow_rate as property
- deprecate MassFlowController.set_mass_flow_rate
2020-01-08 16:27:28 -05:00
Ingmar Schoegl
be89e929b2
[Reactor] Re-introduce setMassFlowRate for MassFlowController
...
- mask deprecated FlowDevice::setMassFlowRate
2020-01-08 16:27:28 -05:00
Ingmar Schoegl
573d19d57d
[Reactor] Update formatting of warn_deprecated messages
2020-01-08 16:27:28 -05:00
Ingmar Schoegl
5970c4d184
[Samples] Replace deprecated method in Cxx combustor example
2020-01-08 16:27:28 -05:00
Ingmar Schoegl
c39b302001
Update AUTHORS list
2020-01-08 14:56:48 -05:00
Ingmar Schoegl
fc7cc9135e
Update templates
...
- redirect 'Feature Requests' to Cantera/enhancements
- wrap instructions in HTML comment
- avoid unintended line breaks in preformatted text
2020-01-08 14:56:48 -05:00
Bryan W. Weber
6ccefcbcd7
[Examples] Formatting changes
...
Add requirements to all Python examples. Update formatting to resolve
some PEP8 problems.
2020-01-07 09:59:53 -05:00
Bryan W. Weber
d020feb668
[YAML] Add deprecated field to YAML files and phases
2020-01-07 09:59:53 -05:00
Bryan W. Weber
aaa6cdd38d
[Cython] Set python_requires in setup.py
2020-01-07 09:59:53 -05:00
Bryan W. Weber
0b95001897
[YAML] Add descriptions to YAML files
...
In many cases, these are copied from the corresponding CTI file. In some
cases, the source of the data is unknown and these are also noted.
2020-01-07 09:59:53 -05:00
Bryan W. Weber
6f04e71711
[cti2yaml] Reformat species-level notes
...
Remove newlines and strip leading and trailing spaces to reformat the
comment into a single line.
2020-01-07 09:59:53 -05:00
Bryan W. Weber
7f4f99cce9
[Cython] Use context manager for csvfiles
...
Python best practices are to use the with statement to manage opening
and closing files. The Python docs recommend specifying newline=''
to avoid certain problems with Windows-style carriage returns. See
https://docs.python.org/3/library/csv.html#id3
2020-01-07 09:59:53 -05:00
Bryan W. Weber
1866e3542d
[YAML] Switch interfaces and examples to use YAML files
2020-01-07 09:59:53 -05:00
Bryan W. Weber
54bb4c300e
[MATLAB/Examples] Remove transport1.m example
...
It is a near duplicate of prandtl1.m
2020-01-07 09:59:53 -05:00