CosmoGRaPH v0.0
dust.h
1 #ifndef COSMO_DUST_SIM_H
2 #define COSMO_DUST_SIM_H
3 
4 #include "sim.h"
5 #include "../components/dust_fluid/dust.h"
6 #include "../components/Lambda/lambda.h"
7 #include "../components/phase_space_sheet/sheets.h"
8 
9 namespace cosmo
10 {
11 
15 class DustSim : public CosmoSim
16 {
17 protected:
18  Sheet * raySheet;
19  Dust * dustSim;
20  Lambda * lambda;
21  bool take_ray_step;
22  idx_t raysheet_flip_step;
23 public:
24  DustSim();
25  ~DustSim()
26  {
27  std::cout << "Cleaning up...";
28  delete iodata;
29  delete bssnSim;
30  delete fourier;
31  if(use_bardeen)
32  {
33  delete bardeen;
34  }
35  std::cout << "done.\n";
36  std::cout << std::flush;
37  }
38 
39  void init();
40  void setICs();
41  void initDustStep();
42  void outputDustStep();
43  void runDustStep();
44  void runStep();
45 };
46 
47 } /* namespace cosmo */
48 
49 #endif
Definition: bardeen.cc:5
Definition: dust.h:15
void setICs()
Set conformally flat initial conditions for a w=0 fluid in synchronous gauge.
Definition: dust.cc:40
Class implementing functionality for a dust fluid that relies on a BSSN instance. ...
Definition: dust.h:28
Definition: sim.h:17
Definition: sheets.h:47
Definition: lambda.h:11