Commit Graph

54 Commits

Author SHA1 Message Date
Ray Speth
b076ed9643 Standardize on lowercase 'none' as empty model name
Deprecate 'None'
2023-03-13 22:58:24 -05:00
Ray Speth
23ebd13dbf Deprecate XML-era transport names 'Mix' and 'Multi'
Fixes #1425
2023-03-13 22:58:24 -05:00
ssun30
2ce92eac2e Fixed Matlab legacy examples and added missing blank lines.
Added Su Sun to AUTHORS.
2022-12-15 07:16:04 +01:00
Ray Speth
a37054cc7f [Doc] Eliminate CTI/XML-related documentation 2022-05-25 04:02:58 -04:00
Ray Speth
0a7b436683 [Doc] Eliminate 'i.e.' and 'e.g.' 2022-04-30 03:55:11 -04:00
Ray Speth
b84a9ce8e2 Add keywords to Matlab examples 2022-04-03 10:41:20 -04:00
Ray Speth
2d211dbca1 Fix miscellaneous spelling errors 2021-11-19 21:44:53 -06:00
Ray Speth
db502b911f [Matlab/1D] Fix usage of outdated component names
The names 'u' and 'v' were deprecated and replaced with the names
'velocity' and 'spread_rate' in eb638254e and 61b3396d2. Support for
the old names was removed in daf7d4d57.
2021-10-25 22:06:22 -05:00
Ray Speth
d98ea6ff8e [1D] Update samples to use YAML output instead of XML 2021-10-25 22:06:22 -05:00
Mark E. Fuller
daa73a2312 update mech from gri30 to ohmech in Matlab examples, but not tutorials 2021-10-01 15:47:12 -05:00
mgashwinkumar
57b4641d4b Add author contact information to sample 2020-06-05 12:30:55 -04:00
decaluwe
e78975e92d Moving PFR_solver call to 'meanMolecularWeight'
The call to meanMolecularWeight was previously located before the
Cantera gas object was set to the current state. This commit fixes that.
2020-06-05 12:30:55 -04:00
decaluwe
2c00ea445c Renaming Matlab plug flow reactor example file. 2020-06-05 12:30:55 -04:00
decaluwe
f7d4ae2993 Adding comments for additional documentation
Renaming solution vector references.

Renaming 'init' variable, external and internal to the residual function
for greater clarity.  External to the ode call, they are renamed
'inlet_soln', since they correspond to the current volume's inlet state.
Within the ode call, they are renamed 'soln_vector' since they represent
solution at the current location x.
2020-06-05 12:30:55 -04:00
mgashwinkumar
f4826f5e4e Add plug flow reactor example in MATLAB
The reactor can have varying area, and therefore, pressure variation
throughout the domain. The example is solved by discretizing the domain
into chunks and solving them as a sequence of 0-D reactors.
2020-06-05 12:30:55 -04: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
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
Bryan W. Weber
b23a90957e [MATLAB] Allow None as a transport option 2020-01-07 09:59:53 -05:00
Steven DeCaluwe
f02ca90e2c Updating citation info for li ion battery example. 2019-10-24 22:16:52 -04:00
Steven DeCaluwe
67087f874d Updating matlab Li ion battery sample.
Corrected one typo (stray mid-line comment symbol) and converted
hard-coded faraday constant to the corresponding Matlab toolbox function
(added with PR #640).
2019-06-26 20:20:23 -04:00
wbessler
cceb12b01b Further improved Li-ion battery example
MATLAB example: better comments, faster calculation, consistent signs; CTI file: thermally-activated kinetics
2019-06-26 20:20:23 -04:00
wbessler
bc6dd4ddc0 Improved lithium-ion battery cti file and Matlab example
Extended and clarified comments, corrected density data, improved functionality
2019-06-26 20:20:23 -04:00
CyberDrudge
fbe4ce5c1b Remove Unnecessary comments 2019-05-09 12:22:44 -04:00
Ray Speth
77b467929c [Thermo] Fix calculation of initial density of IdealSolidSolnPhase
The density of IdealSolidSolnPhase and BinarySolutionTabulatedThermo objects was
not being computed as part of construction, causing code that interacted with
them using setState/restoreState, such as the 'Solution' constructors in Matlab
and Python, to fail.
2019-02-20 21:39:22 -05:00
Steven DeCaluwe
f0c797c482 Updates to samples/matlab/lithium_ion_battery.m
Added some context and higher level functionality  to
lithium_ion_battery.m sample, such that it now uses some of the
already-present functionality to calculate and plot the open
circuit voltage for a lithium ion battery for a range of active
material compositions.
2019-02-20 21:39:22 -05:00
Steven DeCaluwe
8169c26271 Updates to ctml_writer.py associated with BinarySolutionTabulatedThermo class.
-Removes option to read tabulated thermo from an external csv file (this is now
handled from within cti or xml).
-Renames `rateCoeff` keyword to the more appropriate `rate_coeff_type`, and fixing
keyword order so that this new keyword is listed last.
-Removes `else` statement from `if isinstance(self._standardState, standardState)
-Removes unused `_pure` attribute from `IdealSolidSolution` and
`BinarySolutionTabulatedThermo`
-Changes default on `tabulated_species` keyword to `None`.
-Removing superfluous `standardState:_build` from ctml_writer.py
- Removes unnecessary conc_dim() definition in `table` class.
- Removes unnecessary units defintion for mole fractions in `table` class.
- Improves grammar in error message for case when thermo table is
not provided for `tabulated_species`.
2019-02-20 21:39:22 -05:00
Manik Mayur
b8d5eb405a Add MATLAB example files for BinarySolutionTabulatedThermo class 2019-02-20 21:39:22 -05:00
Bryan W. Weber
71072c43db Remove unneeded files from the Matlab samples 2018-07-29 17:47:14 -04:00
Ray Speth
987a247bd0 [Matlab] Replace calls to removed 'z' method with 'gridPoints' 2018-01-24 16:31:52 -05:00
Ray Speth
536158b402 [Matlab] Remove broken demo running script 2018-01-24 16:31:42 -05:00
Ray Speth
a31b7d1bb5 [Matlab] Remove spurious arguments from scripts for running examples 2018-01-24 16:09:49 -05:00
Bryan W. Weber
fec6c34ed8 Remove more references to importPhase in Matlab docs 2017-07-11 18:26:55 -04:00
KyleLinevitchJr
43bd96b5ba [Matlab] Make counterflow diffusion flame simulation more general
The CounterFlowDiffusionFlame (CFDF) code is able to perform more general cases
of npflame_init for multiple species fuel and oxidizer streams. The
stoichiometric mixture fraction in the CFDF code uses the Bilger definition of
mixture fraction, using the conservation of elements C, H, and O. This method is
used in the python module, but not the MATLAB npflame_init function.

Also, the CFDF code uses the fuel stream density to calculate the fuel stream
velocity and the oxidizer stream density to calculate the oxidizer stream
velocity, where as the npflame_init code uses the fuel density for both velocity
calculations.

The elementMassFraction code is a MATLAB version of the python function:
elemental_mass_fraction, which is needed to run the CFDF code.

Update the diffflame.m example to use the more general CFDF function since the
input parameters are different than the npflame_init function. This example is
the same as the diffusion_flame.py sample in the Python module.
2017-06-10 16:44:50 -04:00
Ray Speth
ac771aaac5 [Doc] Adjust example docstrings to get better automatic summaries 2016-10-14 17:20:18 -04:00
Ray Speth
994d7e9a53 [Doc] Adjust example docstrings to get better automatic summaries 2016-10-14 17:06:45 -04:00
Ray Speth
a7aec575a9 [Matlab] Make ReactorSurface available in Matlab 2016-06-28 14:37:59 -04:00
Bryan W. Weber
0b5a46fe03 Remove execute bit from files that don't need it 2015-08-02 23:06:16 -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
ecb6242b79 Fix spelling errors 2015-04-08 19:36:55 -04:00
Ray Speth
4890cccb03 [Doc] Update phase report examples to show compact species output 2015-03-10 22:41:23 +00:00
Ray Speth
217a001a08 [Doc] Correct title of "Chemically Reacting Flow" 2015-01-15 21:15:12 +00:00
Bryan W. Weber
a067fcbc37 [Samples/Matlab] Fix bugs in conhp and conuv Matlab samples 2014-07-18 14:35:22 +00:00
Ray Speth
dd297256ff [Matlab/Samples] Update to use IdealGasReactor 2014-06-16 22:01:31 +00:00
Ray Speth
049c9a1960 [Matlab/Samples] Fix broken default argument checks
There are no classes named 'GasMix' or (lowercase) 'solution', so these checks
would always fail and the input argument would always be silently ignored.
2014-06-16 22:01:13 +00:00
Ray Speth
6c3fdb7963 [Matlab/Samples] Remove duplicate examples
'ignite2.m' was essentially a duplicate of 'ignite.m'
'ignite3.m' was essentially a duplicate of 'ignite_uv.m'
2014-06-16 22:00:46 +00:00
Ray Speth
fd0db67172 [Matlab/Samples] Move reactor ODE functions into samples directory
These functions are used by some of the examples, and show how custom
reactor-like models can be implemented in Matlab. They are useful mostly as a
basis for user modifications.
2014-06-16 22:00:41 +00:00
Ray Speth
aae8982924 Clean up end-of-file whitespace 2014-01-30 00:47:24 +00:00
Ray Speth
75bc6312ab [Matlab/Samples] Fix tolerances on flame example 2013-12-05 20:54:01 +00:00
Ray Speth
700ebd0abf [Matlab/Examples] Don't call non-existent methods
The current simulation time is a property of the reactor network, not the
individual reactors.
2013-07-16 22:10:01 +00:00