OpenMPCD
|
Class for measurements of Fourier-transformed velocities in MPC fluids that consist of triplets of particles. More...
#include <Triplets.hpp>
Public Member Functions | |
Triplets (const Simulation *const sim, DeviceMemoryManager *devMemMgr, const MPCFluid::Base *const mpcFluid_) | |
The constructor. More... | |
virtual | ~Triplets () |
The destructor. More... | |
virtual void | measure () |
Performs measurements. More... | |
virtual void | save (const std::string &rundir) const |
Saves the data to the given run directory. More... | |
Static Public Member Functions | |
static bool | isConfigured (const Simulation *const sim) |
Returns whether the given simulation configured this instrumentation. More... | |
Protected Attributes | |
const Simulation *const | simulation |
The simulation instance. More... | |
DeviceMemoryManager *const | deviceMemoryManager |
The Device memory manager. More... | |
const MPCFluid::Base *const | mpcFluid |
The fluid to measure. More... | |
MPCParticleVelocityType * | realBuffer |
Device buffer for temporary results. More... | |
MPCParticleVelocityType * | imagBuffer |
Device buffer for temporary results. More... | |
std::vector< std::vector< MPCParticlePositionType > > | k_n |
The multiples of \( 2*\pi/L_i \) for each component \( i \) of each \(\vec{k}\) vector. More... | |
std::vector< std::deque< std::pair< FP, Vector3D< std::complex< MPCParticleVelocityType > > > > > | fourierTransformedVelocities |
The Fourier-transformed velocities measured, along with the corresponding simulation timestamps. More... | |
Class for measurements of Fourier-transformed velocities in MPC fluids that consist of triplets of particles.
The particles that belong to one triplet are assumed to be adjacent to each other in memory. E.g. triplet 0 consists of particles 0 and 1 and 2, triplet 1 of particles 3 and 4 and 5, etc.
Definition at line 28 of file Instrumentation/FourierTransformedVelocity/Triplets.hpp.
OpenMPCD::CUDA::MPCFluid::Instrumentation::FourierTransformedVelocity::Triplets::Triplets | ( | const Simulation *const | sim, |
DeviceMemoryManager * | devMemMgr, | ||
const MPCFluid::Base *const | mpcFluid_ | ||
) |
The constructor.
[in] | sim | The simulation instance. |
[in] | devMemMgr | The Device memory manager. |
[in] | mpcFluid_ | The MPC fluid to measure. |
|
inlinevirtual |
The destructor.
Definition at line 46 of file Instrumentation/FourierTransformedVelocity/Triplets.hpp.
|
staticinherited |
Returns whether the given simulation configured this instrumentation.
[in] | sim | The simulation instance. |
NULLPointerException | Throws if sim is nullptr . |
|
virtual |
Performs measurements.
Implements OpenMPCD::CUDA::MPCFluid::Instrumentation::FourierTransformedVelocity::Base.
|
virtualinherited |
|
protectedinherited |
The Device memory manager.
Definition at line 106 of file CUDA/MPCFluid/Instrumentation/FourierTransformedVelocity/Base.hpp.
|
protectedinherited |
The Fourier-transformed velocities measured, along with the corresponding simulation timestamps.
Definition at line 115 of file CUDA/MPCFluid/Instrumentation/FourierTransformedVelocity/Base.hpp.
|
protectedinherited |
Device buffer for temporary results.
Definition at line 110 of file CUDA/MPCFluid/Instrumentation/FourierTransformedVelocity/Base.hpp.
|
protectedinherited |
The multiples of \( 2*\pi/L_i \) for each component \( i \) of each \(\vec{k}\) vector.
Definition at line 112 of file CUDA/MPCFluid/Instrumentation/FourierTransformedVelocity/Base.hpp.
|
protectedinherited |
The fluid to measure.
Definition at line 107 of file CUDA/MPCFluid/Instrumentation/FourierTransformedVelocity/Base.hpp.
|
protectedinherited |
Device buffer for temporary results.
Definition at line 109 of file CUDA/MPCFluid/Instrumentation/FourierTransformedVelocity/Base.hpp.
|
protectedinherited |
The simulation instance.
Definition at line 105 of file CUDA/MPCFluid/Instrumentation/FourierTransformedVelocity/Base.hpp.