From b7e1a5f0bdf275a01de19f8a95947b1867fae57c Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Mon, 20 Jun 2016 19:07:56 -0400 Subject: [PATCH] [Transport] Use correct scaling factor when fitting conductivity Fixes #345 --- src/transport/GasTransport.cpp | 2 +- test_problems/mixGasTransport/output_blessed.txt | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/transport/GasTransport.cpp b/src/transport/GasTransport.cpp index 4ab0193ba..c91027488 100644 --- a/src/transport/GasTransport.cpp +++ b/src/transport/GasTransport.cpp @@ -651,7 +651,7 @@ void GasTransport::fitProperties(MMCollisionInt& integrals) } } polyfit(np, degree, tlog.data(), spvisc.data(), w.data(), c.data()); - polyfit(np, degree, tlog.data(), spcond.data(), w.data(), c2.data()); + polyfit(np, degree, tlog.data(), spcond.data(), w2.data(), c2.data()); // evaluate max fit errors for viscosity for (size_t n = 0; n < np; n++) { diff --git a/test_problems/mixGasTransport/output_blessed.txt b/test_problems/mixGasTransport/output_blessed.txt index 8f2c6fe06..bf547fc83 100644 --- a/test_problems/mixGasTransport/output_blessed.txt +++ b/test_problems/mixGasTransport/output_blessed.txt @@ -161,15 +161,15 @@ CH2CHO 0 CH3CHO 0 Viscosity and thermal Cond vs. T - 400 1.976e-05 0.06407 - 500 2.357e-05 0.07633 - 600 2.714e-05 0.08831 + 400 1.976e-05 0.0641 + 500 2.357e-05 0.07635 + 600 2.714e-05 0.08832 700 3.049e-05 0.1002 800 3.368e-05 0.112 - 900 3.673e-05 0.1238 + 900 3.673e-05 0.1237 1000 3.966e-05 0.1355 1100 4.247e-05 0.1471 - 1200 4.52e-05 0.1587 + 1200 4.52e-05 0.1586 1300 4.784e-05 0.1701 Binary Diffusion Coefficients H2 vs species H2 - H2 0.001688 0.001688