Download

OpenFVM can be downloaded at SourceForge.

Step-by-step procedure to setup, compile and run OpenFVM v0.1

1. Download LASPACK and copy the source files (*.c, *.h) to directory "source/laspack" (required)

2. Install GMSH version 1.65 (required)

3. Install GNUPLOT (optional)

4. Edit LASPACK source files and replace all occurences of '#include "laspack/' with '#include "' or type: "./fixlaspack"

5. To build the program from the source code type: "./compile"

6. To generate a mesh go to lid directory (examples/lid) and type: "gmsh lid.geo -3"

7. Still in this directory type: "../OpenFVM lid" to run the program

8. To view a 2D plot the residual type: "gnuplot lid.plt"

9. To view the results type: "gmsh lid.pos &"

10. Once the "lid.pos" is loaded in GMSH, open "lid.scr" file. This script will extract data, generate 2D plots of the velocity and save it in two files "lid_u.txt" and lid_v.txt"

11. To view the 2D plots type: "gnuplot lid.gph"

Step-by-step procedure to setup, compile and run OpenFVM v1.0 (serial version)

1. Install GMSH version 1.65 (required)

2. Install GNUPLOT (optional)

3. To build the LASPACK: "make" in the "Flow/serial/laspack" directory

4. To build the program from the source code type: "make" in the "Flow/serial" directory

5. To generate a mesh go to lid directory (examples/lid) and type: "gmsh lid.geo -3"

6. Still in this directory type: "../OpenFVM lid f 1" to run the program

7. To view a 2D plot the residual type: "gnuplot lid.plt"

8. To view the results type: "gmsh lid.pos &"

9. Once the "lid.pos" is loaded in GMSH, open "lid.scr" file. This script will extract data, generate 2D plots of the velocity and save it in two files "lid_u.txt" and lid_v.txt"

10. To view the 2D plots type: "gnuplot lid.gph"

Step-by-step procedure to setup, compile and run OpenFVM v1.1 (serial version)

1. Install GMSH version 2.0

2. Install GNUPLOT (optional)

3. To build the LASPACK: "make" in the "Flow/serial/laspack" directory

4. To build the program from the source code type: "make" in the "Flow/serial" directory

5. To generate a mesh go to lid directory (examples/lid) and type: "gmsh lid.geo -3"

6. Still in this directory type: "../OpenFVM lid f 1" to run the program

7. To view a 2D plot the residual type: "gnuplot lid.plt"

8. To view the results type: "gmsh lid.pos &"

9. Once the "lid.pos" is loaded in GMSH, open "lid.scr" file. This script will extract data, generate 2D plots of the velocity and save it in two files "lid_u.txt" and lid_v.txt"

10. To view the 2D plots type: "gnuplot lid.gph"

Step-by-step procedure to setup, compile and run OpenFVM v1.1 (parallel version)

1. Install GMSH version 2.0

2. Install GNUPLOT (optional)

3. Install PETSc

4. Install LAMMPI

5. Install METIS

6. Edit the paths of the "makefile" in the "Flow/parallel" directory to link correctly to the installed libraries

7. To build the program from the source code type: "make" in the "Flow/parallel" directory

8. To generate a mesh go to lid directory (examples/lid) and type: "gmsh lid.geo -3"

9. Still in this directory type: "../OpenFVM lid d 2" to decompose the mesh into 2 partitions

10. Still in this directory type: "mpirun -np 2 ../OpenFVM lid f 2" to run the simulation

11. To view the results of all partitions type: "gmsh lid.*.pos &"

Step-by-step procedure to setup, compile and run OpenFVM v1.4 (serial version)

1. Install GMSH version 2.5

2. Install GNUPLOT (optional)

3. To build the LASPACK: "make" in the "Flow/serial/laspack" directory

4. To build the program from the source code type: "make" in the "Flow/serial" directory

5. To generate a mesh go to lid directory (examples/lid) and type: "gmsh lid.geo -3"

6. Still in this directory type: "../OpenFVM lid f 1" to run the program

7. To view a 2D plot the residual type: "gnuplot lid.plt"

8. To view the results type: "gmsh lid.pos &"

9. Once the "lid.pos" is loaded in GMSH, open "lid.scr" file. This script will extract data, generate 2D plots of the velocity and save it in two files "lid_u.txt" and lid_v.txt"

10. To view the 2D plots type: "gnuplot lid.gph"

Step-by-step procedure to setup, compile and run OpenFVM v1.4 (parallel version)

1. Install GMSH version 2.5

2. Install GNUPLOT (optional)

3. Install PETSc version 3.1

4. Configure PETSc using --download-mpich=1 or --download-openmpi=1 and install corresponding MPI library for your system

5. Install PARMETIS version 3.2

6. Edit the paths of the "makefile" in the "Flow/parallel" directory to link correctly to the installed libraries (namely $(METIS_INCLUDE) and $(METIS_LIB))

7. To build the program from the source code type: "make" in the "Flow/parallel" directory

8. To generate a mesh go to lid directory (examples/lid) and type: "gmsh lid.geo -3"

9. Still in this directory type: "../OpenFVM lid d 2" to decompose the mesh into 2 partitions

10. Still in this directory type: "mpirun -np 2 ../OpenFVM lid f 2" to run the simulation

11. To view the results of all partitions type: "gmsh lid.*.pos &"