Added a duplicator routine.
This commit is contained in:
parent
dd4fb7152d
commit
990537d5f1
2 changed files with 25 additions and 2 deletions
|
|
@ -139,6 +139,20 @@ namespace Cantera {
|
|||
PDSS::~PDSS() {
|
||||
}
|
||||
|
||||
// Duplicator from the %PDSS parent class
|
||||
/*
|
||||
* Given a pointer to a %PDSS object, this function will
|
||||
* duplicate the %PDSS object and all underlying structures.
|
||||
* This is basically a wrapper around the copy constructor.
|
||||
*
|
||||
* @return returns a pointer to a %PDSS
|
||||
*/
|
||||
PDSS *PDSS::duplMyselfAsPDSS() const {
|
||||
PDSS *ip = new PDSS(*this);
|
||||
return ip;
|
||||
}
|
||||
|
||||
|
||||
void PDSS::constructPDSS(ThermoPhase *tp, int spindex) {
|
||||
initThermo();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -112,10 +112,20 @@ namespace Cantera {
|
|||
|
||||
//! Destructor for the phase
|
||||
virtual ~PDSS();
|
||||
|
||||
//! Duplication routine for objects which inherit from %PDSS
|
||||
/*!
|
||||
* This virtual routine can be used to duplicate %PDSS objects
|
||||
* inherited from %PDSS even if the application only has
|
||||
* a pointer to %PDSS to work with.
|
||||
*
|
||||
* @return returns a pointer to the base %PDSS object type
|
||||
*/
|
||||
virtual PDSS *duplMyselfAsPDSS() const;
|
||||
|
||||
/**
|
||||
*
|
||||
* @name Utilities
|
||||
* @name Utilities
|
||||
* @{
|
||||
*/
|
||||
|
||||
|
|
@ -189,7 +199,6 @@ namespace Cantera {
|
|||
* Get the difference in the standard state thermodynamic properties
|
||||
* between the current pressure. and the reference pressure, p0
|
||||
*/
|
||||
|
||||
virtual doublereal enthalpyDelp_mole() const;
|
||||
virtual doublereal intEnergyDelp_mole() const;
|
||||
virtual doublereal entropyDelp_mole() const;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue