From 6ce3c72679f52e77f007cefac0df24dbfcc3db40 Mon Sep 17 00:00:00 2001 From: "Timothy A. Smith" <tasmith4@illinois.edu> Date: Mon, 19 Aug 2019 10:55:18 -0500 Subject: [PATCH] added test case with constant initial data --- data_for_test.py | 110 ++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 109 insertions(+), 1 deletion(-) diff --git a/data_for_test.py b/data_for_test.py index 085d6b2..c1bf206 100644 --- a/data_for_test.py +++ b/data_for_test.py @@ -76,6 +76,113 @@ class FluxDataSingle: single_data = {} +# {{{ Input data: "flat" case + +single_data["Case flat:x"] = FluxDataSingle( + states_str="1 1 1 1 5.5,1 1 1 1 5.5", + fluxes_str="1 2.6 1 1 7.1,1 2.6 1 1 7.1", + lam_str=("1. 1. 1. 2.4966629547095764 -0.49666295470957644," + "1. 1. 1. 2.4966629547095764 -0.49666295470957644"), + R_str=("1 0 0 0.3340765523905305 0.3340765523905305," + "1 0 0 0.8340765523905306 -0.1659234476094695," + "1 1 0 0.3340765523905305 0.3340765523905305," + "1 0 1 0.3340765523905305 0.3340765523905305," + "1.5000000000000009 1 1 2.8719435219727663 1.8719435219727667"), + R_inv_str=("0.7321428571428572 0.1785714285714286 0.1785714285714286 " + "0.1785714285714286 -0.1785714285714286," + "-1. 0 1. 0 0," + "-1. 0 0 1. 0," + "-0.5991081371313636 0.7327387580875756 -0.2672612419124244 " + "-0.2672612419124244 0.2672612419124244," + "1.4008918628686364 -1.2672612419124245 -0.2672612419124244 " + "-0.2672612419124244 0.2672612419124244"), + wavespeeds_str="1.1 1.1 1.1 2.7463292501805343 0.5463292501805341", + char_fluxes_pos_str=( + "0.30000000000000004 0. 0. 2.8024972160321826 0.026547751617514326," + "0.30000000000000004 0. 0. 2.8024972160321826 0.026547751617514326"), + char_fluxes_neg_str=( + "-0.014285714285714235 0. 0. -0.13345224838248493 -0.5575027839678178," + "-0.014285714285714235 0. 0. -0.13345224838248493 -0.5575027839678178"), + weno_weights_pos_str=("0.1 0.1 0.1 0.1 0.1," + "0.6 0.6 0.6 0.6 0.6,0.3 0.3 0.3 0.3 0.3"), + weno_weights_neg_str=("0.1 0.1 0.1 0.1 0.1," + "0.6 0.6 0.6 0.6 0.6,0.3 0.3 0.3 0.3 0.3"), + consistent_str="1 2.6 1 1 7.1", + dissipation_pos_str=("0 0 0 0 0"), + dissipation_neg_str=("0 0 0 0 0"), + weno_flux_str=("1 2.6 1 1 7.1"), + direction="x") +single_data["Case flat:y"] = FluxDataSingle( + states_str="1 1 1 1 5.5,1 1 1 1 5.5", + fluxes_str="1 2.6 1 1 7.1,1 2.6 1 1 7.1", + lam_str=("1. 1. 1. 2.4966629547095764 -0.49666295470957644," + "1. 1. 1. 2.4966629547095764 -0.49666295470957644"), + R_str=("1 0 0 0.3340765523905305 0.3340765523905305," + "1 0 0 0.8340765523905306 -0.1659234476094695," + "1 1 0 0.3340765523905305 0.3340765523905305," + "1 0 1 0.3340765523905305 0.3340765523905305," + "1.5000000000000009 1 1 2.8719435219727663 1.8719435219727667"), + R_inv_str=("0.7321428571428572 0.1785714285714286 0.1785714285714286 " + "0.1785714285714286 -0.1785714285714286," + "-1. 0 1. 0 0," + "-1. 0 0 1. 0," + "-0.5991081371313636 0.7327387580875756 -0.2672612419124244 " + "-0.2672612419124244 0.2672612419124244," + "1.4008918628686364 -1.2672612419124245 -0.2672612419124244 " + "-0.2672612419124244 0.2672612419124244"), + wavespeeds_str="1.1 1.1 1.1 2.7463292501805343 0.5463292501805341", + char_fluxes_pos_str=( + "0.30000000000000004 0. 0. 2.8024972160321826 0.026547751617514326," + "0.30000000000000004 0. 0. 2.8024972160321826 0.026547751617514326"), + char_fluxes_neg_str=( + "-0.014285714285714235 0. 0. -0.13345224838248493 -0.5575027839678178," + "-0.014285714285714235 0. 0. -0.13345224838248493 -0.5575027839678178"), + weno_weights_pos_str=("0.1 0.1 0.1 0.1 0.1," + "0.6 0.6 0.6 0.6 0.6,0.3 0.3 0.3 0.3 0.3"), + weno_weights_neg_str=("0.1 0.1 0.1 0.1 0.1," + "0.6 0.6 0.6 0.6 0.6,0.3 0.3 0.3 0.3 0.3"), + consistent_str="1 2.6 1 1 7.1", + dissipation_pos_str=("0 0 0 0 0"), + dissipation_neg_str=("0 0 0 0 0"), + weno_flux_str=("1 2.6 1 1 7.1"), + direction="y") +single_data["Case flat:z"] = FluxDataSingle( + states_str="1 1 1 1 5.5,1 1 1 1 5.5", + fluxes_str="1 2.6 1 1 7.1,1 2.6 1 1 7.1", + lam_str=("1. 1. 1. 2.4966629547095764 -0.49666295470957644," + "1. 1. 1. 2.4966629547095764 -0.49666295470957644"), + R_str=("1 0 0 0.3340765523905305 0.3340765523905305," + "1 0 0 0.8340765523905306 -0.1659234476094695," + "1 1 0 0.3340765523905305 0.3340765523905305," + "1 0 1 0.3340765523905305 0.3340765523905305," + "1.5000000000000009 1 1 2.8719435219727663 1.8719435219727667"), + R_inv_str=("0.7321428571428572 0.1785714285714286 0.1785714285714286 " + "0.1785714285714286 -0.1785714285714286," + "-1. 0 1. 0 0," + "-1. 0 0 1. 0," + "-0.5991081371313636 0.7327387580875756 -0.2672612419124244 " + "-0.2672612419124244 0.2672612419124244," + "1.4008918628686364 -1.2672612419124245 -0.2672612419124244 " + "-0.2672612419124244 0.2672612419124244"), + wavespeeds_str="1.1 1.1 1.1 2.7463292501805343 0.5463292501805341", + char_fluxes_pos_str=( + "0.30000000000000004 0. 0. 2.8024972160321826 0.026547751617514326," + "0.30000000000000004 0. 0. 2.8024972160321826 0.026547751617514326"), + char_fluxes_neg_str=( + "-0.014285714285714235 0. 0. -0.13345224838248493 -0.5575027839678178," + "-0.014285714285714235 0. 0. -0.13345224838248493 -0.5575027839678178"), + weno_weights_pos_str=("0.1 0.1 0.1 0.1 0.1," + "0.6 0.6 0.6 0.6 0.6,0.3 0.3 0.3 0.3 0.3"), + weno_weights_neg_str=("0.1 0.1 0.1 0.1 0.1," + "0.6 0.6 0.6 0.6 0.6,0.3 0.3 0.3 0.3 0.3"), + consistent_str="1 2.6 1 1 7.1", + dissipation_pos_str=("0 0 0 0 0"), + dissipation_neg_str=("0 0 0 0 0"), + weno_flux_str=("1 2.6 1 1 7.1"), + direction="z") + +# }}} + # {{{ Input data: Case (a) single_data["Case a:x"] = FluxDataSingle( @@ -701,7 +808,8 @@ single_data["Case d:z"] = FluxDataSingle( @pytest.fixture(scope="session", params=[ - "Case a:x"])#, "Case a:y", "Case a:z", + "Case flat:x", "Case flat:y", "Case flat:z"]) + #"Case a:x", "Case a:y", "Case a:z", #"Case b:x", "Case b:y", "Case b:z", #"Case c:x", "Case c:y", "Case c:z", #"Case d:x", "Case d:y", "Case d:z"]) -- GitLab