![]() |
MAOS
Multithreaded Adaptive Optics Simulator
|
Data Structures | |
| struct | propdata_t |
Functions | |
| int | prop_prep (real *displacex, real *displacey, real *alpha, real *scale, propdata_t *propdata) |
| void * | prop_thread (thread_t *data) |
| void | prop_range (propdata_t *propdata, long start, long end) |
| void | prop (propdata_t *propdata) |
Contains ray tracing routines optimized for different input/output formats. Notice that the OPDs are accumulated.
| struct propdata_t |
Unified data structure for automatic selection of propagation.
| Data Fields | ||
|---|---|---|
| const map_t * | mapin | |
| const loc_t * | locin | |
| const real * | phiin | |
| map_t * | mapout | |
| const pts_t * | ptsout | |
| const loc_t * | locout | |
| const locstat_t * | ostat | |
| real * | phiout | |
| real | alpha | |
| real | hs | |
| real | thetax | |
| real | thetay | |
| real | misregx | |
| real | misregy | |
| real | shiftx | |
| real | shifty | |
| real | rot | |
| int | wrap | |
| int | transpose | |
| int | nooptim | |
| int | bin | |
| int prop_prep | ( | real * | displacex, |
| real * | displacey, | ||
| real * | alpha, | ||
| real * | scale, | ||
| propdata_t * | propdata ) |
Compute the ray tracing geometry from propdata: the displacement (displacex, displacey) at the input layer, the amplitude scaling alpha (including angle of incidence), and the cone effect scaling factor scale. Fills defaults of propdata->alpha (1) and propdata->hs (infinity).
| [out] | displacex | Displacement along x at the input layer (m). |
| [out] | displacey | Displacement along y at the input layer (m). |
| [out] | alpha | Amplitude scaling including angle of incidence. |
| [out] | scale | Cone effect scaling factor. |
| [in,out] | propdata | Ray tracing parameters; defaults of alpha and hs are filled in. |
| void * prop_thread | ( | thread_t * | data | ) |
A unified wrapper of prop_range() for use with thread_t.
| [in] | data | Thread data with data->data pointing to propdata_t and the range in start, end. |
| void prop_range | ( | propdata_t * | propdata, |
| long | start, | ||
| long | end ) |
A wrapper prop routine that handles all the different cases by calling the different routines. Handles threading.
| [in,out] | propdata | Ray tracing parameters; the output OPD is accumulated into. alpha defaults to 1. |
| [in] | start | First output index (point, subaperture, or row) to process. |
| [in] | end | One past the last output index to process. 0 means all. |
| void prop | ( | propdata_t * | propdata | ) |
Ray tracing as specified by propdata for the full output range. See prop_range().
| [in,out] | propdata | Ray tracing parameters; the output OPD is accumulated into. |