Added comments.

This commit is contained in:
Harry Moffat 2011-11-03 20:03:23 +00:00
parent 5f01cc30bb
commit 0d0e481e2f
2 changed files with 33 additions and 25 deletions

View file

@ -59,10 +59,8 @@ namespace CanteraZeroD {
public:
/**
* Default constructor.
*/
Reactor();
//! Default constructor.
Reactor();
/**
* Destructor. Deletes the integrator.
@ -121,26 +119,27 @@ namespace CanteraZeroD {
virtual int componentIndex(std::string nm) const;
protected:
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;
//! Pointer to the homogeneous Kinetics object that handles the reactions
Cantera::Kinetics* m_kin;
//! 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:
};
}

View file

@ -133,7 +133,14 @@ namespace CanteraZeroD {
/// the current time (s).
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 temperature() const { return m_state[0]; }
doublereal enthalpy_mass() const { return m_enthalpy; }
@ -152,7 +159,9 @@ namespace CanteraZeroD {
protected:
int m_nsp;
//! Number of homogeneous species in the mixture
int m_nsp;
Cantera::thermo_t* m_thermo;
doublereal m_time;
doublereal m_vol, m_vol0;