Download Cantera User's Guide

Transcript
(draft November 29, 2001)
Description
Constructor functions may require data in external files. Cantera searches for these files first in the
local directory. If not found there and environment variable $CANTERA DATA DIR is set to a
directory name, then this directory will be searched. Additional directories may be added to the
search path by calling this subroutine.
Example
call addDirectory(’/usr/local/my_filea’)
9)
delete
Deletes the kernel mixture object.
Syntax
call delete(mix)
Arguments
mix
(Input) Mixture object [type(mixture t)].
Description
When a mixture constructor is called, a kernel mixture object is dynamically allocated. This object
stores all data required to compute the mixture thermodynamic, kinetic, and transport properties. For
mixtures of many species, or ones with a large reaction mechanism, the size of the object may be large.
Calling this subroutine frees this memory. After deleting a mixture, the object must be constructed
again before using it.
10)
ready
Returns true if the mixture has been successfully constructed and is ready for use.
Syntax
result = ready(mix)
Arguments
mix
(Input) Mixture object [type(mixture t)].
Result
Returns a logical value.
22
Chapter 2. Mixtures