1 //! @file ReactionData.cpp 2 3 // This file is part of Cantera. See License.txt in the top-level directory or 4 // at https://cantera.org/license.txt for license and copyright information. 5 6 #include "cantera/kinetics/ReactionData.h" 7 #include "cantera/thermo/ThermoPhase.h" 8 #include "cantera/base/ctexceptions.h" 9 10 namespace Cantera 11 { 12 update(const ThermoPhase & bulk)13void ArrheniusData::update(const ThermoPhase& bulk) 14 { 15 update(bulk.temperature()); 16 } 17 update(double T)18void PlogData::update(double T) 19 { 20 throw CanteraError("PlogData::update", 21 "Missing state information: reaction type requires pressure."); 22 } 23 update(const ThermoPhase & bulk)24void PlogData::update(const ThermoPhase& bulk) 25 { 26 update(bulk.temperature(), bulk.pressure()); 27 } 28 update(double T)29void ChebyshevData::update(double T) 30 { 31 throw CanteraError("ChebyshevData::update", 32 "Missing state information: reaction type requires pressure."); 33 } 34 update(const ThermoPhase & bulk)35void ChebyshevData::update(const ThermoPhase& bulk) 36 { 37 update(bulk.temperature(), bulk.pressure()); 38 } 39 update(const ThermoPhase & bulk)40void CustomFunc1Data::update(const ThermoPhase& bulk) 41 { 42 m_temperature = bulk.temperature(); 43 } 44 45 } 46