COMPASS  5.0.0
End-to-end AO simulation tool using GPU acceleration
SutraAtmos Class Reference

this class provides the atmos features to COMPASS More...

#include <sutra_atmos.h>

Collaboration diagram for SutraAtmos:

Public Member Functions

 SutraAtmos (CarmaContext *context, int nscreens, float global_r0, float *r0, long *size, long *size2, float *altitude, float *windspeed, float *winddir, float *deltax, float *deltay, int device)
 
 ~SutraAtmos ()
 
int init_screen (int idx, float *h_A, float *h_B, unsigned int *h_istencilx, unsigned int *h_istencily, int seed)
 
int add_screen (float altitude, long size, long stencilSize, float amplitude, float windspeed, float winddir, float deltax, float deltay, int device)
 
int del_screen (const int idx)
 
int refresh_screen (int idx)
 
int move_atmos ()
 
int set_r0 (float r0)
 
int set_seed (int idx, float seed)
 

Public Attributes

int nscreens
 
vector< SutraTurbuScreen * > d_screens
 
float r0
 
CarmaContextcurrent_context
 

Detailed Description

this class provides the atmos features to COMPASS

Author
COMPASS Team https://github.com/ANR-COMPASS
Version
5.0.0
Date
2011/01/28

Definition at line 50 of file sutra_atmos.h.

Constructor & Destructor Documentation

◆ SutraAtmos()

SutraAtmos::SutraAtmos ( CarmaContext context,
int  nscreens,
float  global_r0,
float *  r0,
long *  size,
long *  size2,
float *  altitude,
float *  windspeed,
float *  winddir,
float *  deltax,
float *  deltay,
int  device 
)

◆ ~SutraAtmos()

SutraAtmos::~SutraAtmos ( )

Member Function Documentation

◆ add_screen()

int SutraAtmos::add_screen ( float  altitude,
long  size,
long  stencilSize,
float  amplitude,
float  windspeed,
float  winddir,
float  deltax,
float  deltay,
int  device 
)

◆ del_screen()

int SutraAtmos::del_screen ( const int  idx)

◆ init_screen()

int SutraAtmos::init_screen ( int  idx,
float *  h_A,
float *  h_B,
unsigned int *  h_istencilx,
unsigned int *  h_istencily,
int  seed 
)

◆ move_atmos()

int SutraAtmos::move_atmos ( )

◆ refresh_screen()

int SutraAtmos::refresh_screen ( int  idx)

◆ set_r0()

int SutraAtmos::set_r0 ( float  r0)

◆ set_seed()

int SutraAtmos::set_seed ( int  idx,
float  seed 
)

Member Data Documentation

◆ current_context

CarmaContext* SutraAtmos::current_context

Definition at line 55 of file sutra_atmos.h.

◆ d_screens

vector<SutraTurbuScreen *> SutraAtmos::d_screens

Definition at line 53 of file sutra_atmos.h.

◆ nscreens

int SutraAtmos::nscreens

Definition at line 52 of file sutra_atmos.h.

◆ r0

float SutraAtmos::r0

Definition at line 54 of file sutra_atmos.h.


The documentation for this class was generated from the following file: