From cc680c2b3c2809767dd552522bf55c288c3ec89f Mon Sep 17 00:00:00 2001 From: John Hewson Date: Thu, 24 Sep 2009 20:58:28 +0000 Subject: [PATCH] Cleanup and debugging of getLiquidTransportData. --- Cantera/src/transport/TransportFactory.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Cantera/src/transport/TransportFactory.cpp b/Cantera/src/transport/TransportFactory.cpp index 392f1dcad..19d244fe3 100755 --- a/Cantera/src/transport/TransportFactory.cpp +++ b/Cantera/src/transport/TransportFactory.cpp @@ -805,6 +805,7 @@ namespace Cantera { for (i = 0; i < nsp; i++) { const XML_Node& sp = *xspecies[i]; name = sp["name"]; + std::cout << "Processing node for " << name << std::endl; // put in a try block so that species with no 'transport' // child are skipped, instead of throwing an exception. @@ -913,7 +914,8 @@ namespace Cantera { doublereal A_thcond, n_thcond, Tact_thcond; int nsp = static_cast(xspecies.size()); - + std::cout << "Size of xspecies " << nsp << std::endl; + // read all entries in database into 'datatable' and check for // errors. Note that this procedure validates all entries, not // only those for the species listed in 'names'. @@ -923,19 +925,19 @@ namespace Cantera { for (i = 0; i < nsp; i++) { const XML_Node& sp = *xspecies[i]; name = sp["name"]; + std::cout << "Processing node for " << name << std::endl; - std::cout << "Processing Liquid Transport for " << name; // put in a try block so that species with no 'transport' // child are skipped, instead of throwing an exception. try { - XML_Node& trParam = sp.child("transport"); + XML_Node& trNode = sp.child("transport"); - hydrodynamic_radius = getFloat(trParam, "hydrodynamic_radius"); + hydrodynamic_radius = getFloat(trNode, "hydrodynamic_radius"); - XML_Node& visc = trParam.child("viscosity"); + XML_Node& visc = trNode.child("viscosity"); getArrhenius(visc, A_visc, n_visc, Tact_visc ); - XML_Node& thermCond = trParam.child("thermal_conductivity"); + XML_Node& thermCond = trNode.child("thermal_conductivity"); getArrhenius(thermCond, A_thcond, n_thcond, Tact_thcond ); LiquidTransportData data;