#!/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
#              --boundary-conditions-type neumann \
#              --boundary-conditions-constant 0 \

tnl-euler-2d-dbg --time-discretisation explicit \
              --time-step 1.0e-3 \
              --boundary-conditions-type mymixed \
              --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 \
              --gamma 1.4 \
              --riemann-border 0.3 \

tnl-view --mesh mesh.tnl --input-files *tnl     
