Added comments.
This commit is contained in:
parent
5f01cc30bb
commit
0d0e481e2f
2 changed files with 33 additions and 25 deletions
|
|
@ -59,10 +59,8 @@ namespace CanteraZeroD {
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
/**
|
//! Default constructor.
|
||||||
* Default constructor.
|
Reactor();
|
||||||
*/
|
|
||||||
Reactor();
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Destructor. Deletes the integrator.
|
* Destructor. Deletes the integrator.
|
||||||
|
|
@ -121,26 +119,27 @@ namespace CanteraZeroD {
|
||||||
virtual int componentIndex(std::string nm) const;
|
virtual int componentIndex(std::string nm) const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
//! Pointer to the homogeneous Kinetics object that handles the reactions
|
||||||
Cantera::Kinetics* m_kin;
|
Cantera::Kinetics* m_kin;
|
||||||
|
|
||||||
doublereal m_temp_atol; // tolerance on T
|
|
||||||
doublereal m_maxstep; // max step size
|
|
||||||
doublereal m_vdot, m_Q;
|
|
||||||
Cantera::vector_fp m_atol;
|
|
||||||
doublereal m_rtol;
|
|
||||||
Cantera::vector_fp m_work;
|
|
||||||
Cantera::vector_fp m_sdot; // surface production rates
|
|
||||||
bool m_chem;
|
|
||||||
bool m_energy;
|
|
||||||
int m_nv;
|
|
||||||
|
|
||||||
int m_nsens;
|
|
||||||
Cantera::vector_int m_pnum;
|
|
||||||
std::vector<std::string> m_pname;
|
|
||||||
Cantera::vector_int m_nsens_wall;
|
|
||||||
Cantera::vector_fp m_mult_save;
|
|
||||||
|
|
||||||
|
//! Tolerance on the temperature
|
||||||
|
doublereal m_temp_atol;
|
||||||
|
doublereal m_maxstep; // max step size
|
||||||
|
doublereal m_vdot, m_Q;
|
||||||
|
Cantera::vector_fp m_atol;
|
||||||
|
doublereal m_rtol;
|
||||||
|
Cantera::vector_fp m_work;
|
||||||
|
Cantera::vector_fp m_sdot; // surface production rates
|
||||||
|
bool m_chem;
|
||||||
|
bool m_energy;
|
||||||
|
int m_nv;
|
||||||
|
|
||||||
|
int m_nsens;
|
||||||
|
Cantera::vector_int m_pnum;
|
||||||
|
std::vector<std::string> m_pname;
|
||||||
|
Cantera::vector_int m_nsens_wall;
|
||||||
|
Cantera::vector_fp m_mult_save;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -133,7 +133,14 @@ namespace CanteraZeroD {
|
||||||
/// the current time (s).
|
/// the current time (s).
|
||||||
doublereal time() const { return m_time; }
|
doublereal time() const { return m_time; }
|
||||||
|
|
||||||
doublereal volume() const { return m_vol; }
|
|
||||||
|
//! Returns the current volume of the reactor
|
||||||
|
/*!
|
||||||
|
* @return Return the volume in m**3
|
||||||
|
*/
|
||||||
|
doublereal volume() const {
|
||||||
|
return m_vol;
|
||||||
|
}
|
||||||
doublereal density() const { return m_state[1]; }
|
doublereal density() const { return m_state[1]; }
|
||||||
doublereal temperature() const { return m_state[0]; }
|
doublereal temperature() const { return m_state[0]; }
|
||||||
doublereal enthalpy_mass() const { return m_enthalpy; }
|
doublereal enthalpy_mass() const { return m_enthalpy; }
|
||||||
|
|
@ -152,7 +159,9 @@ namespace CanteraZeroD {
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
int m_nsp;
|
//! Number of homogeneous species in the mixture
|
||||||
|
int m_nsp;
|
||||||
|
|
||||||
Cantera::thermo_t* m_thermo;
|
Cantera::thermo_t* m_thermo;
|
||||||
doublereal m_time;
|
doublereal m_time;
|
||||||
doublereal m_vol, m_vol0;
|
doublereal m_vol, m_vol0;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue