FARGO3D / fargo3d

A versatile multifluid HD/MHD code that runs on clusters of CPUs or GPUs, with special emphasis on protoplanetary disks.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FARGO3D

A versatile MULTIFLUID HD/MHD code that runs on clusters of CPUs or GPUs, with special emphasis on protoplanetary disks.

Report bugs to the issues section or to the Google group.

First run

Sequential CPU

make SETUP=fargo PARALLEL=0 GPU=0
./fargo3d setups/fargo/fargo.par

Parallel CPU

make SETUP=fargo PARALLEL=1 GPU=0
mpirun -np 8 ./fargo3d setups/fargo/fargo.par

Sequential GPU

make SETUP=fargo PARALLEL=0 GPU=1
./fargo3d setups/fargo/fargo.par

Parallel GPU

make SETUP=fargo PARALLEL=1 GPU=1
mpirun -np 2 ./fargo3d setups/fargo/fargo.par

Description of subdirectories:

  • in/: setup parameter files. Equivalent to the .par files in the setup/ subdirectory.

  • planets/: planets configuration files.

  • scripts/: scripts used to build the code.

  • setups/: custom setup definitions.

  • src/: source files. These files can be copied to the setups/ subdirectory and modified there. The makefile uses the VPATH variable to decide in which order a given source file is sought within different directories (the setup/ subdirectory has higher prority than src).

  • std/: standard or default definitions. These definitions include standard boundary conditions, units, scaling rules, default setup parameters, etc.

  • test_suite/: scripts used to test the code. The rule to issue them is make test[name of python script without extension] for any script in this subdirectory. These scripts use the 'test' python module in scripts/

  • utils/: utilities to post-process the data.

About

A versatile multifluid HD/MHD code that runs on clusters of CPUs or GPUs, with special emphasis on protoplanetary disks.

License:GNU General Public License v3.0


Languages

Language:C 76.0%Language:Python 16.8%Language:Makefile 4.1%Language:Cuda 2.6%Language:Shell 0.3%Language:Fortran 0.2%Language:Roff 0.1%