MAOS
Multithreaded Adaptive Optics Simulator
Loading...
Searching...
No Matches
accphi.h File Reference

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)

Detailed Description

Contains ray tracing routines optimized for different input/output formats. Notice that the OPDs are accumulated.


Data Structure Documentation

◆ propdata_t

struct propdata_t

Unified data structure for automatic selection of propagation.

Collaboration diagram for propdata_t:
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

Function Documentation

◆ prop_prep()

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).

Parameters
[out]displacexDisplacement along x at the input layer (m).
[out]displaceyDisplacement along y at the input layer (m).
[out]alphaAmplitude scaling including angle of incidence.
[out]scaleCone effect scaling factor.
[in,out]propdataRay tracing parameters; defaults of alpha and hs are filled in.
Returns
1 if valid, 0 if the layer is above the guide star.

◆ prop_thread()

void * prop_thread ( thread_t * data)

A unified wrapper of prop_range() for use with thread_t.

Parameters
[in]dataThread data with data->data pointing to propdata_t and the range in start, end.
Returns
NULL.

◆ prop_range()

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.

Parameters
[in,out]propdataRay tracing parameters; the output OPD is accumulated into. alpha defaults to 1.
[in]startFirst output index (point, subaperture, or row) to process.
[in]endOne past the last output index to process. 0 means all.

◆ prop()

void prop ( propdata_t * propdata)

Ray tracing as specified by propdata for the full output range. See prop_range().

Parameters
[in,out]propdataRay tracing parameters; the output OPD is accumulated into.