coffee
Coronagraph Optimization For Fast Exoplanet Exploration
OptSystProp_run.c File Reference

Optical propagation execution. More...

Functions

int OptSystProp_run (OPTSYST *optsyst, long index, long elemstart, long elemend, const char *savedir, int sharedmem)
 Optical propagation execution. More...
 

Detailed Description

Optical propagation execution.

Change log

  • 20171124 Guyon File creation (broken off from original main .c)
Author
O. Guyon
Bug:
No known bugs.

Function Documentation

int OptSystProp_run ( OPTSYST optsyst,
long  index,
long  elemstart,
long  elemend,
const char *  savedir,
int  sharedmem 
)

Optical propagation execution.

Parameters
[in]indexsystem index (usually 0)
[in]elemstartstarting element index
[in]elemendending element index
[in]savedirdirectory to which image results are saved
[in]sharedmem1 if WF* arrays should be kept in memory after use

optsyst.elemkeepmem 1 if element complex amplitude should be kept in memory after use

discard element memory after used

If not subsampled :

  • do DFT from pupil to pupil with a FPM in the middle, so this does pupil1 -> DFT -> FPM -> DFT -> pupil2
  • output in last argument
  • the focal plane mask is the second argument, which contains properties of the FPM that are applied as part of fft_DFTinsertFPM()