23#include "cantera/base/ExternalLogger.h"
49typedef Cabinet<ConnectorNode> ConnectorNodeCabinet;
50template<> ConnectorNodeCabinet* ConnectorNodeCabinet::s_storage;
52typedef Cabinet<Domain1D> Domain1DCabinet;
53template<> Domain1DCabinet* Domain1DCabinet::s_storage;
55typedef Cabinet<Func1> Func1Cabinet;
56template<> Func1Cabinet* Func1Cabinet::s_storage;
58typedef Cabinet<Kinetics> KineticsCabinet;
59template<> KineticsCabinet* KineticsCabinet::s_storage;
61typedef Cabinet<MultiPhase> MultiPhaseCabinet;
62template<> MultiPhaseCabinet* MultiPhaseCabinet::s_storage;
64typedef Cabinet<Sim1D> Sim1DCabinet;
65template<> Sim1DCabinet* Sim1DCabinet::s_storage;
67typedef Cabinet<ReactionPathDiagram> ReactionPathDiagramCabinet;
68template<> ReactionPathDiagramCabinet* ReactionPathDiagramCabinet::s_storage;
70typedef Cabinet<ReactorBase> ReactorBaseCabinet;
71template<> ReactorBaseCabinet* ReactorBaseCabinet::s_storage;
73typedef Cabinet<ReactorNet> ReactorNetCabinet;
74template<> ReactorNetCabinet* ReactorNetCabinet::s_storage;
76typedef Cabinet<Reaction> ReactionCabinet;
77template<> ReactionCabinet* ReactionCabinet::s_storage;
79typedef Cabinet<Solution> SolutionCabinet;
80template<> SolutionCabinet* SolutionCabinet::s_storage;
82typedef Cabinet<ThermoPhase> ThermoPhaseCabinet;
83template<> ThermoPhaseCabinet* ThermoPhaseCabinet::s_storage;
85typedef Cabinet<Transport> TransportCabinet;
86template<> TransportCabinet* TransportCabinet::s_storage;
98 return int(out.size()) + 1;
110 return int(out.size()) + 1;
133 return int(out.size()) + 1;
145 return int(out.size()) + 1;
210 bool suppress_ = (suppress != 0);
222 bool legacy_ = (legacy != 0);
388 return static_cast<int32_t
>(err.size());
400 auto logwriter = make_unique<ExternalLogger>(writer);
425 ConnectorNodeCabinet::clear();
426 Domain1DCabinet::clear();
427 Func1Cabinet::clear();
428 KineticsCabinet::clear();
429 MultiPhaseCabinet::clear();
430 Sim1DCabinet::clear();
431 ReactionPathDiagramCabinet::clear();
432 ReactorBaseCabinet::clear();
433 ReactorNetCabinet::clear();
434 ReactionCabinet::clear();
435 SolutionCabinet::clear();
436 ThermoPhaseCabinet::clear();
437 TransportCabinet::clear();
450 ConnectorNodeCabinet::reset();
451 Domain1DCabinet::reset();
452 Func1Cabinet::reset();
453 KineticsCabinet::reset();
454 MultiPhaseCabinet::reset();
455 Sim1DCabinet::reset();
456 ReactionPathDiagramCabinet::reset();
457 ReactorBaseCabinet::reset();
458 ReactorNetCabinet::reset();
459 ReactionCabinet::reset();
460 SolutionCabinet::reset();
461 ThermoPhaseCabinet::reset();
462 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.
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_clearStorage()
Delete all objects with mapping preserved.
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_setLogCallback(LogCallback writer)
Set Logger callback.
int32_t ct_warnings_suppressed()
Returns.
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.
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.