Version of the code as used for the FENNECS paper
Details
- Tag
- v1.0
Version of the code as used for the FENNECS paper
This code needs the following libraries to run:
Each of these libraries must be compiled according to their respective instructions.
To compile the program, the dependencies must first be compiled according to their respective instructions. A Makefile is found in the src folder and prior to the compilation the environment variable $PLATFORM must be defined to use the correct *.mk file, which includes options specific to gcc or intel compilers and specifies the paths to the different libraries. An example can be found and adapted in intel.mk and gcc.mk.
To compile in linux:
The code can also be compiled using cmake
An example of a simulation configuration can be found in wk/T-REX. The code can be run on a cluster using slurm, by calling the run.sh in command line. The code can be stopped using the stop.sh which will create a file called "mystop" containing the remaining number of time-steps to run. The geometry of the T-REX case can be generated using the .m file in geometries/experiment_upper. This function uses functions defined in the matlab folder. The resulting .h5 file must be moved to wk/T-REX. The magnetic field is generated with the file Draw_B_Ellip_10T_DNP_geom.m in magnet/10T_DNP/ which uses functions defined in magnet/cryogenic. The resulting .h5 file must be moved to wk/T-REX.
A number of post-processing routines using matlab have been written and can be found in the matlab folder. To open a hdf5 result file, use the class fennecshdf5 with "result=fennecshdf5(filename);". The object result can then be interrogated to access variables stored in the hdf5 file.
The root folder contains the following folders: