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

Struct representing NSIMD guiding center markers. More...

#include <particle.h>

Data Fields

real r[NSIMD__memalign__
 
real phi[NSIMD__memalign__
 
real z[NSIMD__memalign__
 
real ppar[NSIMD__memalign__
 
real mu[NSIMD__memalign__
 
real zeta[NSIMD__memalign__
 
real mass[NSIMD__memalign__
 
real charge[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__
 
int bounces[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 guiding center markers.

This struct is used in simulation when the simulation loop in simulate_gc_fixed.c or simulate_gc_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 275 of file particle.h.

Field Documentation

◆ __memalign__ [1/33]

real r [NSIMD] particle_simd_gc::__memalign__

Guiding center R coordinate [m]

Definition at line 277 of file particle.h.

◆ __memalign__ [2/33]

real phi [NSIMD] particle_simd_gc::__memalign__

Guiding center phi coordinate [phi]

Definition at line 278 of file particle.h.

◆ __memalign__ [3/33]

real z [NSIMD] particle_simd_gc::__memalign__

Guiding center z coordinate [m]

Definition at line 279 of file particle.h.

◆ __memalign__ [4/33]

real ppar [NSIMD] particle_simd_gc::__memalign__

Parallel momentum [kg m/s]

Definition at line 280 of file particle.h.

◆ __memalign__ [5/33]

real mu [NSIMD] particle_simd_gc::__memalign__

Magnetic moment [J/T]

Definition at line 281 of file particle.h.

◆ __memalign__ [6/33]

real zeta [NSIMD] particle_simd_gc::__memalign__

Gyroangle [rad]

Definition at line 282 of file particle.h.

◆ __memalign__ [7/33]

real mass [NSIMD] particle_simd_gc::__memalign__

Mass [kg]

Definition at line 283 of file particle.h.

◆ __memalign__ [8/33]

real charge [NSIMD] particle_simd_gc::__memalign__

Charge [C]

Definition at line 284 of file particle.h.

◆ __memalign__ [9/33]

real time [NSIMD] particle_simd_gc::__memalign__

Marker simulation time [s]

Definition at line 285 of file particle.h.

◆ __memalign__ [10/33]

real B_r [NSIMD] particle_simd_gc::__memalign__

Magnetic field R component at marker position [T]

Definition at line 288 of file particle.h.

◆ __memalign__ [11/33]

real B_phi [NSIMD] particle_simd_gc::__memalign__

Magnetic field phi component at marker position [T]

Definition at line 290 of file particle.h.

◆ __memalign__ [12/33]

real B_z [NSIMD] particle_simd_gc::__memalign__

Magnetic field z component at marker position [T]

Definition at line 292 of file particle.h.

◆ __memalign__ [13/33]

real B_r_dr [NSIMD] particle_simd_gc::__memalign__

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

Definition at line 295 of file particle.h.

◆ __memalign__ [14/33]

real B_phi_dr [NSIMD] particle_simd_gc::__memalign__

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

Definition at line 296 of file particle.h.

◆ __memalign__ [15/33]

real B_z_dr [NSIMD] particle_simd_gc::__memalign__

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

Definition at line 297 of file particle.h.

◆ __memalign__ [16/33]

real B_r_dphi [NSIMD] particle_simd_gc::__memalign__

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

Definition at line 298 of file particle.h.

◆ __memalign__ [17/33]

real B_phi_dphi [NSIMD] particle_simd_gc::__memalign__

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

Definition at line 299 of file particle.h.

◆ __memalign__ [18/33]

real B_z_dphi [NSIMD] particle_simd_gc::__memalign__

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

Definition at line 300 of file particle.h.

◆ __memalign__ [19/33]

real B_r_dz [NSIMD] particle_simd_gc::__memalign__

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

Definition at line 301 of file particle.h.

◆ __memalign__ [20/33]

real B_phi_dz [NSIMD] particle_simd_gc::__memalign__

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

Definition at line 302 of file particle.h.

◆ __memalign__ [21/33]

real B_z_dz [NSIMD] particle_simd_gc::__memalign__

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

Definition at line 303 of file particle.h.

◆ __memalign__ [22/33]

int bounces [NSIMD] particle_simd_gc::__memalign__

Number of times pitch sign changed

Definition at line 306 of file particle.h.

◆ __memalign__ [23/33]

real weight [NSIMD] particle_simd_gc::__memalign__

Marker weight

Definition at line 307 of file particle.h.

◆ __memalign__ [24/33]

real cputime [NSIMD] particle_simd_gc::__memalign__

Marker wall-clock time [s]

Definition at line 308 of file particle.h.

◆ __memalign__ [25/33]

real rho [NSIMD] particle_simd_gc::__memalign__

Marker rho coordinate

Definition at line 309 of file particle.h.

◆ __memalign__ [26/33]

real theta [NSIMD] particle_simd_gc::__memalign__

Marker poloidal coordinate [rad]

Definition at line 310 of file particle.h.

◆ __memalign__ [27/33]

integer id [NSIMD] particle_simd_gc::__memalign__

Unique ID for the marker

Definition at line 312 of file particle.h.

◆ __memalign__ [28/33]

integer endcond [NSIMD] particle_simd_gc::__memalign__

Marker end condition

Definition at line 313 of file particle.h.

◆ __memalign__ [29/33]

integer walltile [NSIMD] particle_simd_gc::__memalign__

ID of walltile if marker has hit the wall

Definition at line 314 of file particle.h.

◆ __memalign__ [30/33]

real mileage [NSIMD] particle_simd_gc::__memalign__

Duration this marker has been simulated [s]

Definition at line 318 of file particle.h.

◆ __memalign__ [31/33]

integer running [NSIMD] particle_simd_gc::__memalign__

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

Definition at line 320 of file particle.h.

◆ __memalign__ [32/33]

a5err err [NSIMD] particle_simd_gc::__memalign__

Error flag, zero if no error

Definition at line 322 of file particle.h.

◆ __memalign__ [33/33]

integer index [NSIMD] particle_simd_gc::__memalign__

Marker index at marker queue

Definition at line 323 of file particle.h.


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