Cholla 3.0.1-dev
Cholla - Massively parallel hydro on GPUs
Loading...
Searching...
No Matches
feedback_analysis.h
1#pragma once
2
3#include <stdio.h>
4
5#include "../global/global.h"
6#include "../grid/grid3D.h"
7
8// Specifies minimum density threshold for identifying cells used in
9// feedback-related analysis. In cgs, this is 0.01 cm^{-3}.
10#define FB_ANALYSIS_CUTOFF_DENSITY (0.01 * MU * MP / DENSITY_UNIT)
11
13{
14 Real *h_circ_vel_x, *h_circ_vel_y;
15 Real r_max, z_max;
16
17#ifdef PARTICLES_GPU
18 Real *d_circ_vel_x, *d_circ_vel_y;
19 void Compute_Gas_Velocity_Dispersion_GPU(Grid3D& G);
20#endif
21
22 public:
23 int countSN{0};
24 int countResolved{0};
25 int countUnresolved{0};
26 Real totalEnergy{0};
27 Real totalMomentum{0};
28 Real totalUnresEnergy{0};
29 Real totalWindMomentum{0};
30 Real totalWindEnergy{0};
31
32 FeedbackAnalysis(Grid3D& G, struct Parameters* P);
34
35 void Compute_Gas_Velocity_Dispersion(Grid3D& G);
36 void Reset();
37};
Definition feedback_analysis.h:13
Class to create a the gravity object.
Definition grid3D.h:229
Definition global.h:217