Commit graph

50 commits

Author SHA1 Message Date
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
Ray Speth
e7e5d739a1 [Test] Fix some issues with PYTHONPATH 2013-12-09 01:36:03 +00:00
Ray Speth
025da8b4c0 [Matlab] Remove broken ck2ctml function
There are three problems with this function. It does not work, since
it calls ctmethods with the wrong number of arguments. Even if that
were fixed, it wouldn't do what it claims, as the method it calls
generates a CTI file, not an XML file. Finally, it is redundant, as
the 'ck2cti' function can be used for generating the CTI file, and the
CTI to XML conversion is handled automatically when importing the
phase.

Therefore, this function is being removed.
2013-12-06 23:15:08 +00:00
Ray Speth
717a2367b1 [Transport] Add electricalConductivity method to all language interfaces
Thanks to user 'hencken' for the patch.

Resolves Issue 171.
2013-08-23 17:43:55 +00:00
Ray Speth
dfe5945cd6 [Matlab] Add access to class FlowReactor 2013-08-02 23:17:54 +00:00
Ray Speth
cc75faf402 [Matlab] Add support for additional reactor types
Matlab interface now supports ConstPressureReactor, IdealGasReactor, and
IdealGasConstPressureReactor.
2013-07-31 18:14:47 +00:00
Ray Speth
9b6354b0c0 [SCons] Fix generation of ctpath.m
Was failing because of dependency on dynamically-generated 'python_module_loc'
variable.
2013-07-31 18:14:42 +00:00
Steven DeCaluwe
6321cf4c8e Removed calculatePsat from matlab toolbox, and overwrote 'satPressure' for MixtureFugacityTP
class to point to the calculatePsat function.  Removed 'const' declaration from satPressure
within the ThermoPhase class.
2013-07-15 17:43:45 +00:00
Steven DeCaluwe
06d239a40a Enabled use of the 'calculatePsat' function for MixtureFugacityTP thermo class
in the Matlab toolbox.
2013-07-03 15:44:52 +00:00
Ray Speth
55dec034ed Merge branch '2.0' into 'trunk'
Conflicts:
	README
	SConstruct
	configure.ac
	doc/sphinx/conf.py
2012-12-13 22:58:38 +00:00
Ray Speth
54e4b17aa5 [Matlab] Corrected error messages generated by setState_SP 2012-11-30 22:50:47 +00:00
Ray Speth
11a11bea79 Removing deprecated / nonfunctional methods from Reactor
These functions / variables are for driving the time integration, which is
handled entirely by ReactorNet.
2012-10-12 20:34:33 +00:00
Ray Speth
c57f9b644f Conversion of Chemkin mechanisms in Python and Matlab now uses ck2cti.py 2012-07-26 20:49:37 +00:00
Ray Speth
aab72379fe Updated physical constants to be consistent with 2010 CODATA recommendations 2012-06-12 22:48:32 +00:00
Ray Speth
c56bfab0ed Matlab: Allow simpler syntax for creating ReactorNets with one reactor
A network with a single reactor can be created with either:
    ReactorNet({reactor}), i.e. a single element cell array
or, the new way:
    ReactorNet(reactor)
2012-03-24 01:33:54 +00:00
Ray Speth
e4f2acaf3d Fixed issues with Matlab toolbox identified by the code analyzer 2012-03-15 19:54:41 +00:00
Ray Speth
790d40b00c Normalized whitespace and indentation in the matlab toolbox 2012-03-15 19:52:58 +00:00
Ray Speth
7676097b4a Removed execute permission from nonexecutable files 2012-03-13 17:32:41 +00:00
Ray Speth
bac65b26a1 Added machinery for unit testing of the Matlab toolbox
Unit tests are written using the Matlab xUnit Test Framework
2012-03-13 17:32:10 +00:00
Ray Speth
45eae5b351 Matlab: fixed importing files from paths containing periods
This includes handling relative paths specified with '..'
2012-03-13 17:32:02 +00:00
Ray Speth
32de9a8b27 Fixed some problems printing error messages in Matlab 2012-03-10 21:25:22 +00:00
Ray Speth
afe97da43f Improved version of the testpath.m utility script 2012-03-07 00:51:02 +00:00
Ray Speth
346268f09c Matlab extension compiled directly by SCons without invoking Matlab 2012-03-05 20:46:57 +00:00
Ray Speth
2528df0f75 Reorganized source tree structure
These changes make it unnecessary to copy header files around during
the build process, which tends to confuse IDEs and debuggers. The
headers which comprise Cantera's external C++ interface are now in
the 'include' directory.

All of the samples and demos are now in the 'samples' subdirectory.
2012-02-12 02:27:14 +00:00