From 4ec0060c636dd14f6603310d025eb1f8b712f3fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Sch=C3=A4fer?= <schafjan@fjfi.cvut.cz> Date: Thu, 5 Oct 2017 14:02:22 +0200 Subject: [PATCH] tnl-run repair --- examples/advection/tnl-run-advection | 26 ++++++++++----- examples/advection/tnl-run-advection1 | 24 -------------- examples/advection/tnl-run-advectionrot1 | 25 -------------- examples/inviscid-flow/1d/tnl-run-euler-1d | 20 ++++++------ examples/inviscid-flow/2d/run-euler | 19 ----------- examples/inviscid-flow/2d/tnl-run-euler-2d | 38 +++++++++++++--------- 6 files changed, 50 insertions(+), 102 deletions(-) delete mode 100644 examples/advection/tnl-run-advection1 delete mode 100644 examples/advection/tnl-run-advectionrot1 delete mode 100644 examples/inviscid-flow/2d/run-euler diff --git a/examples/advection/tnl-run-advection b/examples/advection/tnl-run-advection index 2946d5bbf4..28686f1d02 100644 --- a/examples/advection/tnl-run-advection +++ b/examples/advection/tnl-run-advection @@ -2,19 +2,27 @@ tnl-grid-setup --dimensions 1 \ --origin-x 0.0 \ - --proportions-x 10.0 \ - --size-x 500 \ + --proportions-x 1.0 \ + --size-x 50 \ #tnl-init --test-function sin-wave \ # --output-file init.tnl -tnl-advection-dbg --time-discretisation explicit \ - --time-step 1.0e-3 \ +~/bak/tnl/Debug/bin/tnl-advection-dbg --time-discretisation explicit \ + --time-step 2.0e-2 \ --boundary-conditions-constant 0 \ - --discrete-solver merson \ - --snapshot-period 0.1 \ - --final-time 1.0 \ - --artifical-viscosity 1.0 \ + --discrete-solver euler \ + --snapshot-period 1.0\ + --final-time 2.0 \ + --artifical-viscosity 0.5 \ --begin exp \ - --advection-speedX 2.0 \ + --move advection \ + --advection-speedX 0.2 \ + --dimension 1 \ + --realSize 1.0 tnl-view --mesh mesh.tnl --input-files *tnl + +tnl-diff --mesh mesh.tnl \ + --input-files a-*.tnl u-*.tnl \ + --mode halves \ + diff --git a/examples/advection/tnl-run-advection1 b/examples/advection/tnl-run-advection1 deleted file mode 100644 index e38101223b..0000000000 --- a/examples/advection/tnl-run-advection1 +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/env bash - -tnl-grid-setup --dimensions 2 \ - --origin-x 0.0 \ - --origin-y 0.0 \ - --proportions-x 10.0 \ - --proportions-y 10.0 \ - --size-x 500 \ - --size-y 500 \ - -#tnl-init --test-function sin-wave \ -# --output-file init.tnl -./advection --time-discretisation explicit \ - --time-step 1.0e-3 \ - --boundary-conditions-constant 0 \ - --discrete-solver euler \ - --snapshot-period 0.1 \ - --final-time 1.0 \ - --artifical-viscosity 0.2 \ - --begin exp_square \ - --advection-speedX 2.0 \ - --advection-speedY 2.0 \ - -tnl-view --mesh mesh.tnl --input-files *tnl diff --git a/examples/advection/tnl-run-advectionrot1 b/examples/advection/tnl-run-advectionrot1 deleted file mode 100644 index 78ae8349db..0000000000 --- a/examples/advection/tnl-run-advectionrot1 +++ /dev/null @@ -1,25 +0,0 @@ -#!/usr/bin/env bash - -tnl-grid-setup --dimensions 2 \ - --origin-x 0.0 \ - --origin-y 0.0 \ - --proportions-x 10.0 \ - --proportions-y 10.0 \ - --size-x 100 \ - --size-y 100 \ - -#tnl-init --test-function sin-wave \ -# --output-file init.tnl -./advection --time-discretisation explicit \ - --time-step 1.0e-2 \ - --boundary-conditions-constant 0 \ - --discrete-solver euler \ - --snapshot-period 0.1 \ - --final-time 1.0 \ - --artifical-viscosity 5.0 \ - --begin exp_square \ - --advection-speedX 2.0 \ - --advection-speedY 2.0 \ - --move rotation \ - -tnl-view --mesh mesh.tnl --input-files *tnl diff --git a/examples/inviscid-flow/1d/tnl-run-euler-1d b/examples/inviscid-flow/1d/tnl-run-euler-1d index a57250e6be..4829c27d0e 100644 --- a/examples/inviscid-flow/1d/tnl-run-euler-1d +++ b/examples/inviscid-flow/1d/tnl-run-euler-1d @@ -8,18 +8,18 @@ tnl-grid-setup --dimensions 1 \ #tnl-init --test-function sin-wave \ # --output-file init.tnl tnl-euler-1d-dbg --time-discretisation explicit \ - --time-step 1.0e-3 \ - --boundary-conditions-type mymixed \ + --time-step 2.5e-3 \ + --boundary-conditions-type myneumann \ --discrete-solver euler \ - --snapshot-period 0.1 \ - --final-time 1.0 \ + --snapshot-period 0.015 \ + --final-time 0.15 \ --left-density 1.0 \ - --left-velocity 0.75 \ - --left-pressure 1.0 \ - --right-density 0.125 \ - --right-velocity 0 \ - --right-pressure 0.1 \ + --left-velocity -2.0 \ + --left-pressure 0.4 \ + --right-density 1.0 \ + --right-velocity 2.0 \ + --right-pressure 0.4 \ --gamma 1.4 \ - --riemann-border 0.3 \ + --riemann-border 0.5 \ tnl-view --mesh mesh.tnl --input-files *tnl diff --git a/examples/inviscid-flow/2d/run-euler b/examples/inviscid-flow/2d/run-euler deleted file mode 100644 index f68b98a840..0000000000 --- a/examples/inviscid-flow/2d/run-euler +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/env bash - -tnl-grid-setup --dimensions 2 \ - --origin-x 0.0 \ - --origin-y 0.0 \ - --proportions-x 1.0 \ - --proportions-y 1.0 \ - --size-x 100 \ - --size-y 100 - -tnl-init --test-function sin-wave \ - --output-file init.tnl -./euler --time-discretisation explicit \ - --boundary-conditions-constant 0 \ - --discrete-solver merson \ - --snapshot-period 0.01 \ - --final-time 1.0 - -tnl-view --mesh mesh.tnl --input-files *tnl diff --git a/examples/inviscid-flow/2d/tnl-run-euler-2d b/examples/inviscid-flow/2d/tnl-run-euler-2d index 5af33a1a79..463dd3506a 100644 --- a/examples/inviscid-flow/2d/tnl-run-euler-2d +++ b/examples/inviscid-flow/2d/tnl-run-euler-2d @@ -5,8 +5,8 @@ tnl-grid-setup --dimensions 2 \ --origin-y 0.0 \ --proportions-x 1.0 \ --proportions-y 1.0 \ - --size-x 100 \ - --size-y 100 + --size-x 400 \ + --size-y 400 #tnl-init --test-function sin-wave \ # --output-file init.tnl @@ -14,20 +14,28 @@ tnl-grid-setup --dimensions 2 \ # --boundary-conditions-constant 0 \ tnl-euler-2d-dbg --time-discretisation explicit \ - --time-step 1.0e-3 \ - --boundary-conditions-type mymixed \ + --time-step 5.0e-4 \ + --boundary-conditions-type myneumann \ --discrete-solver euler \ - --snapshot-period 0.1 \ - --final-time 1.0 \ - --left-density 1.0 \ - --left-velocityX 0.75 \ - --left-velocityY 0.75 \ - --left-pressure 1.0 \ - --right-density 0.125 \ - --right-velocityX 0 \ - --right-velocityY 0 \ - --right-pressure 0.1 \ + --snapshot-period 0.03 \ + --final-time 0.3 \ + --NW-density 0.5323 \ + --NW-velocityX 1.206 \ + --NW-velocityY 0.0 \ + --NW-pressure 0.3 \ + --NE-density 1.5 \ + --NE-velocityX 0.0 \ + --NE-velocityY 0.0 \ + --NE-pressure 1.5 \ + --SW-density 0.138 \ + --SW-velocityX 1.206 \ + --SW-velocityY 1.206 \ + --SW-pressure 0.029 \ + --SE-density 0.5323 \ + --SE-velocityX 0 \ + --SE-velocityY 1.206 \ + --SE-pressure 0.3 \ --gamma 1.4 \ - --riemann-border 0.3 \ + --riemann-border 0.5 \ tnl-view --mesh mesh.tnl --input-files *tnl -- GitLab