Skip to content

Nischay-Pro/mfpre

Repository files navigation

MFpre

Welcome to MFpre. This is a PreProcessor code developed to perform domain decomposition for the parallel meshfree Compressible flow solver. The code is developed using the routines available in the open-source graph partitioning tool METIS.

Running the program

  1. Download METIS using spack or here
  2. Export the path of the METIS directory to $METIS_DIR(add to bash file)
  3. To run the code type make
  4. The input grid file must be named point-input
  5. The format for execution is given by, ./graphpart numberofpartitions(required) -inputformat(required) -ifcudaoutputrequired(optional)
  6. For example, ./graphpart 8 -legacy generates 8 partitions for legacy input format
  7. This will produce the partitioned files with names partGrid* which can be used as an input for either mpi or cuda based meshfree solver
  8. To visualize the partitions type make plot
  9. Download example point distributions, here

Execution options

input format loads
--legacy legacy format from structured grids
--quadtree quadtree format
--restart to partition restart files with primitive values
output format generates
--cuda default = no, generates cuda code datastructure for the particular input format you choose

Input formats

  • Legacy format:

| point index | X | Y | left index | right index | flag_1 | flag_2 | neighbours | connectivity

  • quadtree format:

| point index | X | Y | left index | right index | flag_1 | flag_2 | neighbours | connectivity

  • Restart Format:

| point index | X | Y | left index | right index | pressure | x velocity | y velocity | pressure | flag_1 | flag_2 | neighbours | connectivity

About

Meshfree Preprocessor

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published