Fleshing out liquid transport

This commit is contained in:
Harry Moffat 2009-09-16 22:04:16 +00:00
parent ce79948739
commit fc3c2630a3
2 changed files with 16 additions and 0 deletions

View file

@ -35,6 +35,7 @@
#include "xml.h"
#include "XML_Writer.h"
#include "TransportParams.h"
#include "LiquidTransportParams.h"
#include "global.h"
#include "IdealGasPhase.h"
#include "ctml.h"
@ -344,12 +345,14 @@ namespace Cantera {
#ifdef WITH_IDEAL_SOLUTIONS
case cLiquidTransport:
tr = new LiquidTransport;
initLiquidTransport(tr, phase, log_level);
tr->setThermo(*phase);
break;
#endif
#ifdef WITH_ELECTROLYTES
case cAqueousTransport:
tr = new AqueousTransport;
initLiquidTransport(tr, phase, log_level);
tr->setThermo(*phase);
break;
#endif
@ -525,6 +528,13 @@ namespace Cantera {
}
void
TransportFactory::initLiquidTransport(Transport* tran,
thermo_t* thermo,
int log_level) {
}

View file

@ -131,6 +131,12 @@ namespace Cantera {
virtual void initTransport(Transport* tr,
thermo_t* thermo=0, int mode=0, int log_level=0);
/// Initialize an existing transport manager for liquid phase
virtual void initLiquidTransport(Transport* tr,
thermo_t* thermo=0,
int log_level=0);
private: