From 1ebc2e22f28dde0019bf8e373259bb7df55b50f9 Mon Sep 17 00:00:00 2001 From: Yeongdo Park Date: Tue, 1 Jan 2019 10:40:18 -0500 Subject: [PATCH] compare pure species thermal conductivity --- testApp/chemFoam.C | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/testApp/chemFoam.C b/testApp/chemFoam.C index 2a1567d..3d0675a 100644 --- a/testApp/chemFoam.C +++ b/testApp/chemFoam.C @@ -245,7 +245,21 @@ int main(int argc, char *argv[]) ) ; - Info << kSp << nl << endl; + forAll(thermo.composition().species(), k) + { + XY = 0.0; + XY[k] = 1.0; + gas_.setState_TPY(thermo.T()[0], p[0], XY.data()); + + logWriter + ( + "k_"+thermo.composition().species()[k], + thermo.T()[0], + kSp[k], + tr_->thermalConductivity() + ) + ; + } } Info << logWriter.numErrors() << " / " << logWriter.numTests() << " End" << nl << endl;