From 3cd220bde5be0dca447cd041d2995fce9f7aab3f Mon Sep 17 00:00:00 2001 From: China Hagstrom Date: Wed, 7 Apr 2021 10:59:49 -0400 Subject: [PATCH] Added thermal conductivity test to TestDustyGas class --- interfaces/cython/cantera/test/test_transport.py | 5 +++++ interfaces/cython/cantera/transport.pyx | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/interfaces/cython/cantera/test/test_transport.py b/interfaces/cython/cantera/test/test_transport.py index 974f07c531..aaa3d4535d 100644 --- a/interfaces/cython/cantera/test/test_transport.py +++ b/interfaces/cython/cantera/test/test_transport.py @@ -309,6 +309,11 @@ def test_molar_fluxes(self): # Not sure why the following condition is not satisfied: # self.assertNear(sum(fluxes1) / sum(abs(fluxes1)), 0.0) + def test_thermal_conductivity(self): + gas1 = ct.Solution('h2o2.xml', transport_model='multicomponent') + gas1.TPX = self.phase.TPX + + self.assertEqual(self.phase.thermal_conductivity, gas1.thermal_conductivity) class TestWaterTransport(utilities.CanteraTest): """ diff --git a/interfaces/cython/cantera/transport.pyx b/interfaces/cython/cantera/transport.pyx index 56ebd3f41e..e6dedec1c8 100644 --- a/interfaces/cython/cantera/transport.pyx +++ b/interfaces/cython/cantera/transport.pyx @@ -182,7 +182,11 @@ cdef class Transport(_SolutionBase): return self.transport.electricalConductivity() property thermal_conductivity: - """Thermal conductivity. [W/m/K].""" + """ + Thermal conductivity. [W/m/K] + Returns thermal conductivity of the ideal gas object using the multicomponent + model. The value is not specific to the dusty gas model. + """ def __get__(self): return self.transport.thermalConductivity()