From 4373340052bb17c7558e54007e8f44b670765003 Mon Sep 17 00:00:00 2001 From: Florian Atteneder <florian.atteneder@uni-jena.de> Date: Wed, 13 Dec 2023 16:37:09 +0100 Subject: [PATCH] add sod_shock_tube examples --- examples/sod_shock_tube/fv.toml | 23 +++++++++++++++++++ examples/sod_shock_tube/fv3.toml | 23 +++++++++++++++++++ examples/sod_shock_tube/fv4.toml | 23 +++++++++++++++++++ examples/sod_shock_tube/fv5.toml | 23 +++++++++++++++++++ examples/sod_shock_tube/fv6.toml | 23 +++++++++++++++++++ examples/sod_shock_tube/fv7.toml | 23 +++++++++++++++++++ examples/sod_shock_tube/mono_n3.toml | 33 ++++++++++++++++++++++++++++ examples/sod_shock_tube/mono_n4.toml | 33 ++++++++++++++++++++++++++++ examples/sod_shock_tube/mono_n5.toml | 33 ++++++++++++++++++++++++++++ examples/sod_shock_tube/mono_n6.toml | 33 ++++++++++++++++++++++++++++ examples/sod_shock_tube/mono_n7.toml | 33 ++++++++++++++++++++++++++++ 11 files changed, 303 insertions(+) create mode 100644 examples/sod_shock_tube/fv.toml create mode 100644 examples/sod_shock_tube/fv3.toml create mode 100644 examples/sod_shock_tube/fv4.toml create mode 100644 examples/sod_shock_tube/fv5.toml create mode 100644 examples/sod_shock_tube/fv6.toml create mode 100644 examples/sod_shock_tube/fv7.toml create mode 100644 examples/sod_shock_tube/mono_n3.toml create mode 100644 examples/sod_shock_tube/mono_n4.toml create mode 100644 examples/sod_shock_tube/mono_n5.toml create mode 100644 examples/sod_shock_tube/mono_n6.toml create mode 100644 examples/sod_shock_tube/mono_n7.toml diff --git a/examples/sod_shock_tube/fv.toml b/examples/sod_shock_tube/fv.toml new file mode 100644 index 00000000..e9880d8a --- /dev/null +++ b/examples/sod_shock_tube/fv.toml @@ -0,0 +1,23 @@ +[EquationOfState] +idealgas_gamma = 1.4 +eos = "idealgas" + +[EulerEq] +id = "sod_shock_tube" +bc = "from_id" + +[Evolution] +cfl = 1.0 +tend = 0.5 + +[Mesh] +periodic = [false] +range = [-1.0, 1.0] +k = 1536 +scheme = "FV" + +[Output] +every_iteration = 0 +every_dt = 0.0 +aligned_ts = "$(collect(range(0.01,0.5,step=0.01)))" +variables = [ "rho", "q", "E" ] diff --git a/examples/sod_shock_tube/fv3.toml b/examples/sod_shock_tube/fv3.toml new file mode 100644 index 00000000..5fa04780 --- /dev/null +++ b/examples/sod_shock_tube/fv3.toml @@ -0,0 +1,23 @@ +[EquationOfState] +idealgas_gamma = 1.4 +eos = "idealgas" + +[EulerEq] +id = "sod_shock_tube" +bc = "from_id" + +[Evolution] +cfl = 1.0 +tend = 0.5 + +[Mesh] +periodic = [false] +range = [-1.0, 1.0] +k = 768 +scheme = "FV" + +[Output] +every_iteration = 0 +every_dt = 0.0 +aligned_ts = "$(collect(range(0.01,0.5,step=0.01)))" +variables = [ "rho", "q", "E" ] diff --git a/examples/sod_shock_tube/fv4.toml b/examples/sod_shock_tube/fv4.toml new file mode 100644 index 00000000..bc12f87c --- /dev/null +++ b/examples/sod_shock_tube/fv4.toml @@ -0,0 +1,23 @@ +[EquationOfState] +idealgas_gamma = 1.4 +eos = "idealgas" + +[EulerEq] +id = "sod_shock_tube" +bc = "from_id" + +[Evolution] +cfl = 1.0 +tend = 0.5 + +[Mesh] +periodic = [false] +range = [-1.0, 1.0] +k = 1024 +scheme = "FV" + +[Output] +every_iteration = 0 +every_dt = 0.0 +aligned_ts = "$(collect(range(0.01,0.5,step=0.01)))" +variables = [ "rho", "q", "E" ] diff --git a/examples/sod_shock_tube/fv5.toml b/examples/sod_shock_tube/fv5.toml new file mode 100644 index 00000000..f75e9fff --- /dev/null +++ b/examples/sod_shock_tube/fv5.toml @@ -0,0 +1,23 @@ +[EquationOfState] +idealgas_gamma = 1.4 +eos = "idealgas" + +[EulerEq] +id = "sod_shock_tube" +bc = "from_id" + +[Evolution] +cfl = 1.0 +tend = 0.5 + +[Mesh] +periodic = [false] +range = [-1.0, 1.0] +k = 1280 +scheme = "FV" + +[Output] +every_iteration = 0 +every_dt = 0.0 +aligned_ts = "$(collect(range(0.01,0.5,step=0.01)))" +variables = [ "rho", "q", "E" ] diff --git a/examples/sod_shock_tube/fv6.toml b/examples/sod_shock_tube/fv6.toml new file mode 100644 index 00000000..e9880d8a --- /dev/null +++ b/examples/sod_shock_tube/fv6.toml @@ -0,0 +1,23 @@ +[EquationOfState] +idealgas_gamma = 1.4 +eos = "idealgas" + +[EulerEq] +id = "sod_shock_tube" +bc = "from_id" + +[Evolution] +cfl = 1.0 +tend = 0.5 + +[Mesh] +periodic = [false] +range = [-1.0, 1.0] +k = 1536 +scheme = "FV" + +[Output] +every_iteration = 0 +every_dt = 0.0 +aligned_ts = "$(collect(range(0.01,0.5,step=0.01)))" +variables = [ "rho", "q", "E" ] diff --git a/examples/sod_shock_tube/fv7.toml b/examples/sod_shock_tube/fv7.toml new file mode 100644 index 00000000..0e968a8d --- /dev/null +++ b/examples/sod_shock_tube/fv7.toml @@ -0,0 +1,23 @@ +[EquationOfState] +idealgas_gamma = 1.4 +eos = "idealgas" + +[EulerEq] +id = "sod_shock_tube" +bc = "from_id" + +[Evolution] +cfl = 1.0 +tend = 0.5 + +[Mesh] +periodic = [false] +range = [-1.0, 1.0] +k = 1792 +scheme = "FV" + +[Output] +every_iteration = 0 +every_dt = 0.0 +aligned_ts = "$(collect(range(0.01,0.5,step=0.01)))" +variables = [ "rho", "q", "E" ] diff --git a/examples/sod_shock_tube/mono_n3.toml b/examples/sod_shock_tube/mono_n3.toml new file mode 100644 index 00000000..cac7d55e --- /dev/null +++ b/examples/sod_shock_tube/mono_n3.toml @@ -0,0 +1,33 @@ +[EquationOfState] +idealgas_gamma = 1.4 +eos = "idealgas" + +[EulerEq] +id = "sod_shock_tube" +bc = "from_id" +av_regularization = "mono" + +[Mesh] +periodic = [ false ] +range = [ -1.0, 1.0 ] +cfl = 0.75 +n = 3 +k = 256 +basis = "lgl" + +[Output] +every_iteration = 0 +every_dt = 0.0 +aligned_ts = "$(collect(range(0.01,0.5,step=0.01)))" +variables = [ "rho", "q", "E", "ldg_rho", "ldg_q", "ldg_E", "smoothed_mu" ] + +[Evolution] +tend = 0.5 + +[Log] +progress_stdout = true + +[HRSC] +method = "av" +av_method = "entropy" +entropy_ce = 5.0 diff --git a/examples/sod_shock_tube/mono_n4.toml b/examples/sod_shock_tube/mono_n4.toml new file mode 100644 index 00000000..756994ab --- /dev/null +++ b/examples/sod_shock_tube/mono_n4.toml @@ -0,0 +1,33 @@ +[EquationOfState] +idealgas_gamma = 1.4 +eos = "idealgas" + +[EulerEq] +id = "sod_shock_tube" +bc = "from_id" +av_regularization = "mono" + +[Mesh] +periodic = [ false ] +range = [ -1.0, 1.0 ] +cfl = 0.75 +n = 4 +k = 256 +basis = "lgl" + +[Output] +every_iteration = 0 +every_dt = 0.0 +aligned_ts = "$(collect(range(0.01,0.5,step=0.01)))" +variables = [ "rho", "q", "E", "ldg_rho", "ldg_q", "ldg_E", "smoothed_mu" ] + +[Evolution] +tend = 0.5 + +[Log] +progress_stdout = true + +[HRSC] +method = "av" +av_method = "entropy" +entropy_ce = 5.0 diff --git a/examples/sod_shock_tube/mono_n5.toml b/examples/sod_shock_tube/mono_n5.toml new file mode 100644 index 00000000..0a77c7af --- /dev/null +++ b/examples/sod_shock_tube/mono_n5.toml @@ -0,0 +1,33 @@ +[EquationOfState] +idealgas_gamma = 1.4 +eos = "idealgas" + +[EulerEq] +id = "sod_shock_tube" +bc = "from_id" +av_regularization = "mono" + +[Mesh] +periodic = [ false ] +range = [ -1.0, 1.0 ] +cfl = 0.75 +n = 5 +k = 256 +basis = "lgl" + +[Output] +every_iteration = 0 +every_dt = 0.0 +aligned_ts = "$(collect(range(0.01,0.5,step=0.01)))" +variables = [ "rho", "q", "E", "ldg_rho", "ldg_q", "ldg_E", "smoothed_mu" ] + +[Evolution] +tend = 0.5 + +[Log] +progress_stdout = true + +[HRSC] +method = "av" +av_method = "entropy" +entropy_ce = 5.0 diff --git a/examples/sod_shock_tube/mono_n6.toml b/examples/sod_shock_tube/mono_n6.toml new file mode 100644 index 00000000..e006699f --- /dev/null +++ b/examples/sod_shock_tube/mono_n6.toml @@ -0,0 +1,33 @@ +[EquationOfState] +idealgas_gamma = 1.4 +eos = "idealgas" + +[EulerEq] +id = "sod_shock_tube" +bc = "from_id" +av_regularization = "mono" + +[Mesh] +periodic = [ false ] +range = [ -1.0, 1.0 ] +cfl = 0.75 +n = 6 +k = 256 +basis = "lgl" + +[Output] +every_iteration = 0 +every_dt = 0.0 +aligned_ts = "$(collect(range(0.01,0.5,step=0.01)))" +variables = [ "rho", "q", "E", "ldg_rho", "ldg_q", "ldg_E", "smoothed_mu" ] + +[Evolution] +tend = 0.5 + +[Log] +progress_stdout = true + +[HRSC] +method = "av" +av_method = "entropy" +entropy_ce = 5.0 diff --git a/examples/sod_shock_tube/mono_n7.toml b/examples/sod_shock_tube/mono_n7.toml new file mode 100644 index 00000000..a3670c3e --- /dev/null +++ b/examples/sod_shock_tube/mono_n7.toml @@ -0,0 +1,33 @@ +[EquationOfState] +idealgas_gamma = 1.4 +eos = "idealgas" + +[EulerEq] +id = "sod_shock_tube" +bc = "from_id" +av_regularization = "mono" + +[Mesh] +periodic = [ false ] +range = [ -1.0, 1.0 ] +cfl = 0.75 +n = 7 +k = 256 +basis = "lgl" + +[Output] +every_iteration = 0 +every_dt = 0.0 +aligned_ts = "$(collect(range(0.01,0.5,step=0.01)))" +variables = [ "rho", "q", "E", "ldg_rho", "ldg_q", "ldg_E", "smoothed_mu" ] + +[Evolution] +tend = 0.5 + +[Log] +progress_stdout = true + +[HRSC] +method = "av" +av_method = "entropy" +entropy_ce = 5.0 -- GitLab