ASCOT5
Loading...
Searching...
No Matches
Data Fields
particle_simd_ml Struct Reference

Struct representing NSIMD field line markers. More...

#include <particle.h>

Data Fields

real r[NSIMD__memalign__
 
real phi[NSIMD__memalign__
 
real z[NSIMD__memalign__
 
real pitch[NSIMD__memalign__
 
real time[NSIMD__memalign__
 
real B_r[NSIMD__memalign__
 
real B_phi[NSIMD__memalign__
 
real B_z[NSIMD__memalign__
 
real B_r_dr[NSIMD__memalign__
 
real B_phi_dr[NSIMD__memalign__
 
real B_z_dr[NSIMD__memalign__
 
real B_r_dphi[NSIMD__memalign__
 
real B_phi_dphi[NSIMD__memalign__
 
real B_z_dphi[NSIMD__memalign__
 
real B_r_dz[NSIMD__memalign__
 
real B_phi_dz[NSIMD__memalign__
 
real B_z_dz[NSIMD__memalign__
 
real weight[NSIMD__memalign__
 
real cputime[NSIMD__memalign__
 
real rho[NSIMD__memalign__
 
real theta[NSIMD__memalign__
 
integer id[NSIMD__memalign__
 
integer endcond[NSIMD__memalign__
 
integer walltile[NSIMD__memalign__
 
real mileage[NSIMD__memalign__
 
integer running[NSIMD__memalign__
 
a5err err[NSIMD__memalign__
 
integer index[NSIMD__memalign__
 

Detailed Description

Struct representing NSIMD field line markers.

This struct is used in simulation when the simulation loop in simulate_ml_adaptive.c is used.

It contains physical and simulation parameters necessary for the simulation If a function makes changes to any of these parameters, it is that function's responsibility to make sure all fields remain consistent, i.e., if position changes then the magnetic field should be updated. Each field is a memory aligned array with length NSIMD, so this struct represents NSIMD markers (they can be dummy or markers whose simulation has been terminated) and so it can be used within SIMD loops.

The fields are aligned to 64 bit with memalign (see ascot5.h).

Definition at line 342 of file particle.h.

Field Documentation

◆ __memalign__ [1/28]

real r [NSIMD] particle_simd_ml::__memalign__

Field line R coordinate [m]

Definition at line 344 of file particle.h.

◆ __memalign__ [2/28]

real phi [NSIMD] particle_simd_ml::__memalign__

Field line phi coordinate [phi]

Definition at line 345 of file particle.h.

◆ __memalign__ [3/28]

real z [NSIMD] particle_simd_ml::__memalign__

Field line z coordinate [m]

Definition at line 346 of file particle.h.

◆ __memalign__ [4/28]

real pitch [NSIMD] particle_simd_ml::__memalign__

Field line direction: along (1) or against (-1) magnetic field vector

Definition at line 347 of file particle.h.

◆ __memalign__ [5/28]

real time [NSIMD] particle_simd_ml::__memalign__

Field line simulation time [s]

Definition at line 349 of file particle.h.

◆ __memalign__ [6/28]

real B_r [NSIMD] particle_simd_ml::__memalign__

Magnetic field R component at marker position [T]

Definition at line 352 of file particle.h.

◆ __memalign__ [7/28]

real B_phi [NSIMD] particle_simd_ml::__memalign__

Magnetic field phi component at marker position [T]

Definition at line 354 of file particle.h.

◆ __memalign__ [8/28]

real B_z [NSIMD] particle_simd_ml::__memalign__

Magnetic field z component at marker position [T]

Definition at line 356 of file particle.h.

◆ __memalign__ [9/28]

real B_r_dr [NSIMD] particle_simd_ml::__memalign__

dB_R/dR at marker pos. [T/m]

Definition at line 359 of file particle.h.

◆ __memalign__ [10/28]

real B_phi_dr [NSIMD] particle_simd_ml::__memalign__

dB_phi/dR at marker pos. [T/m]

Definition at line 360 of file particle.h.

◆ __memalign__ [11/28]

real B_z_dr [NSIMD] particle_simd_ml::__memalign__

dB_z/dR at marker pos. [T/m]

Definition at line 361 of file particle.h.

◆ __memalign__ [12/28]

real B_r_dphi [NSIMD] particle_simd_ml::__memalign__

dB_R/dphi at marker pos. [T/m]

Definition at line 362 of file particle.h.

◆ __memalign__ [13/28]

real B_phi_dphi [NSIMD] particle_simd_ml::__memalign__

dB_phi/dphi at marker pos. [T/m]

Definition at line 363 of file particle.h.

◆ __memalign__ [14/28]

real B_z_dphi [NSIMD] particle_simd_ml::__memalign__

dB_z/dphi at marker pos. [T/m]

Definition at line 364 of file particle.h.

◆ __memalign__ [15/28]

real B_r_dz [NSIMD] particle_simd_ml::__memalign__

dB_R/dz at marker pos. [T/m]

Definition at line 365 of file particle.h.

◆ __memalign__ [16/28]

real B_phi_dz [NSIMD] particle_simd_ml::__memalign__

dB_phi/dz at marker pos. [T/m]

Definition at line 366 of file particle.h.

◆ __memalign__ [17/28]

real B_z_dz [NSIMD] particle_simd_ml::__memalign__

dB_z/dz at marker pos. [T/m]

Definition at line 367 of file particle.h.

◆ __memalign__ [18/28]

real weight [NSIMD] particle_simd_ml::__memalign__

Marker weight

Definition at line 370 of file particle.h.

◆ __memalign__ [19/28]

real cputime [NSIMD] particle_simd_ml::__memalign__

Marker wall-clock time [s]

Definition at line 371 of file particle.h.

◆ __memalign__ [20/28]

real rho [NSIMD] particle_simd_ml::__memalign__

Marker rho coordinate

Definition at line 372 of file particle.h.

◆ __memalign__ [21/28]

real theta [NSIMD] particle_simd_ml::__memalign__

Marker poloidal coordinate [rad]

Definition at line 373 of file particle.h.

◆ __memalign__ [22/28]

integer id [NSIMD] particle_simd_ml::__memalign__

Unique ID for the marker

Definition at line 375 of file particle.h.

◆ __memalign__ [23/28]

integer endcond [NSIMD] particle_simd_ml::__memalign__

Marker end condition

Definition at line 376 of file particle.h.

◆ __memalign__ [24/28]

integer walltile [NSIMD] particle_simd_ml::__memalign__

ID of walltile if marker has hit the wall

Definition at line 377 of file particle.h.

◆ __memalign__ [25/28]

real mileage [NSIMD] particle_simd_ml::__memalign__

Duration this marker has been simulated [s]

Definition at line 381 of file particle.h.

◆ __memalign__ [26/28]

integer running [NSIMD] particle_simd_ml::__memalign__

Indicates whether this marker is currently simulated (1) or not

Definition at line 383 of file particle.h.

◆ __memalign__ [27/28]

a5err err [NSIMD] particle_simd_ml::__memalign__

Error flag, zero if no error

Definition at line 385 of file particle.h.

◆ __memalign__ [28/28]

integer index [NSIMD] particle_simd_ml::__memalign__

Marker index at marker queue

Definition at line 386 of file particle.h.


The documentation for this struct was generated from the following file: