Applications

Several applications developed using hpgem package are available in the package itself. To see the available applications:

cd hpgemdev/samples/

Some applications are listed below:

  1. Depth averaged shallow two phase flows (Space Discontinuous Galerkin Method)
  2. Depth averaged shallow water flows (Space Discontinuous Galerkin Method)
Instructions to run these applications are given below:

Depth averaged shallow two phase flows (Space Discontinuous Galerkin Method)


Description and Instructions


Caption: Animation of the free surface flow through a contraction.

Depth averaged shallow water flows (Space Discontinuous Galerkin Method)

How to run this code:


1: change to directory hpgemdev/samples/BasinCode_0.7

3: in the Makefile, make sure that the path

LIB_HPGEM_DIR is set correctly:

LIB_HPGEM_DIR = ../../

optional: if u have installed gsl library locally then one has to specify include ($GSL_INCLUDE) and lib (GSL_LIB) directories of gsl library as follows:

USR_CXXOPTIONS = -I$(GSL_INCLUDE) -L$(GSL_LIB)

4: type "make" in the shell

5: after compiling, run your code with ./dgBasin

6: input parameters can be changed in the "in" file

7: Basintec.dat contains the output data to be read with Tecplot

Open the Basintec.dat file to see what each column represents.

The variables that you output can be changed in "dgBasin.cc",

lines 199-204. If you change the output, be sure to change the name of

the output also in line 513.