Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
README | 2013-08-30 | 1.4 kB | |
GARFIELDS.tar | 2013-08-30 | 133.1 kB | |
Totals: 2 Items | 134.6 kB | 0 |
Garfields installation instructions ----------------------------------- Garfields was developed by F.S. Kitaura (see Kitaura&Ensslin 2007 astroph-0705.0429). It can generate Gaussian random fields which are divergenceless and contain helicity. It runs independently of hammurabi. Installation and interfacing with hammurabi are described here. ------------------------------------------------------------------ Installation: - install fftw3 (if you have not done so already) according to the instructions in (http://www.fftw.org/) - unpack the tar file (tar -xvf Garfields.tar.gz) in the wanted directory. - edit garFields.make, and change LFLAGS = -L$(HOME)/lib/fftw-3.1.2/lib and CFLAGS = -I$(HOME)/lib/fftw-3.1.2/include to your respective fftw directories. - do "make -f garFields.make" - run the code with "garFields.x" , the parameter file is "garFields_par" . ------------------------------------------------------------------ Interfacing with hammurabi: The parameters which specify the size of the magnetic field box need to be identical in both codes (if you don't need computation speed, we recommend you keep the box cubic). e.g.: In Garfields: #Field simulation box size Nx = 64 Ny = 64 Nz = 64 #Output file name out_file = magField.dat In hammurabi: #Input file name B_field_random_inp=magField.dat #Field simulation box size B_field_nx = 64 B_field_ny = 64 B_field_nz = 64