Skip to content

Setting up a first Clara2 simulation #96

Open
@PrometheusPi

Description

@PrometheusPi

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 at 0.0 1/s and go to omega_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 to omega_max 1/s

  • N_theta is the number of angle values between 0 degree and theta_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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions