Added a dummy routine to set and store the pressure. It doesn't
have an effect on anything. However, it doesn't cause a cantera error.
This commit is contained in:
parent
0bb4034bcf
commit
9e273febb5
1 changed files with 16 additions and 0 deletions
|
|
@ -53,6 +53,21 @@ namespace Cantera {
|
|||
doublereal potentialEnergy(int k) {return m_pe[k];}
|
||||
void setSiteDensity(doublereal n0);
|
||||
void setElectricPotential(doublereal V);
|
||||
|
||||
/**
|
||||
* Pressure. Units: Pa.
|
||||
*/
|
||||
virtual doublereal pressure() const {
|
||||
return m_press;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the pressure at constant temperature. Units: Pa.
|
||||
*/
|
||||
virtual void setPressure(doublereal p) {
|
||||
m_press = p;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the surface site fractions to a specified
|
||||
* state. This routine converts to concentrations
|
||||
|
|
@ -75,6 +90,7 @@ namespace Cantera {
|
|||
doublereal m_n0;
|
||||
doublereal m_logn0;
|
||||
doublereal m_tmin, m_tmax;
|
||||
doublereal m_press;
|
||||
|
||||
mutable doublereal m_tlast;
|
||||
mutable array_fp m_h0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue