COMPASS  5.4.4
End-to-end AO simulation tool using GPU acceleration
sutra_atmos.h
Go to the documentation of this file.
1 // -----------------------------------------------------------------------------
2 // This file is part of COMPASS <https://anr-compass.github.io/compass/>
3 //
4 // Copyright (C) 2011-2023 COMPASS Team <https://github.com/ANR-COMPASS>
5 // All rights reserved.
6 
7 // -----------------------------------------------------------------------------
8 
16 
17 #ifndef _SUTRA_ATMOS_H_
18 #define _SUTRA_ATMOS_H_
19 
20 #include <sutra_tscreen.h>
21 
22 using std::pair;
23 using std::vector;
24 
25 class SutraAtmos {
26  public:
27  int nscreens;
28  vector<SutraTurbuScreen *> d_screens;
29  float r0;
31 
32  public:
33  SutraAtmos(CarmaContext *context, int nscreens, float global_r0, float *r0,
34  long *size, long *size2, float *altitude, float *windspeed,
35  float *winddir, float *deltax, float *deltay, int device);
37 
38  int init_screen(int idx, float *h_A, float *h_B, unsigned int *h_istencilx,
39  unsigned int *h_istencily, int seed);
40 
41  int add_screen(float altitude, long size, long stencilSize, float amplitude,
42  float windspeed, float winddir, float deltax, float deltay,
43  int device);
44  int del_screen(const int idx);
45  int refresh_screen(int idx);
46 
47  int move_atmos();
48  int set_r0(float r0);
49  int set_seed(int idx, float seed);
50 };
51 
52 #endif // _SUTRA_ATMOS_H_
this class provides the context in which CarmaObj are created
Definition: carma_context.h:79
this class provides the atmos features to COMPASS
Definition: sutra_atmos.h:25
int move_atmos()
float r0
Definition: sutra_atmos.h:29
int nscreens
Definition: sutra_atmos.h:27
int set_r0(float r0)
int del_screen(const int idx)
int refresh_screen(int idx)
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)
vector< SutraTurbuScreen * > d_screens
Definition: sutra_atmos.h:28
int set_seed(int idx, float seed)
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)
CarmaContext * current_context
Definition: sutra_atmos.h:30