Fleshing out liquid transport
This commit is contained in:
parent
ce79948739
commit
fc3c2630a3
2 changed files with 16 additions and 0 deletions
|
|
@ -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) {
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue