Commit graph

73 commits

Author SHA1 Message Date
Ray Speth
5641fa83e9 [clib/Matlab] Add function for getting Cantera version 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
c16c15367f [Matlab] Fix ThermoPhase 'clear' method
This function was actually being directed into 'thermoget' and calling the
'newFromXML' method (on a non-existent XML tree) instead of calling the 'del'
method.
2016-10-18 11:21:42 -04:00
Bryan W. Weber
9bba45b01e Fix minor docs typo in Matlab enthalpy_mole 2016-10-04 11:34:04 -04:00
Bryan W. Weber
8ada40f0be
[Matlab] Add interface to setChemistry 2016-08-12 11:53:53 -04:00
Ray Speth
69f25b41dc [Matlab] Fix default threshold value when displaying phase info
At some point (after version 2014b), Matlab started passing an additional
argument to 'display', which broke the logic for setting the default
threshold. This caused all composition data to be excluded from the report shown
by typing the name of the phase object.
2016-07-13 17:11:34 -04:00
Ray Speth
4b8f8b692a [Reactor] Deprecate Wall-based method for adding surface chemistry
The new method using class ReactorSurface should be used instead.
2016-06-28 14:37:59 -04:00
Ray Speth
a7aec575a9 [Matlab] Make ReactorSurface available in Matlab 2016-06-28 14:37:59 -04:00
Ray Speth
b88e2cb00d [Matlab] Deprecate constants.m 2016-06-27 14:16:48 -04:00
Ray Speth
ffeef2240a [Matlab] Deprecate Domain1D::z (duplicate of Domain1D::gridPoints) 2016-06-27 14:11:19 -04:00
Bryan W. Weber
bff8d10609 [Matlab] Add interface to the new PureFluid property pairs 2016-01-25 13:14:50 -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
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
Bryan W. Weber
0be9e7eef7 [Matlab] Fix spacing in private functions 2015-10-24 08:05:52 -04:00
Bryan W. Weber
0b5c97ad4f [Doc] Correct docs for setState_*sat in Matlab
Correct the documentation to clarify that a vector must be passed in to
these functions, not a single value.
2015-10-24 08:05:45 -04:00
Bryan W. Weber
5aabfe9704 [Matlab] Fix setState_sat*.m functions
Fix the setState_satLiquid and setState_satVapor functions so that they call the main set
method instead of the underlying C++ layer. Resolves #299.
2015-10-24 07:56:10 -04:00
Bryan W. Weber
0b5a46fe03 Remove execute bit from files that don't need it 2015-08-02 23:06:16 -04:00
Bryan W. Weber
60827267b7 Add MATLAB interface to the setState_RP function 2015-06-15 17:47:37 -04:00
Ray Speth
8d4e9bff6e [Reactor] Make argument to ReactorNet.step optional and deprecated
The value of this argument has almost no effect on the integrator, and
frequently confuses users since the ReactorNet can end up at a time either
greater or less than the specified time. By removing this argument, the
distinction betwen step() and advance(t) becomes much more clear.
2015-06-11 14:03:20 -04:00
Ray Speth
258fb8ed57 [Matlab] Add missing 'clear' functions
Without these functions, it was impossible to use these classes
without leaking memory. Even with these functions, the memory is
released only when these functions are explicitly called, as
old-style Matlab classes have no notion of a destructor.

Fixes #252.
2015-04-11 10:54:52 -04:00
Ray Speth
2161060743 [Matlab] Fix clear(Reactor) to delete the reactor instead of copying 2015-04-10 23:44:55 -04:00
Bryan W. Weber
32d5d7b8b2 [Matlab] Fix build warnings about Contents.m 2014-08-26 22:04:50 +00:00
Bryan W. Weber
6bf39e87c4 [Matlab] Minor fixes to docs and screen output
Fix missing parameter docs in Matlab ReactorNet setTolerances. Fix missing semicolon in ThermoPhase display
2014-08-26 22:04:46 +00:00
Ray Speth
bc70da4252 [Matlab] Change log level for Transport construction 2014-07-18 18:10:54 +00:00
Bryan W. Weber
ad3ac0a1ad [Matlab/Doc] Add automatically generated Contents.m to the toolbox. 2014-07-18 14:37:47 +00:00
Bryan W. Weber
c6ac27b07c [Doc/Matlab] Add documentation for all Matlab functions 2014-07-18 14:35:41 +00:00
Bryan W. Weber
0a0d5f2947 [Matlab] Add option to specify transport modeling to @Solution constructor. Add options to specify information about @Wall on construction. Verify job number for @Domain1D 2014-07-18 14:35:28 +00:00
Bryan W. Weber
6cd78c0233 [Matlab] Move @Solution/soundspeed.m and set.m to @ThermoPhase. Delete duplicated 1D/nComponents.m method 2014-07-18 14:35:15 +00:00
Bryan W. Weber
a8304e146e [Matlab] Fix small bugs. Add clear method to Transport, qdot and vdot to Wall. 2014-07-18 14:35:05 +00:00
Bryan W. Weber
0c1688a361 [Matlab] Switch to explicit class specific hndl functions. Deprecate generic hndl functions 2014-07-18 14:34:54 +00:00
Bryan W. Weber
519bf12faa [Matlab] Update built-in thermo imports to use Solution rather than importPhase 2014-07-18 14:34:47 +00:00
Bryan W. Weber
411f6d51a9 [Matlab] Deprecate molarMass methods in favor of molecularWeight methods to be consistent with the rest of Cantera 2014-07-18 14:34:41 +00:00
Bryan W. Weber
34274257b9 [Matlab] Remove unnecessary returns from set methods in 1D classes 2014-07-18 14:34:31 +00:00
Bryan W. Weber
b95614760a [Matlab] Remove unnecessary returns from set methods in @ThermoPhase class 2014-07-18 14:34:21 +00:00
Bryan W. Weber
ab251257e5 [Matlab] Trivial changes to variable names and whitespace for consistency 2014-07-18 14:33:09 +00:00
Ray Speth
a470502932 [Transport] Replace transport_log.xml with regular text logging
Write plain text to the common Cantera logger to be more consistent with the
verbose/debug logging from other parts of Cantera. This simplifies several of
the transport initialization functions, and eliminates the need for class
XML_Writer.
2014-06-20 18:44:59 +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
b4826c9b9c [Matlab/Reactor] Use 'nonorm' when setting mass fractions 2014-06-16 22:00:30 +00:00
Ray Speth
ea3f74eb27 [Thermo] 'report' only prints species with non-trivial mole fractions
The threshold for printing species is a new, optional parameter to the
'report' function. If any species are excluded, the total number of
minor species and their aggregate mass and mole fraction are printed.
2014-06-03 16:54:15 +00:00
Ray Speth
e59a7a7eeb [1D] Eliminate deprecated methods of Domain1D 2014-01-30 00:47:52 +00:00
Bryan W. Weber
a689717a7a [Matlab] Add isothermalCompressibility and thermalExpansionCoeff functions
Resolves Issue 157.
2014-01-08 17:10:41 +00:00
Bryan W. Weber
7deb45a840 [Matlab] Check for sparse arrays in the Solution 'set' function
Resolves Issue 140.
2014-01-06 18:46:43 +00:00
Bryan W. Weber
120c6e742c [Matlab] Add fwdRateConstants and revRateConstants functions
Resolves Issue 125.
2014-01-06 18:46:36 +00:00
Bryan W. Weber
16335a0932 [Matlab] Allow nAtoms to take string inputs for species and elements
Resolves Issue 159.
2014-01-06 18:46:30 +00:00
Ray Speth
3a308a041f [Matlab] Remove broken rxnEqs function
"ReactionEqn" is the working alternative. See Issue 118.
2014-01-06 18:46:25 +00:00
Ray Speth
f63f8ae57e Remove deprecated HTML logging functionality 2013-12-09 01:36:11 +00:00