[Transport] Make WaterTransport constructible using newTransportMgr

This makes it possible to specify the WaterTransport model in XML input files,
and to use the model from Python and Matlab.

Resolves #289
This commit is contained in:
Ray Speth
2018-09-07 23:24:23 -04:00
parent d9f9f69fc3
commit b0deb41708
5 changed files with 12 additions and 8 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
#include "cantera/thermo/ThermoFactory.h"
#include "cantera/transport/WaterTransport.h"
#include "cantera/transport/TransportFactory.h"
#include <cstdio>
@@ -22,7 +22,7 @@ int main()
double lambda;
ThermoPhase* w = newPhase("liquid-water.xml");
WaterTransport* wtTran = new WaterTransport(w, 3);
Transport* wtTran = newDefaultTransportMgr(w);
printf("------------------------------------------------------------------------------------\n");
printf(" T(C) MPa Phase Visc Visc(paper) lambda lambda(paper)\n");
printf(" 10-6 kg/m/s 10-3 W/m/s \n");