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

Header file for simulate_ml_adaptive.c. More...

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

Go to the source code of this file.

Functions

void simulate_ml_adaptive (particle_queue *pq, sim_data *sim)
 Simulates magnetic field-lines using adaptive time-step.
 

Detailed Description

Header file for simulate_ml_adaptive.c.

Definition in file simulate_ml_adaptive.h.

Function Documentation

◆ simulate_ml_adaptive()

void simulate_ml_adaptive ( particle_queue * pq,
sim_data * sim )

Simulates magnetic field-lines using adaptive time-step.

The simulation includes:

  • orbit-following with Cash-Karp 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 adaptive time-step is determined by integrator error tolerances as well as user-defined limits for how much marker state can change during a single time-step.

Note that even though we might refer the integration time-step as "time", in reality we are integrating over distance. The time step is therefore step in meters marker orbit is intgerated. Marker does have time in its field, but it is the global time and that is not being changed during the simulation.

Parameters
pqfield lines to be simulated
simsimulation data struct

Definition at line 53 of file simulate_ml_adaptive.c.