File: example-euler-vortex-2d

package info (click to toggle)
pyfr 1.5.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 3,420 kB
  • sloc: python: 7,936; makefile: 141; sh: 27
file content (22 lines) | stat: -rwxr-xr-x 584 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
#
# 2D Euler Vortex example, see:
# http://www.pyfr.org/user_guide.php

set -e

EXAMPLE=euler_vortex_2d
INI_FILE="$EXAMPLE.ini"
MSH_FILE="$EXAMPLE.msh"
PYFRM_FILE="$EXAMPLE.pyfrm"
PYFRS_FILE="$EXAMPLE-100.0.pyfrs"
VTU_FILE="$EXAMPLE-100.0.vtu"

cp -a "/usr/share/doc/pyfr-doc/examples/$EXAMPLE" $ADTTMP
cd "$ADTTMP/$EXAMPLE"

sed -i '6s/.*/cblas = \/usr\/lib\/libblas.so.3/' $INI_FILE
pyfr import $MSH_FILE $PYFRM_FILE
pyfr partition 2 $PYFRM_FILE .
mpirun --allow-run-as-root -n 2 pyfr run -b openmp $PYFRM_FILE $INI_FILE
pyfr export $PYFRM_FILE $PYFRS_FILE $VTU_FILE -d 4