Class for measurements of velocity autocorrelation in MPC fluids that consist of bare, individual MPC fluid particles.
More...
#include <Simple.hpp>
Class for measurements of velocity autocorrelation in MPC fluids that consist of bare, individual MPC fluid particles.
Definition at line 25 of file Instrumentation/VelocityAutocorrelation/Simple.hpp.
◆ Simple()
The constructor.
- Parameters
-
[in] | sim | The simulation instance. |
[in] | devMemMgr | The Device memory manager. |
[in] | mpcFluid_ | The MPC fluid to measure. |
◆ ~Simple()
virtual OpenMPCD::CUDA::MPCFluid::Instrumentation::VelocityAutocorrelation::Simple::~Simple |
( |
| ) |
|
|
inlinevirtual |
◆ isConfigured()
static bool OpenMPCD::CUDA::MPCFluid::Instrumentation::VelocityAutocorrelation::Base::isConfigured |
( |
const Simulation *const |
sim | ) |
|
|
staticinherited |
Returns whether the given simulation configured this instrumentation.
- Parameters
-
[in] | sim | The simulation instance. |
- Exceptions
-
◆ measure()
void OpenMPCD::CUDA::MPCFluid::Instrumentation::VelocityAutocorrelation::Base::measure |
( |
| ) |
|
|
inherited |
◆ populateCurrentVelocities()
virtual void OpenMPCD::CUDA::MPCFluid::Instrumentation::VelocityAutocorrelation::Simple::populateCurrentVelocities |
( |
| ) |
|
|
protectedvirtual |
◆ save()
void OpenMPCD::CUDA::MPCFluid::Instrumentation::VelocityAutocorrelation::Base::save |
( |
const std::string & |
rundir | ) |
const |
|
inherited |
Saves the data to the given run directory.
The given run directory is created if necessary, and so is the data file therein; if the data file already exists, it will be truncated.
Multiple lines will be written to the file, each consisting of three tab-separated columns: The first column corresponds to the simulation time \( t_i \) of a snapshot \( i \); the second column to the simulation time \( t_j \ge t_i \) ; and finally, the third column contains \( V \left( t_i, t_j \right) \). One such line will be written for every measured \( V \) (see class documentation for details).
The lines are ordered by ascending \( t_j \) first, and then by ascending snapshot position in memory (see class documentation for details).
- Parameters
-
[in] | rundir | The path to the run directory. Within that directory, the data will be saved to the file velocityAutocorrelations.data . |
◆ autocorrelations
std::deque<boost::tuple<FP, FP, MPCParticleVelocityType> > OpenMPCD::CUDA::MPCFluid::Instrumentation::VelocityAutocorrelation::Base::autocorrelations |
|
protectedinherited |
◆ currentVelocities
MPCParticleVelocityType* OpenMPCD::CUDA::MPCFluid::Instrumentation::VelocityAutocorrelation::Base::currentVelocities |
|
protectedinherited |
◆ deviceMemoryManager
DeviceMemoryManager* const OpenMPCD::CUDA::MPCFluid::Instrumentation::VelocityAutocorrelation::Base::deviceMemoryManager |
|
protectedinherited |
◆ measurementTime
FP OpenMPCD::CUDA::MPCFluid::Instrumentation::VelocityAutocorrelation::Base::measurementTime |
|
protectedinherited |
◆ mpcFluid
const MPCFluid::Base* const OpenMPCD::CUDA::MPCFluid::Instrumentation::VelocityAutocorrelation::Base::mpcFluid |
|
protectedinherited |
◆ numberOfConstituents
const unsigned int OpenMPCD::CUDA::MPCFluid::Instrumentation::VelocityAutocorrelation::Base::numberOfConstituents |
|
protectedinherited |
◆ simulation
const Simulation* const OpenMPCD::CUDA::MPCFluid::Instrumentation::VelocityAutocorrelation::Base::simulation |
|
protectedinherited |
◆ snapshots
std::vector<Snapshot*> OpenMPCD::CUDA::MPCFluid::Instrumentation::VelocityAutocorrelation::Base::snapshots |
|
protectedinherited |
The documentation for this class was generated from the following file: