24 reg(
"Troe", []() {
return new Troe(); });
25 reg(
"SRI", []() {
return new SRI(); });
26 reg(
"Tsang", []() {
return new Tsang(); });
Parameterizations for reaction falloff functions.
Falloff * create(const std::string &name, Args... args)
Create an object using the object construction function corresponding to "name" and the provided cons...
void addAlias(const std::string &original, const std::string &alias)
Add an alias for an existing registered type.
void reg(const std::string &name, std::function< Falloff *(Args...)> f)
Register a new object construction function.
virtual Falloff * newFalloff(const std::string &type, const vector_fp &c)
Return a pointer to a new falloff function calculator.
static FalloffFactory * s_factory
Pointer to the single instance of the factory.
static std::mutex falloff_mutex
Mutex for use when calling the factory.
FalloffFactory()
default constructor, which is defined as private
static FalloffFactory * factory()
Return a pointer to the factory.
Base class for falloff rate calculators.
void init(const vector_fp &c)
Initialize.
The Lindemann falloff parameterization.
The SRI falloff function.
The 3- or 4-parameter Troe falloff parameterization.
The 1- or 2-parameter Tsang falloff parameterization.
Namespace for the Cantera kernel.
shared_ptr< Falloff > newFalloff(const std::string &type, const vector_fp &c)
Return a pointer to a new falloff function calculator.
std::vector< double > vector_fp
Turn on the use of stl vectors for the basic array type within cantera Vector of doubles.
This file defines some constants used to specify reaction types.