23#include "cantera/base/ExternalLogger.h"
50template<> ConnectorNodeCabinet* ConnectorNodeCabinet::s_storage;
53template<> Domain1DCabinet* Domain1DCabinet::s_storage;
56template<> Func1Cabinet* Func1Cabinet::s_storage;
59template<> KineticsCabinet* KineticsCabinet::s_storage;
62template<> MultiPhaseCabinet* MultiPhaseCabinet::s_storage;
65template<> Sim1DCabinet* Sim1DCabinet::s_storage;
68template<> ReactionPathDiagramCabinet* ReactionPathDiagramCabinet::s_storage;
71template<> ReactorBaseCabinet* ReactorBaseCabinet::s_storage;
74template<> ReactorNetCabinet* ReactorNetCabinet::s_storage;
77template<> ReactionCabinet* ReactionCabinet::s_storage;
80template<> SolutionCabinet* SolutionCabinet::s_storage;
83template<> ThermoPhaseCabinet* ThermoPhaseCabinet::s_storage;
86template<> TransportCabinet* TransportCabinet::s_storage;
98 return int(out.size()) + 1;
110 return int(out.size()) + 1;
144 return int(out.size()) + 1;
156 return int(out.size()) + 1;
221 bool suppress_ = (suppress != 0);
233 bool legacy_ = (legacy != 0);
399 return static_cast<int32_t
>(err.size());
411 auto logwriter = make_unique<ExternalLogger>(writer);
436 ConnectorNodeCabinet::reset();
437 Domain1DCabinet::reset();
438 Func1Cabinet::reset();
439 KineticsCabinet::reset();
440 MultiPhaseCabinet::reset();
441 Sim1DCabinet::reset();
442 ReactionPathDiagramCabinet::reset();
443 ReactorBaseCabinet::reset();
444 ReactorNetCabinet::reset();
445 ReactionCabinet::reset();
446 SolutionCabinet::reset();
447 ThermoPhaseCabinet::reset();
448 TransportCabinet::reset();
Headers for the MultiPhase object that is used to set up multiphase equilibrium problems (see Chemica...
Classes for reaction path analysis.
Header for a simple thermodynamics model of a surface phase derived from ThermoPhase,...
Headers for the factory class that can create known ThermoPhase objects (see Thermodynamic Properties...
Header file for class ThermoPhase, the base class for phases with thermodynamic properties,...
Header file defining class TransportFactory (see TransportFactory)
Header file for base class WallBase.
static Application * Instance()
Return a pointer to the one and only instance of class Application.
string lastErrorMessage()
Retrieve the last error message in a string.
Template for classes to hold pointers to objects.
Some flow devices derived from class FlowDevice.
This file contains definitions for utility functions and text for modules, inputfiles and logging,...
int32_t ct_suppress_warnings()
Globally disable printing of (user) warnings.
int32_t ct_getCanteraError(int32_t bufLen, char *buf)
Get Cantera error.
const double ct_ElectronMass()
Electron Mass.
const double ct_Boltzmann()
Boltzmann constant.
int32_t ct_make_deprecation_warnings_fatal()
Turns deprecation warnings into exceptions.
int32_t ct_getDataDirectories(const char *sep, int32_t bufLen, char *buf)
Get the Cantera data directories.
int32_t ct_appdelete()
Delete and free all memory associated with the application.
const double ct_fineStructureConstant()
Fine structure constant.
int32_t ct_findInputFile(const char *name, int32_t bufLen, char *buf)
Find an input file.
const double ct_StefanBoltz()
Stefan-Boltzmann constant.
int32_t ct_writeLog(const char *msg)
Write a message to the logger.
int32_t ct_make_warnings_fatal()
Turns Cantera warnings into exceptions.
int32_t ct_use_legacy_rate_constants(int32_t legacy)
Set definition used for rate constant calculation.
int32_t ct_suppress_thermo_warnings(int32_t suppress)
Globally disable printing of warnings about problematic thermo data, such as NASA polynomials with di...
const double ct_GasConstant()
Universal Gas Constant.
const double ct_Planck()
Planck constant.
int32_t ct_usesHDF5()
Returns true if Cantera was compiled with C++ HDF5 support.
int32_t ct_setLogCallback(LogCallback writer)
Set Logger callback.
int32_t ct_warnings_suppressed()
Returns true if warnings should be suppressed.
int32_t ct_version(int32_t bufLen, char *buf)
Returns the Cantera version.
const double ct_epsilon_0()
Permittivity of free space.
int32_t ct_resetStorage()
Delete all objects and erase mapping.
const double ct_permeability_0()
Permeability of free space.
const double ct_ElectronCharge()
Elementary charge.
const double ct_OneAtm()
One atmosphere [Pa].
int32_t ct_suppress_deprecation_warnings()
Globally disable printing of deprecation warnings.
const double ct_lightSpeed()
Speed of Light in a vacuum.
const double ct_Faraday()
Faraday constant.
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_addDataDirectory(const char *dir)
Add a directory to the data file search path.
const double ct_OneBar()
One bar [Pa].
const double ct_Avogadro()
Avogadro's Number.
size_t copyString(const string &source, char *dest, size_t length)
Copy the contents of a string into a char array of a given length.
bool warnings_suppressed()
Returns true if warnings should be suppressed.
void use_legacy_rate_constants(bool legacy)
Set definition used for rate constant calculation.
void suppress_deprecation_warnings()
Globally disable printing of deprecation warnings.
void make_warnings_fatal()
Turns Cantera warnings into exceptions.
string version()
Returns the Cantera version.
void make_deprecation_warnings_fatal()
Turns deprecation warnings into exceptions.
void suppress_warnings()
Globally disable printing of (user) warnings.
void suppress_thermo_warnings(bool suppress)
Globally disable printing of warnings about problematic thermo data, such as NASA polynomials with di...
string gitCommit()
Returns the hash of the git commit from which Cantera was compiled, if known.
bool usesHDF5()
Returns true if Cantera was compiled with C++ HDF5 support.
void writelog_direct(const string &msg)
Write a message to the logger.
void setLogger(Logger *logwriter)
Install a logger.
const double Boltzmann
Boltzmann constant [J/K].
const double Faraday
Faraday constant [C/kmol].
const double Avogadro
Avogadro's Number [number/kmol].
const double Planck
Planck constant [J-s].
const double permeability_0
Permeability of free space [N/A2].
const double OneAtm
One atmosphere [Pa].
const double lightSpeed
Speed of Light in a vacuum [m/s].
const double StefanBoltz
Stefan-Boltzmann constant [W/m2/K4].
const double epsilon_0
Permittivity of free space [F/m].
const double GasConstant
Universal Gas Constant [J/kmol/K].
const double ElectronCharge
Elementary charge [C].
const double fineStructureConstant
Fine structure constant [].
const double OneBar
One bar [Pa].
const double ElectronMass
Electron Mass [kg].
void(* LogCallback)(enum LogLevel logLevel, const char *category, const char *message)
Represents a callback that is invoked to produce log output.
CT - Generated CLib Cantera interface library.
Namespace for the Cantera kernel.
T handleAllExceptions(T ctErrorCode, T otherErrorCode)
Exception handler used at language interface boundaries.
void appdelete()
Delete and free all memory associated with the application.
Contains declarations for string manipulation functions within Cantera.