Generated CLib API for Cantera's Solution class. More...
Generated CLib API for Cantera's Solution class.
Functions | |
| int32_t | sol_newSolution (const char *infile, const char *name, const char *transport) |
| Create and initialize a new Solution manager from an input file. | |
| int32_t | sol_newInterface (const char *infile, const char *name, int32_t adjacentLen, const int32_t *adjacent) |
| Create and initialize a new Interface from an input file. | |
| int32_t | sol_name (int32_t handle, int32_t bufLen, char *buf) |
| Return the name of this Solution object. | |
| int32_t | sol_setName (int32_t handle, const char *name) |
| Set the name of this Solution object. | |
| int32_t | sol_thermo (int32_t handle) |
| Accessor for the ThermoPhase pointer. | |
| int32_t | sol_kinetics (int32_t handle) |
| Accessor for the Kinetics pointer. | |
| int32_t | sol_transport (int32_t handle) |
| Accessor for the Transport pointer. | |
| int32_t | sol_transportModel (int32_t handle, int32_t bufLen, char *buf) |
| Retrieve transport model name. | |
| int32_t | sol_setTransportModel (int32_t handle, const char *model) |
| Set the Transport object by name. | |
| int32_t | sol_nAdjacent (int32_t handle) |
| Get the number of adjacent phases. | |
| int32_t | sol_adjacent (int32_t handle, int32_t i) |
| Get the Solution object for an adjacent phase by index. | |
| int32_t | sol_adjacentName (int32_t handle, int32_t i, int32_t bufLen, char *buf) |
| Get the name of an adjacent phase by index. | |
| int32_t | sol_source (int32_t handle, int32_t bufLen, char *buf) |
| Retrieve source used for object creation; usually an input file name. | |
| int32_t | sol_del (int32_t handle) |
| Delete Solution object. | |
| int32_t | sol_cabinetSize () |
| Return size of Solution storage. | |
| int32_t sol_newSolution | ( | const char * | infile, |
| const char * | name, | ||
| const char * | transport | ||
| ) |
Create and initialize a new Solution manager from an input file.
Wraps C++ constructor: shared_ptr<Solution> newSolution(const string&, const string&, const string&)
| infile | name of the input file |
| name | name of the phase in the file. If this is blank, the first phase in the file is used. |
| transport | name of the transport model. |
| int32_t sol_newInterface | ( | const char * | infile, |
| const char * | name, | ||
| int32_t | adjacentLen, | ||
| const int32_t * | adjacent | ||
| ) |
Create and initialize a new Interface from an input file.
Wraps C++ constructor: shared_ptr<Interface> newInterface(const string&, const string&, const vector<shared_ptr<Solution>>&)
| infile | name of the input file | |
| name | name of the phase in the file. If this is the empty string, the first phase in the file is used. | |
| [in] | adjacentLen | Length of array reserved for adjacent. |
| adjacent | Memory holding Solution objects. vector containing adjacent Solution objects. If empty, adjacent phases will be instantiated based on the phase definition. |
| int32_t sol_name | ( | int32_t | handle, |
| int32_t | bufLen, | ||
| char * | buf | ||
| ) |
Return the name of this Solution object.
Wraps C++ getter: string Solution::name()
| handle | Handle to queried Solution object. | |
| [in] | bufLen | Length of reserved array. |
| [out] | buf | Returned string value. |
| int32_t sol_setName | ( | int32_t | handle, |
| const char * | name | ||
| ) |
| int32_t sol_thermo | ( | int32_t | handle | ) |
| int32_t sol_kinetics | ( | int32_t | handle | ) |
| int32_t sol_transport | ( | int32_t | handle | ) |
| int32_t sol_transportModel | ( | int32_t | handle, |
| int32_t | bufLen, | ||
| char * | buf | ||
| ) |
Retrieve transport model name.
Wraps C++ getter: string Solution::transportModel()
| handle | Handle to queried Solution object. | |
| [in] | bufLen | Length of reserved array. |
| [out] | buf | Returned string value. |
| int32_t sol_setTransportModel | ( | int32_t | handle, |
| const char * | model | ||
| ) |
| int32_t sol_nAdjacent | ( | int32_t | handle | ) |
| int32_t sol_adjacent | ( | int32_t | handle, |
| int32_t | i | ||
| ) |
Get the Solution object for an adjacent phase by index.
Wraps C++ accessor: shared_ptr<Solution> Solution::adjacent(size_t)
Uses:
size_t Solution::nAdjacent()| handle | Handle to queried Solution object. |
| i | Undocumented. |
| int32_t sol_adjacentName | ( | int32_t | handle, |
| int32_t | i, | ||
| int32_t | bufLen, | ||
| char * | buf | ||
| ) |
Get the name of an adjacent phase by index.
Wraps C++ method: string Solution::adjacentName(size_t)
| handle | Handle to queried Solution object. | |
| i | Undocumented. | |
| [in] | bufLen | Length of reserved array. |
| [out] | buf | Returned string value. |
| int32_t sol_source | ( | int32_t | handle, |
| int32_t | bufLen, | ||
| char * | buf | ||
| ) |
Retrieve source used for object creation; usually an input file name.
Wraps C++ getter: const string Solution::source()
| handle | Handle to queried Solution object. | |
| [in] | bufLen | Length of reserved array. |
| [out] | buf | Returned string value. |
| int32_t sol_del | ( | int32_t | handle | ) |