Cantera
Loading...
Searching...
No Matches
ConstantVibrationalRelaxationRate.h
Go to the documentation of this file.
1//! @file ConstantVibrationalRelaxationRate.h
2//! Constant vibrational relaxation reaction rate.
3//! @since New in %Cantera 4.0
4
5// This file is part of Cantera. See License.txt in the top-level directory or
6// at https://cantera.org/license.txt for license and copyright information.
7
8#ifndef CT_CONSTANTVIBRATIONALRELAXATIONRATE_H
9#define CT_CONSTANTVIBRATIONALRELAXATIONRATE_H
10
13
14namespace Cantera
15{
16
17//! Constant vibrational relaxation rate implementation.
18/**
19 * Maps the user-facing constant rate coefficient onto the common
20 * VibrationalRelaxationRate representation with all temperature-dependent
21 * terms set to zero.
22 *
23 * Implements
24 *
25 * @f[
26 * k_f = A.
27 * @f]
28 *
29 * @ingroup otherRateGroup
30 */
31class ConstantVibrationalRelaxationRate final
33{
34public:
35 ConstantVibrationalRelaxationRate() = default;
36
37 explicit ConstantVibrationalRelaxationRate(double A);
38
39 explicit ConstantVibrationalRelaxationRate(
40 const AnyMap& node, const UnitStack& rate_units = {});
41
42 void setParameters(
43 const AnyMap& node, const UnitStack& rate_units) override;
44
45 unique_ptr<MultiRateBase> newMultiRate() const override
46 {
47 return make_unique<
48 MultiRate<ConstantVibrationalRelaxationRate,
50 }
51
52 const string type() const override
53 {
54 return "constant-vibrational-relaxation";
55 }
56
57protected:
58 void getRateParameters(AnyMap& rateNode) const override;
59};
60
61} // namespace Cantera
62
63#endif
Header for vibrational relaxation reaction rates in plasma kinetics.
A map of string keys to values whose type can vary at runtime.
Definition AnyMap.h:431
unique_ptr< MultiRateBase > newMultiRate() const override
Create a rate evaluator for reactions of a particular derived type.
void setParameters(const AnyMap &node, const UnitStack &rate_units) override
Set parameters.
void getRateParameters(AnyMap &rateNode) const override
Store the model-specific coefficients in the rate-constant node.
const string type() const override
String identifying reaction rate specialization.
A class template handling ReactionRate specializations.
Definition MultiRate.h:22
VibrationalRelaxationRate()
Default constructor.
Namespace for the Cantera kernel.
Definition AnyMap.cpp:595
Unit aggregation utility.
Definition Units.h:105
Shared temperature data for vibrational relaxation rates.