NuSiF-Solver/BasicSolver/3D-seq
2023-12-04 14:40:02 +01:00
..
src Porting working changes from 3D-seq to 3D-MPI 2023-12-04 14:40:02 +01:00
backstep.par Porting working changes from 3D-seq to 3D-MPI 2023-12-04 14:40:02 +01:00
backstep.vtk Porting working changes from 3D-seq to 3D-MPI 2023-12-04 14:40:02 +01:00
canal.par Partial 3D seq 2023-10-23 21:04:16 +02:00
canal.vtk Partial 3D seq 2023-10-23 21:04:16 +02:00
config.mk Completed porting, fixing bugs and testing 2023-07-05 20:38:50 +02:00
dcavity.par Incomplete 3D enhanced solver + slides 2023-10-12 17:46:33 +02:00
dcavity.vtk Fully working 3D PT 2023-08-14 14:54:01 +02:00
include_CLANG.mk Initial checkin 2023-02-05 07:34:23 +01:00
include_GCC.mk Initial checkin 2023-02-05 07:34:23 +01:00
include_ICC.mk Initial checkin 2023-02-05 07:34:23 +01:00
karman.par Porting working changes from 3D-seq to 3D-MPI 2023-12-04 14:40:02 +01:00
karman.vtk Porting working changes from 3D-seq to 3D-MPI 2023-12-04 14:40:02 +01:00
Makefile Partial 3D seq 2023-10-23 21:04:16 +02:00
README.md Initial checkin 2023-02-05 07:34:23 +01:00
sample.txt Incomplete 3D enhanced solver + slides 2023-10-12 17:46:33 +02:00

C source skeleton

Build

  1. Configure the toolchain and additional options in config.mk:
# Supported: GCC, CLANG, ICC
TAG ?= GCC
ENABLE_OPENMP ?= false

OPTIONS +=  -DARRAY_ALIGNMENT=64
#OPTIONS +=  -DVERBOSE
#OPTIONS +=  -DVERBOSE_AFFINITY
#OPTIONS +=  -DVERBOSE_DATASIZE
#OPTIONS +=  -DVERBOSE_TIMER

The verbosity options enable detailed output about solver, affinity settings, allocation sizes and timer resolution. For debugging you may want to set the VERBOSE option:

# Supported: GCC, CLANG, ICC
TAG ?= GCC
ENABLE_OPENMP ?= false

OPTIONS +=  -DARRAY_ALIGNMENT=64
OPTIONS +=  -DVERBOSE
#OPTIONS +=  -DVERBOSE_AFFINITY
#OPTIONS +=  -DVERBOSE_DATASIZE
#OPTIONS +=  -DVERBOSE_TIMER
`

2. Build with:

make


You can build multiple toolchains in the same directory, but notice that the Makefile is only acting on the one currently set.
Intermediate build results are located in the `<TOOLCHAIN>` directory.

To output the executed commands use:

make Q=


3. Clean up with:

make clean

to clean intermediate build results.

make distclean

to clean intermediate build results and binary.

4. (Optional) Generate assembler:

make asm

The assembler files will also be located in the `<TOOLCHAIN>` directory.

## Usage

You have to provide a parameter file describing the problem you want to solve:

./exe-CLANG dcavity.par


Examples are given in in dcavity (a lid driven cavity test case) and canal (simulating a empty canal).

You can plot the resulting velocity and pressure fields using gnuplot:

gnuplot vector.plot

and for the pressure:

gnuplot surface.plot