5#ifndef MARDYN_TRUNK_SPATIALPROFILE_H
6#define MARDYN_TRUNK_SPATIALPROFILE_H
12#include <plugins/profiles/ProfileBase.h>
13#include "PluginBase.h"
15#include "parallel/DomainDecompBase.h"
16#include "particleContainer/ParticleContainer.h"
83 Domain* domain,
unsigned long simstep)
override;
101 if(callbackMap.find(
name) != callbackMap.end()) {
102 getNumFixRegion = callbackMap.at(
name).get<
unsigned long>();
118 unsigned long _writeFrequency;
119 unsigned long _initStatistics;
120 unsigned long _profileRecordingTimesteps;
121 long _accumulatedDatasets;
125 unsigned int _profiledComp;
130 std::vector<ProfileBase*> _profiles;
135 bool _DENSITY =
false;
136 bool _VELOCITY =
false;
137 bool _VELOCITY3D =
false;
138 bool _TEMPERATURE =
false;
139 bool _VIRIAL =
false;
140 bool _VIRIAL2D =
false;
144 std::optional<std::function<
unsigned long(
void)>> getNumFixRegion;
Records (NO OUTPUT) the DOF of molecules per bin specified by Sampling grid in KartesianProfile.
Definition: DOFProfile.h:15
Outputs the number density of molecules per bin specified by Sampling grid in KartesianProfile.
Definition: DensityProfile.h:14
handle boundary region and multiple processes
Definition: DomainDecompBase.h:51
This class is used to read in the phasespace and to handle macroscopic values.
Definition: Domain.h:47
Records (NO OUTPUT) the 2xKinetic Profile of molecules per bin specified by Sampling grid in Kartesia...
Definition: KineticProfile.h:14
This Interface is used to get access to particles and pairs of particles.
Definition: ParticleContainer.h:69
Definition: ParticleIterator.h:50
The PluginBase class provides the interface for any kind of output/plugin classes - called "(output) ...
Definition: PluginBase.h:47
Base class for all Profile outputs used by KartesianProfile.
Definition: ProfileBase.h:34
SpatialProfile is a Plugin that is called like any other plugin derived from PluginBase....
Definition: SpatialProfile.h:73
std::string getPluginName() override
return the name of the plugin
Definition: SpatialProfile.h:92
long getCylUID(ParticleIterator &thismol)
getCylUID samples the domain in cylinder coordinate bins.
Definition: SpatialProfile.cpp:364
void accessAllCallbacks(const std::map< std::string, FunctionWrapper > &callbackMap) override
Definition: SpatialProfile.h:98
void endStep(ParticleContainer *particleContainer, DomainDecompBase *domainDecomp, Domain *domain, unsigned long simstep) override
Iterates over all molecules and passes them together with their Bin ID to the profiles for further pr...
Definition: SpatialProfile.cpp:233
unsigned long getCartesianUID(ParticleIterator &thismol)
getCartesianUID samples the domain cartesian coordinate bins.
Definition: SpatialProfile.cpp:339
void init(ParticleContainer *particleContainer, DomainDecompBase *domainDecomp, Domain *domain) override
Initialize Arrays needed for calculating the profiles. Also get reference to domain for specific quan...
Definition: SpatialProfile.cpp:146
void finish(ParticleContainer *particleContainer, DomainDecompBase *domainDecomp, Domain *domain) override
Method finish will be called at the end of the simulation.
Definition: SpatialProfile.h:85
void readXML(XMLfileUnits &xmlconfig) override
Read in Information about write/record frequencies, Sampling Grid and which profiles are enabled....
Definition: SpatialProfile.cpp:22
Outputs the temperature of molecules per bin specified by Sampling grid in KartesianProfile.
Definition: TemperatureProfile.h:17
Outputs the XYZ velocity components per bin specified by Sampling grid in KartesianProfile.
Definition: Velocity3dProfile.h:18
Outputs the magnitude of the velocity per bin specified by Sampling grid in KartesianProfile.
Definition: VelocityAbsProfile.h:16
Definition: Virial2DProfile.h:17
Definition: VirialProfile.h:20
XML file with unit attributes abstraction.
Definition: xmlfileUnits.h:25
::xsd::cxx::tree::name< char, token > name
C++ type corresponding to the Name XML Schema built-in type.
Definition: vtk-punstructured.h:288
::xsd::cxx::tree::string< char, simple_type > string
C++ type corresponding to the string XML Schema built-in type.
Definition: vtk-punstructured.h:270