The main library of the generated CLib API contains Cantera service functions. More...
The main library of the generated CLib API contains Cantera service functions.
Functions | |
| int32_t | ct_version (int32_t bufLen, char *buf) |
| Returns the Cantera version. | |
| int32_t | ct_gitCommit (int32_t bufLen, char *buf) |
| Returns the hash of the git commit from which Cantera was compiled, if known. | |
| int32_t | ct_usesHDF5 () |
Returns true if Cantera was compiled with C++ HDF5 support. | |
| int32_t | ct_addDataDirectory (const char *dir) |
| Add a directory to the data file search path. | |
| int32_t | ct_getDataDirectories (const char *sep, int32_t bufLen, char *buf) |
| Get the Cantera data directories. | |
| int32_t | ct_findInputFile (const char *name, int32_t bufLen, char *buf) |
| Find an input file. | |
| int32_t | ct_suppressDeprecationWarnings () |
| Globally disable printing of deprecation warnings. | |
| int32_t | ct_makeDeprecationWarningsFatal () |
| Turns deprecation warnings into exceptions. | |
| int32_t | ct_suppressWarnings () |
| Globally disable printing of (user) warnings. | |
| int32_t | ct_warningsSuppressed () |
Returns true if warnings should be suppressed. | |
| int32_t | ct_makeWarningsFatal () |
| Turns Cantera warnings into exceptions. | |
| int32_t | ct_suppressThermoWarnings (int32_t suppress) |
| Globally disable printing of warnings about problematic thermo data, such as NASA polynomials with discontinuities at the midpoint temperature. | |
| int32_t | ct_useLegacyRateConstants (int32_t legacy) |
| Set definition used for rate constant calculation. | |
| int32_t | ct_appdelete () |
| Delete and free all memory associated with the application. | |
| double | ct_Avogadro () |
| Avogadro's Number. | |
| double | ct_Boltzmann () |
| Boltzmann constant. | |
| double | ct_Planck () |
| Planck constant. | |
| double | ct_ElectronCharge () |
| Elementary charge. | |
| double | ct_lightSpeed () |
| Speed of Light in a vacuum. | |
| double | ct_OneAtm () |
| One atmosphere [Pa]. | |
| double | ct_OneBar () |
| One bar [Pa]. | |
| double | ct_fineStructureConstant () |
| Fine structure constant. | |
| double | ct_ElectronMass () |
| Electron Mass. | |
| double | ct_GasConstant () |
| Universal Gas Constant. | |
| double | ct_StefanBoltz () |
| Stefan-Boltzmann constant. | |
| double | ct_Faraday () |
| Faraday constant. | |
| double | ct_permeability0 () |
| Permeability of free space. | |
| double | ct_epsilon0 () |
| Permittivity of free space. | |
| int32_t | ct_getCanteraError (int32_t bufLen, char *buf) |
| Get Cantera error. | |
| int32_t | ct_setLogCallback (LogCallback writer) |
| Set Logger callback. | |
| int32_t | ct_writeLog (const char *msg) |
| Write a message to the logger. | |
| int32_t | ct_resetStorage () |
| Delete all objects and erase mapping. | |
| int32_t ct_version | ( | int32_t | bufLen, |
| char * | buf | ||
| ) |
| int32_t ct_gitCommit | ( | int32_t | bufLen, |
| char * | buf | ||
| ) |
Returns the hash of the git commit from which Cantera was compiled, if known.
Wraps C++ function: string gitCommit()
| [in] | bufLen | Length of reserved array. |
| [out] | buf | Returned string value. |
| int32_t ct_usesHDF5 | ( | ) |
| int32_t ct_addDataDirectory | ( | const char * | dir | ) |
| int32_t ct_getDataDirectories | ( | const char * | sep, |
| int32_t | bufLen, | ||
| char * | buf | ||
| ) |
Get the Cantera data directories.
Wraps C++ function: string getDataDirectories(const string&)
| sep | Separator to use between directories in the string | |
| [in] | bufLen | Length of reserved array. |
| [out] | buf | Returned string value. |
| int32_t ct_findInputFile | ( | const char * | name, |
| int32_t | bufLen, | ||
| char * | buf | ||
| ) |
Find an input file.
Wraps C++ function: string findInputFile(const string&)
| name | Name of the input file to be searched for | |
| [in] | bufLen | Length of reserved array. |
| [out] | buf | Returned string value. |
| int32_t ct_suppressDeprecationWarnings | ( | ) |
| int32_t ct_makeDeprecationWarningsFatal | ( | ) |
| int32_t ct_suppressWarnings | ( | ) |
| int32_t ct_warningsSuppressed | ( | ) |
| int32_t ct_makeWarningsFatal | ( | ) |
| int32_t ct_suppressThermoWarnings | ( | int32_t | suppress | ) |
| int32_t ct_useLegacyRateConstants | ( | int32_t | legacy | ) |
| int32_t ct_appdelete | ( | ) |
| double ct_Avogadro | ( | ) |
| double ct_Boltzmann | ( | ) |
| double ct_Planck | ( | ) |
| double ct_ElectronCharge | ( | ) |
| double ct_lightSpeed | ( | ) |
| double ct_OneAtm | ( | ) |
| double ct_OneBar | ( | ) |
| double ct_fineStructureConstant | ( | ) |
| double ct_ElectronMass | ( | ) |
| double ct_GasConstant | ( | ) |
| double ct_StefanBoltz | ( | ) |
| double ct_Faraday | ( | ) |
| double ct_permeability0 | ( | ) |
| double ct_epsilon0 | ( | ) |
| int32_t ct_getCanteraError | ( | int32_t | bufLen, |
| char * | buf | ||
| ) |
| int32_t ct_setLogCallback | ( | LogCallback | writer | ) |
| int32_t ct_writeLog | ( | const char * | msg | ) |