FlowReactor.h Source File#
FlowReactor.h
Go to the documentation of this file.
Adiabatic flow in a constant-area duct with homogeneous and heterogeneous reactions.
Definition FlowReactor.h:17
double inletSurfaceAtol() const
Get the steady state tolerances used to determine the initial state for surface coverages.
Definition FlowReactor.h:80
vector< double > m_sdot_temp
temporary storage for surface species production rates
Definition FlowReactor.h:152
void setInletSurfaceAtol(double atol)
Set the steady state tolerances used to determine the initial state for surface coverages.
Definition FlowReactor.h:86
bool isOde() const override
Indicate whether the governing equations for this reactor type are a system of ODEs or DAEs.
Definition FlowReactor.h:25
double surfaceAreaToVolumeRatio() const
The ratio of the reactor's surface area to volume ratio [m^-1].
Definition FlowReactor.cpp:222
void setMassFlowRate(double mdot)
Set the mass flow rate through the reactor [kg/s].
Definition FlowReactor.cpp:210
double inletSurfaceMaxSteps() const
Get the steady state tolerances used to determine the initial state for surface coverages.
Definition FlowReactor.h:104
double m_ss_rtol
steady-state relative tolerance, used to determine initial surface coverages
Definition FlowReactor.h:156
double inletSurfaceMaxErrorFailures() const
Get the steady state tolerances used to determine the initial state for surface coverages.
Definition FlowReactor.h:116
int m_max_ss_error_fails
maximum number of steady-state integrator error test failures
Definition FlowReactor.h:162
void setInletSurfaceMaxErrorFailures(int max_fails)
Set the steady state tolerances used to determine the initial state for surface coverages.
Definition FlowReactor.h:122
void getConstraints(double *constraints) override
Given a vector of length neq(), mark which variables should be considered algebraic constraints.
Definition FlowReactor.cpp:333
bool timeIsIndependent() const override
Indicates whether the governing equations for this reactor are functions of time or a spatial variabl...
Definition FlowReactor.h:29
void eval(double t, double *LHS, double *RHS) override
Not implemented; FlowReactor implements evalDae() instead.
Definition FlowReactor.h:44
string type() const override
String indicating the reactor model implemented.
Definition FlowReactor.h:21
double inletSurfaceRtol() const
Get the steady state tolerances used to determine the initial state for surface coverages.
Definition FlowReactor.h:92
size_t componentIndex(const string &nm) const override
Return the index in the solution vector for this reactor of the component named nm.
Definition FlowReactor.cpp:340
void getStateDae(double *y, double *ydot) override
Get the current state and derivative vector of the reactor for a DAE solver.
Definition FlowReactor.cpp:20
void setSurfaceAreaToVolumeRatio(double sa_to_vol)
Set the reactor's surface area to volume ratio [m^-1].
Definition FlowReactor.h:74
int m_max_ss_steps
maximum number of steady-state coverage integrator-steps
Definition FlowReactor.h:160
void setInletSurfaceMaxSteps(int max_steps)
Set the steady state tolerances used to determine the initial state for surface coverages.
Definition FlowReactor.h:110
void getState(double *y) override
Not implemented; FlowReactor implements getStateDAE() instead.
Definition FlowReactor.h:34
void evalDae(double t, double *y, double *ydot, double *residual) override
Evaluate the reactor governing equations.
Definition FlowReactor.cpp:246
string componentName(size_t k) override
Return the name of the solution component with index i.
Definition FlowReactor.cpp:358
void syncState() override
Set the state of the reactor to correspond to the state of the associated ThermoPhase object.
Definition FlowReactor.cpp:185
void updateState(double *y) override
Set the state of the reactor to correspond to the state vector y.
Definition FlowReactor.cpp:193
void setInletSurfaceRtol(double rtol)
Set the steady state tolerances used to determine the initial state for surface coverages.
Definition FlowReactor.h:98
void updateSurfaceState(double *y) override
Update the state of SurfPhase objects attached to this reactor.
Definition FlowReactor.cpp:233
double m_ss_atol
steady-state absolute tolerance, used to determine initial surface coverages
Definition FlowReactor.h:158
vector< double > m_hk
temporary storage for species partial molar enthalpies
Definition FlowReactor.h:154
Class IdealGasReactor is a class for stirred reactors that is specifically optimized for ideal gases.
Definition IdealGasReactor.h:21
An error indicating that an unimplemented function has been called.
Definition ctexceptions.h:195
Generated by 1.9.7