From be97b0e7ba6679803fa95dfe664f3345654beb53 Mon Sep 17 00:00:00 2001 From: Nicholas Malaya Date: Fri, 17 Aug 2012 21:53:35 +0000 Subject: [PATCH] adding a new regression test --- test_problems/statmech/statmech_transport.cpp | 7 +- test_problems/statmech/test_stat_trans.xml | 100 ++++++++++++++++++ 2 files changed, 106 insertions(+), 1 deletion(-) create mode 100644 test_problems/statmech/test_stat_trans.xml diff --git a/test_problems/statmech/statmech_transport.cpp b/test_problems/statmech/statmech_transport.cpp index ca9a4ae8f..22a11b240 100644 --- a/test_problems/statmech/statmech_transport.cpp +++ b/test_problems/statmech/statmech_transport.cpp @@ -33,10 +33,15 @@ int main(int argc, char** argv) try { int k; - IdealGasMix g("test_stat.xml"); + IdealGasMix g("test_stat_trans.xml"); int nsp = g.nSpecies(); double pres = 1.0E5; + // init pecos transport + int log_level = 0; + Transport * tran = newTransportMgr("Pecos", &g, log_level=0); + PecosTransport * tranMix = dynamic_cast(tran); + vector_fp Xset(nsp, 0.0); Xset[0] = 0.5 ; Xset[1] = 0.5; diff --git a/test_problems/statmech/test_stat_trans.xml b/test_problems/statmech/test_stat_trans.xml new file mode 100644 index 000000000..91673d957 --- /dev/null +++ b/test_problems/statmech/test_stat_trans.xml @@ -0,0 +1,100 @@ + + + + + + + + + O H C N Na + + H O N NO2 + + 2.165 + + + + + + + + + + + H:1 + + + + + 2.165 + + atom + 80.000 + 2.750 + 0.000 + 0.000 + 0.000 + + + + + + O:1 + + + + + 2.165 + + atom + 80.000 + 2.750 + 0.000 + 0.000 + 0.000 + + + + + + N:1 + + + + + 2.165 + + atom + 80.000 + 2.750 + 0.000 + 0.000 + 0.000 + + + + + + O:2 N:1 + + + + + + + 2.165 + + + atom + 80.000 + 2.750 + 0.000 + 0.000 + 0.000 + + + + + + +