Description
This is a continuation of issue #93
Since the discussion changed from how to set up the environment on tianhe2 to how to set up Clara2 in general, I think a new issue should be used (to avid scrolling down through all the issues related to the module system on tinahe2)
This question was asked by @QJohn2017 in #93
In the beginning of settings.hpp
you find the basic parameters:
-
omega_max is the maximum frequency of radiation you want to resolve
so your frequency range will start at0.0
1/s and go toomega_max
1/s -
theta_max is the maximum opening angle of your detector in degree
Setting the detector is not yet generic and requires some code adjustments we will discuss later -
N_spectrum is the number of frequencies you want to sample between
0.0
1/s and go toomega_max
1/s -
N_theta is the number of angle values between
0
degree andtheta_max
degree you want to sample -
N_phi is the number of angles you want to sample orthogonally to theta
-
N_trace is the number of trajectories provided that you want to calculate the spectrum for.
-
fft_length_factor is a factor to increase the sampling of the trajectories via linear interpolation. This is essential when you undergo highly-nonlinear Thomson scattering for only a brief period of time compared to the entire duration of the trajectory (see https://doi.org/10.5281/zenodo.843510 section 4.1.3)
-
ascii_output if true returns the spectra as text file, if false returns the spectra as binary file
-
N_char_filename the number of characters that are needed to give the trajectory path.
256
are usually sufficient, but if you have long directory names, more might be needed -
traceFileTemplate the template for locating your input trajectories with [C-style])http://www.cplusplus.com/reference/cstdio/printf/) replacements
-
outputFileTemplate the template for the output spectra files with C-style replacements