ASCOT5
Loading...
Searching...
No Matches
Functions
simulate_fo_fixed.h File Reference

Header file for simulate_fo_fixed.c. More...

#include "../ascot5.h"
#include "../simulate.h"
#include "../particle.h"

Go to the source code of this file.

Functions

void simulate_fo_fixed (particle_queue *pq, sim_data *sim, int mrk_array_size)
 Simulates particles using fixed time-step.
 

Detailed Description

Header file for simulate_fo_fixed.c.

Definition in file simulate_fo_fixed.h.

Function Documentation

◆ simulate_fo_fixed()

void simulate_fo_fixed ( particle_queue * pq,
sim_data * sim,
int mrk_array_size )

Simulates particles using fixed time-step.

The simulation includes:

  • orbit-following with Volume-Preserving Algorithm
  • Coulomb collisions with Euler-Maruyama method

The simulation is carried until all markers have met some end condition or are aborted/rejected. The final state of the markers is stored in the given marker array. Other output is stored in the diagnostic array.

The time-step is user-defined: either a directly given fixed value or a given fraction of gyrotime.

Parameters
pqparticles to be simulated
simsimulation data struct
mrk_array_sizesize of particle arrays

Definition at line 50 of file simulate_fo_fixed.c.