Cholla 3.0.1-dev
Cholla - Massively parallel hydro on GPUs
Loading...
Searching...
No Matches
RotatedProjWriter.h
Go to the documentation of this file.
1
6#pragma once
7
8#include "../global/global.h"
9#include "../grid/grid3D.h"
10#include "../io/FnameTemplate.h" // define FnameTemplate
11#include "../io/ParameterMap.h" // define ParameterMap
12
13namespace io
14{
15
23struct Rotation {
24 // the default constructor would put the instance in an invalid state
25 Rotation() = delete;
26
29
31 int nx;
32
34 int nz;
35
37 int nx_min;
38
40 int nx_max;
41
43 int nz_min;
44
46 int nz_max;
47
49 Real delta;
50
52 Real theta;
53
55 Real phi;
56
58 Real Lx;
59
61 Real Lz;
62
65
67 Real n_delta;
68
71
74};
75
82{
84 Rotation rot_info_;
85
86 public:
87 RotatedProjWriter() = delete;
88 RotatedProjWriter(ParameterMap &pmap) : rot_info_(pmap) {}
89
98 void operator()(Grid3D &G, Parameters P, int nfile, const FnameTemplate &fname_template);
99};
100
101} // namespace io
Definition FnameTemplate.h:43
Class to create a the gravity object.
Definition grid3D.h:229
A class that provides map-like access to parameter files.
Definition ParameterMap.h:74
A callable that writes rotated projections.
Definition RotatedProjWriter.h:82
void operator()(Grid3D &G, Parameters P, int nfile, const FnameTemplate &fname_template)
Definition RotatedProjWriter.cpp:371
Definition global.h:217
Definition RotatedProjWriter.h:23
Real delta
Definition RotatedProjWriter.h:49
Real Lx
Definition RotatedProjWriter.h:58
Real ddelta_dt
Definition RotatedProjWriter.h:70
Real Lz
Definition RotatedProjWriter.h:61
int nz
Definition RotatedProjWriter.h:34
int nx_min
Definition RotatedProjWriter.h:37
Real phi
Definition RotatedProjWriter.h:55
int nz_min
Definition RotatedProjWriter.h:43
Real theta
Definition RotatedProjWriter.h:52
int nx
Definition RotatedProjWriter.h:31
int i_delta
Definition RotatedProjWriter.h:64
int nx_max
Definition RotatedProjWriter.h:40
int flag_delta
Definition RotatedProjWriter.h:73
int nz_max
Definition RotatedProjWriter.h:46
Real n_delta
Definition RotatedProjWriter.h:67