WarpX
Loading...
Searching...
No Matches
DifferentialLuminosity.H
Go to the documentation of this file.
1/* Copyright 2023 The WarpX Community
2 *
3 * This file is part of WarpX.
4 *
5 * Authors: Arianna Formenti
6 * License: BSD-3-Clause-LBNL
7 */
8
9#ifndef WARPX_DIAGNOSTICS_REDUCEDDIAGS_DIFFERENTIALLUMINOSITY_H_
10#define WARPX_DIAGNOSTICS_REDUCEDDIAGS_DIFFERENTIALLUMINOSITY_H_
11
12#include "ReducedDiags.H"
13#include <AMReX_GpuContainers.H>
14
15#include <map>
16#include <string>
17#include <vector>
18
23{
24public:
25
30 DifferentialLuminosity(const std::string& rd_name);
31
33 std::vector<std::string> m_beam_name;
34
37
39 amrex::Real m_bin_max;
40 amrex::Real m_bin_min;
41
43 amrex::Real m_bin_size;
44
45 void ComputeDiags(int step) final;
46
47private:
50 {
51 std::string header;
52 int idx;
53 };
54
56 std::map<std::string, aux_header_index> m_headers_indices;
57
58 // Array in which to accumulate the luminosity across timesteps
60};
61
62#endif // WARPX_DIAGNOSTICS_REDUCEDDIAGS_DIFFERENTIALLUMINOSITY_H_
std::vector< std::string > m_beam_name
name of the two colliding species
Definition DifferentialLuminosity.H:33
std::map< std::string, aux_header_index > m_headers_indices
map to store header texts and indices of the reduced diagnostics
Definition DifferentialLuminosity.H:56
amrex::Gpu::DeviceVector< amrex::Real > d_data
Definition DifferentialLuminosity.H:59
void ComputeDiags(int step) final
Definition DifferentialLuminosity.cpp:121
amrex::Real m_bin_min
Definition DifferentialLuminosity.H:40
amrex::Real m_bin_size
bin size
Definition DifferentialLuminosity.H:43
int m_bin_num
number of bins
Definition DifferentialLuminosity.H:36
amrex::Real m_bin_max
max and min bin values
Definition DifferentialLuminosity.H:39
DifferentialLuminosity(const std::string &rd_name)
Definition DifferentialLuminosity.cpp:59
ReducedDiags(const std::string &rd_name)
Definition ReducedDiags.cpp:26
PODVector< T, ArenaAllocator< T > > DeviceVector
auxiliary structure to store headers and indices of the reduced diagnostics
Definition DifferentialLuminosity.H:50
int idx
Definition DifferentialLuminosity.H:52
std::string header
Definition DifferentialLuminosity.H:51