1. Home
  2. Installation
  3. Windows
  4. Installing the code

Installing the code

Unpack

Using a general file archiver (like 7-zip) extract the files to a location of your choice. For example D:\dolfyn.

The following files will be extracted to the chosen location:

The dolfyn files

LICENSE
NOTICE
artificial.f90
cellmapper.f90
checkout.f90
collectcells.f90
diffschemes.f90
dolfyn.f90
gmsh2dolfyn.f90
gmsh.f90
gmv.f90
gradients.f90
initialfield.f90
modules.f90
opendx.f90
particles.f90
patches.f90
patchscalars.f90
preprocessor.f90
readcontrolfile1.f90
readcontrolfile2.f90
saverestart.f90
smagorinsky.f90
solver_hypre.f90
solverinterface.f90
tecplt.f90
tools.f90
user.f90
vtk.f90
watches.f90
lapacks.f
solver_sparsekit2.f
Makefile
ChangeLog
compile.bat

Alternative - Command-line

As of early 2018, tar is natively available on Windows 10, which makes the command-line option also a possibility:

tar xvozf dolfyn_apr2010b.tgz

Compile All

Edit the Makefile, and make sure to select the right compiler. Using gfortran, it will suffice to edit line 9 into

COMPILER := gfortran

Also, some users will encounter difficulties with openMP (the codes will not compile), in that case comment out line 20:

ifeq (${COMPILER},gfortran)
  F90FLAGS  := -O2
  F90DP     := gfortran -fdefault-real-8
  # OMP       := -fopenmp -DOMP
endif

To compile all elements of the dolfyn package, you can

make all

This will generate three executables in the ../bin/ subfolder

Alternative – Compile Separately

Alternatively you can compile all the elements separately. This allows you to for example keep using an old version of one element.

Compile preprocessor

Using the installed compiler, in this case gfortran, the preprocessor can be compiled as follows:

gfortran -o dolgeo preprocessor.f90

or

make dolgeo

Compile dolfyn

You can compile the code using:

make dolfyn

Compile gmsh2dolfyn

You can compile the code using:

make gmsh2dolfyn

Make doflyn available

To be able to use the codes dolfyn and dolgeo you will need to do one of the following:

Add files to PATH

To make dolgeo and dolfyn available from any directory, add them to your system variable PATH as follows:

  1. go to Control Panel
  2. System
  3. Advanced system settings
  4. Environment Variables…
  5. Double click Path
    • Both the User variable (top) or System variable (bottom) are fine.
    • If variable Path does not exist, create a new one.
  6. Click New
  7. Add the file location of dolgeo and dolfyn
    • for example D:\dolfyn\bin
  8. Click OK (2x) and close all other open windows.

Copy files to case location

Copy both dolgeo.exe and dolfyn.exe to the location of your case.

That’s it!

The codes dolfyn and dolgeo are now ready to be used.

Was this article helpful to you? Yes No

How can we help?