![]() |
MAOS
Multithreaded Adaptive Optics Simulator
|
Functions | |
| void | genatm (sim_t *simu) |
| void | sim_update_sodium (sim_t *simu) |
| void | update_wfsflags (sim_t *simu) |
| void | shift_grad (sim_t *simu) |
| void | seeding (sim_t *simu) |
| sim_t * | sim_init (const parms_t *parms, powfs_t *powfs, aper_t *aper, recon_t *recon, int iseed) |
| void | sim_free (sim_t *simu) |
| void | print_progress (sim_t *simu) |
| void | save_skyc (powfs_t *powfs, recon_t *recon, const parms_t *parms) |
Contains a few support functions for simulation.
| void genatm | ( | sim_t * | simu | ) |
wrap of the generic vonkarman_genatm to generate turbulence screens. Wind velocities are set for each screen.
| void sim_update_sodium | ( | sim_t * | simu | ) |
Evolving the Sodium layer by updating the elongation transfer function.
The trombone position is also updated.
| void update_wfsflags | ( | sim_t * | simu | ) |
Update flags
| void shift_grad | ( | sim_t * | simu | ) |
Shift gradient when new gradients are ready (in the end of parallel section in sim in CL or wfsgrad in OL). Do not execute in parallel with other routines. In GLAO mode, also averaged gradients from the same type of powfs.
| void seeding | ( | sim_t * | simu | ) |
use random number dirived from input seed to seed other stream. necessary to have independant streams for different wfs in threading routines to avoid race condition and have consitent result
| sim_t * sim_init | ( | const parms_t * | parms, |
| powfs_t * | powfs, | ||
| aper_t * | aper, | ||
| recon_t * | recon, | ||
| int | iseed ) |
Initialize simu (of type sim_t) and various simulation data structs. Called for every seed.
| void print_progress | ( | sim_t * | simu | ) |
Print out wavefront error information and timing at each time step.