4 #ifndef __Data_Snapshot_H__
5 #define __Data_Snapshot_H__
6 #pragma region Includes
10 #include "..\MDSimulation\Constants\AtomicProperties.h"
12 using namespace rapidjson;
14 namespace DataReader {
25 #pragma region Snapshot Keys
26 static const char* SS_SnapshotID;
41 static const char* SD_KineticEnergyCom;
44 #pragma region Instance
56 virtual void Read(
const string& fileName);
58 #pragma region Accessors
59 int GetSnapshotID()
const;
63 double GetSimulationTime()
const;
66 double GetBubbleRadius()
const;
69 double GetMeanVelocity()
const;
72 double GetMedianVelocity()
const;
75 unsigned long long GetTotalCollisions()
const;
78 unsigned long long GetTotalCellCrossings()
const;
81 unsigned long long GetTotalWallCollisions()
const;
84 unsigned long long GetTotalConeBoundaryCollisions()
const;
87 double GetFusionRate()
const;
90 int GetGasTypes()
const;
93 vector<ShellData>& GetShellData();
96 double GetWallVelocity()
const;
99 double GetPressure()
const;
102 double GetMaxTemperature()
const;
105 double GetAvgTemperature()
const;
108 double GetMaxEnergy()
const;
111 double GetAvgEnergy()
const;
114 double GetMaxDensity()
const;
117 double GetAvgDensity()
const;
120 double GetKineticEnergy()
const;
123 double GetKineticEnergyCom()
const;
126 int GetParticleCount()
const;
129 vector<int> GetIonizations()
const;
132 #pragma region Helper Methods
136 #pragma region Data Members
233 #endif// !__Data_Snapshot_H__
int GasTypes_
The number of gas types in this snapshot.
Definition: DataSnapshot.h:173
double MaxDensity_
The maximum density measured within the bubble during this snapshot.
Definition: DataSnapshot.h:203
Stores the information pertaining to each shell layer in the simulated system.
Definition: ShellData.h:21
static const char * SD_MaxTemperature
Shell temperature.
Definition: DataSnapshot.h:36
double AvgTemperature_
The average temperature throughout the bubble during this snapshot.
Definition: DataSnapshot.h:191
double FusionRate_
[details pending]
Definition: DataSnapshot.h:167
static const char * SD_Temperature
Shell temperature.
Definition: DataSnapshot.h:35
unsigned long long TotalCollisions_
The number of active particle collisions.
Definition: DataSnapshot.h:155
vector< int > Ionizations_
Number of ionizations during this snapshot.
Definition: DataSnapshot.h:224
double SimulationTime_
The time at which this snapshot was taken.
Definition: DataSnapshot.h:142
static const char * SS_ParticleCount
Particle count.
Definition: DataSnapshot.h:31
static const char * SD_Radius
Shell radius.
Definition: DataSnapshot.h:32
unsigned long long TotalConeBoundaryCollisions_
[details pending]
Definition: DataSnapshot.h:164
int ParticleCount_
The current particle count during this snapshot.
Definition: DataSnapshot.h:219
double AvgEnergy_
The average energy level throughout the bubble during this snapshot.
Definition: DataSnapshot.h:199
static const char * SD_Percentage
Shell gas percentages.
Definition: DataSnapshot.h:39
vector< ShellData > ShellData_
The list of shells that the bubble is composed of.
Definition: DataSnapshot.h:170
double KineticEnergyCom_
The kinetic energy '?' of particles in the bubble during this snapshot.
Definition: DataSnapshot.h:216
static const char * SD_Ionization
Shell ionization.
Definition: DataSnapshot.h:38
static const char * SD_KineticEnergy
Shell kinetic energy.
Definition: DataSnapshot.h:40
static const char * SS_SimTime
Simulation time.
Definition: DataSnapshot.h:28
double MaxEnergy_
The maximum energy level measured within the bubble during this snapshot.
Definition: DataSnapshot.h:195
static const char * SD_Particles
Shell particles.
Definition: DataSnapshot.h:33
double AvgDensity_
The average density throughout the bubble during this snapshot.
Definition: DataSnapshot.h:207
static const char * SD_Velocity
Shell velocity.
Definition: DataSnapshot.h:37
double MeanVelocity_
The average velocity of the particles.
Definition: DataSnapshot.h:149
static const char * SD_Density
Shell density.
Definition: DataSnapshot.h:34
double WallVelocity_
The velocity at which the wall is traveling in relations to the origin.
Definition: DataSnapshot.h:179
double Pressure_
The average pressure throughout the bubble during this snapshot.
Definition: DataSnapshot.h:183
double BubbleRadius_
The radius, measured from the center of the gas bubble to the bubble wall.
Definition: DataSnapshot.h:146
Base class for reading and storing simulation output.
Definition: DataFile.h:24
static const char * SS_Radius
Radius.
Definition: DataSnapshot.h:29
double KineticEnergy_
The kinetic energy of particles in the bubble during this snapshot.
Definition: DataSnapshot.h:211
unsigned long long TotalCellCrossings_
[details pending]
Definition: DataSnapshot.h:158
Stores simulation snapshot data.
Definition: DataSnapshot.h:18
double MedianVelocity_
The median velocity of the particles.
Definition: DataSnapshot.h:152
ostream & operator<<(ostream &out, DataReader::DataSnapshot &data)
Out stream operator overload for snapshots.
Definition: DataSnapshot.cpp:350
double MaxTemperature_
The maximum temperature measured within the bubble during this snapshot.
Definition: DataSnapshot.h:187
static const char * SS_Bins
Shell data.
Definition: DataSnapshot.h:30
unsigned long long TotalWallCollisions_
[details pending]
Definition: DataSnapshot.h:161