The main distribution of RFG is located at mulphys.com/rfg. The program was developed and tested on a Linux PC, under RedHat OS. There are two versions of the algorithm: (1) homogeneous isotropic case, and (2) inhomogeneous anisotropic case. The first version simply reproduces the method of Kraichnan [2], and does not include any Netlib routines. The second version can generate anisotropic inhomogeneous vector fields with prescribed anisotropy, and inhomogeneity. It makes use of several Netlib routines, which retrieve diagonal components of the velocity correlation tensor, and handle coordinate transformations in and out of coordinate system aligned with the tensor's principal axes. The second version thus consists of both RFG routines (C) and Netlib routines (Fortran). The distributions contain the following files:
makefile # Makefile rfg.h # RFG header file vecalg.h # Vector algebra macros gauss.c # Gaussian random number generator rfg.c # RFG routine random.f # Random number generator rfgtest.f # RFG test
makefile # Makefile rfg.h # RFG header file vecalg.h # Vector algebra macros diag.c # Diagonalization routines gauss.c # Gaussian random number generator rfg.c # RFG routine phytag.f # Auxiliary Netlib routine random.f # Random number generator rfgtest.f # RFG test tql1.f # Auxiliary Netlib routine tql2.f # Auxiliary Netlib routine tred1.f # Auxiliary Netlib routine tred2.f # Auxiliary Netlib routine
In addition to this both distributions include README files containing the compilation instructions.