Ejemplo n.º 1
0
        def test(self):
            output_library = run()

            gold_file = abspath(join('tests',
                                     'tabulation',
                                     'adiabatic_slfm',
                                     'gold.pkl'))
            gold_library = Library.load_from_file(gold_file)

            for prop in gold_library.props:
                self.assertIsNone(assert_allclose(gold_library[prop], output_library[prop], rtol=1.e-6, atol=1.e-6))
Ejemplo n.º 2
0
        def test_parallel(self):
            output_library = run(num_procs=2)

            gold_file = abspath(join('tests',
                                     'tabulation',
                                     'nonadiabatic_defect_transient_slfm',
                                     'gold.pkl'))
            gold_library = Library.load_from_file(gold_file)

            for prop in gold_library.props:
                self.assertIsNone(assert_allclose(gold_library[prop], output_library[prop], rtol=2.e-4, atol=1.e-4))
Ejemplo n.º 3
0
        def test(self):
            output_library = run()

            gold_file = abspath(
                join('tests', 'tabulation',
                     'nonadiabatic_defect_burke_schumann', 'gold.pkl'))
            gold_library = Library.load_from_file(gold_file)

            for prop in gold_library.props:
                self.assertIsNone(
                    assert_allclose(gold_library[prop],
                                    output_library[prop],
                                    atol=1.e-14))
Ejemplo n.º 4
0
            def test(self):
                output_library = run()

                gold_file = abspath(join('tests',
                                         'tabulation',
                                         'turb_adiabatic_equilibrium',
                                         'gold.pkl'))
                gold_library = Library.load_from_file(gold_file)

                for prop in gold_library.props:
                    self.assertIsNone(assert_allclose(gold_library[prop], output_library[prop], atol=1.e-14))

                self.assertEqual(output_library.dims[0].name, 'mixture_fraction_mean')
                self.assertEqual(output_library.dims[1].name, 'scaled_scalar_variance_mean')