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