Graph Framework
|
Command Line Arguments for the xrays RF Ray tracing code.
This page documents the commandline arguments or the RF ray tracing code xrays. All arguments take the form of
Command | Values | Discription |
---|---|---|
General Options | ||
--help
| Display help text | |
--verbose
| Show verbose output about kernel information. | |
--print_expressions
| Render ray equations as \(\LaTeX\) expressions. | |
--print
| Display a sample of ray progress to the screen. | |
--seed
| Use a fixed random seed. | |
Control Options | ||
--num_times
| Positive Integer | Total number of time steps to run. |
--sub_steps
| Positive Integer | Number of steps to run between outputs. |
--num_rays
| Positive Integer | Total number rays to run. |
--endtime
| Positive Number | Total time to trace the ray to. |
Ray Initialization Options | ||
--init_w_dist
|
| Distribution function for wave frequency. |
--init_w_mean
| Positive Number | Mean value for the wave frequency distribution function. |
--init_w_sigma
| Positive Number | Standard deviation of for the wave frequency distribution function. |
--init_kx_dist
|
| Distribution function for wave number in the x direction. |
--init_kx
| Solve for initial wave number in the x direction position. | |
--init_kx_mean
| Positive Number | Mean value for the wave number in the x direction distribution function. |
--init_kx_sigma
| Positive Number | Standard deviation of for the wave number in the y direction distribution function. |
--init_ky_dist
|
| Distribution function for wave number in the y direction. |
--init_ky
| Solve for initial wave number in the y direction position. | |
--init_ky_mean
| Positive Number | Mean value for the wave number in the y direction distribution function. |
--init_ky_sigma
| Positive Number | Standard deviation of for the wave number in the y direction distribution function. |
--init_kz_dist
|
| Distribution function for wave number in the z direction. |
--init_kz
| Solve for initial wave number in the z direction position. | |
--init_kz_mean
| Positive Number | Mean value for the wave number in the z direction distribution function. |
--init_kz_sigma
| Positive Number | Standard deviation of for the wave number in the z direction distribution function. |
--init_x_dist
|
| Distribution function for ray x position. |
--init_x_mean
| Positive Number | Mean value for the ray x position distribution function. |
--init_x_sigma
| Positive Number | Standard deviation of for the ray x position distribution function. |
--init_y_dist
|
| Distribution function for ray y position. |
--init_y_mean
| Positive Number | Mean value for the ray y position distribution function. |
--init_y_sigma
| Positive Number | Standard deviation of for the ray y position distribution function. |
--init_z_dist
|
| Distribution function for ray z position. |
--init_z_mean
| Positive Number | Mean value for the ray z position distribution function. |
--init_z_sigma
| Positive Number | Standard deviation of for the ray z position distribution function. |
--use_cyl_xy
| Use cylindical coordinates for x and y. | |
Ray Tracing Physics Options | ||
Equilibrium to use. | ||
--equilibrium_file
| Path to equilibrium file | Equilibrium file path. |
Wave disperion function to trace rays from. | ||
--absorption_model
| Power absoption model to use. | |
Method used to solve the equation. |
Take the example command line
This example should be run from the build directory.
The options
In this example, we will run a 100000 rays for 100000 steps and output every 100th step. This is also the provides verbose output of the kernel information.
Time and frequency are input in modified units.
Value | Input Value | Real Unit |
---|---|---|
\(\omega \) | 700 | \(\frac{700}{c}\) \(\frac{rad}{s}\) |
\(t \) | 2.0 | \(2.0c \) \(s \) |
Inital values for the position for \(y \) and \(z \) will be sampled from a normal distribution fuction. Both values have a mean of zero and as standard devation of 0.05. \(x \) is initalized with a uniform value of 2.5. We also set the command to use cylindical coordinates. So \(xyz\rightarrow r\phi z \).
Frequency uses a normal distribution with a mean of 700 and a standard deviation of 10.
Inital values for \(k_{y}\) and \(k_{z}\) will be sampled from a normal distribution fuction. Both of them have a standard deviation of 10. \(k_{y}\) has a mean of -100 and \(k_{z}\) has zero mean. \(k_{x}\) uses the default uniform value of -700.0. However, it is configured to solve for \(k_{x}\) which satisfies the dispersion function given the values of \(\omega,k_{y},k_{z},\vec{x}\).
We are using a EFIT equilibirum with values initalized from ../graph_tests/efit.nc
.
It uses the o-mode dispersion function. Rays are integrated using a 4th Order Runge Kutta integrator. Power absorption uses the Weak Damping Model.