OpenMPCD
|
MPCD simulation with Molecular Dynamics on CUDA-capable GPUs. More...
#include <Simulation.hpp>
Public Member Functions | |
Simulation (const std::string &configurationFilename, const unsigned int rngSeed, const std::string &dir) | |
The constructor. More... | |
Simulation (const Configuration &configuration, const unsigned int rngSeed) | |
The constructor. More... | |
~Simulation () | |
The destructor. More... | |
const Configuration & | getConfiguration () const |
Returns the configuration. More... | |
void | warmup () |
Performs the warmup step. More... | |
void | sweep () |
Performs a sweep. More... | |
unsigned int | getNumberOfCompletedSweeps () const |
Returns the number of times sweep has completed, not counting warmup sweeps as performed by warmup . More... | |
unsigned int | getSimulationBoxSizeX () const |
Returns the size of the primary simulation box along the x direction. More... | |
unsigned int | getSimulationBoxSizeY () const |
Returns the size of the primary simulation box along the y direction. More... | |
unsigned int | getSimulationBoxSizeZ () const |
Returns the size of the primary simulation box along the z direction. More... | |
unsigned int | getCollisionCellCount () const |
Returns the number of collision cells. More... | |
bool | hasMPCFluid () const |
Returns whether an MPC fluid has been configured. More... | |
const MPCFluid::Base & | getMPCFluid () const |
Returns the MPC fluid. More... | |
const MPCSolute::Base< MPCParticlePositionType, MPCParticleVelocityType > & | getMPCSolute () const |
Returns the MPC solute. More... | |
const BoundaryCondition::Base * | getBoundaryConditions () const |
Returns the boundary conditions. More... | |
bool | hasSolute () const |
Returns true if Simulation has an instance of MPCSolute::Base. More... | |
FP | getMPCTime () const |
Returns the MPC time that has passed since the start of the simulation. More... | |
FP | getMPCTimestep () const |
Returns the MPC timestep. More... | |
std::string | getRundir () const |
Returns the directory containing the Simulation run data. More... | |
DeviceMemoryManager * | getDeviceMemoryManager () |
Returns the Device memory manager. More... | |
Friends | |
class | OpenMPCDTest::CUDA::SimulationTest |
MPCD simulation with Molecular Dynamics on CUDA-capable GPUs.
For a description of the Maxwell-Boltzmann-Scaling Thermostat, see "Cell-level canonical sampling by velocity scaling for multiparticle collision dynamics simulations" by C. C. Huang, A. Chatterji, G. Sutmann, G. Gompper, and R. G. Winkler. Journal of Computational Physics 229 (2010) 168-177. DOI:10.1016/j.jcp.2009.09.024
Definition at line 48 of file CUDA/Simulation.hpp.
OpenMPCD::CUDA::Simulation::Simulation | ( | const std::string & | configurationFilename, |
const unsigned int | rngSeed, | ||
const std::string & | dir | ||
) |
The constructor.
[in] | configurationFilename | The path to the simulation configuration. |
[in] | rngSeed | The seed for the random number generator. |
[in] | dir | The directory where simulation runs will be saved. |
OpenMPCD::CUDA::Simulation::Simulation | ( | const Configuration & | configuration, |
const unsigned int | rngSeed | ||
) |
The constructor.
[in] | configuration | The configuration instance. |
[in] | rngSeed | The seed for the random number generator. |
OpenMPCD::CUDA::Simulation::~Simulation | ( | ) |
The destructor.
|
inline |
Returns the boundary conditions.
Definition at line 182 of file CUDA/Simulation.hpp.
|
inline |
Returns the number of collision cells.
Definition at line 129 of file CUDA/Simulation.hpp.
|
inline |
Returns the configuration.
Definition at line 81 of file CUDA/Simulation.hpp.
|
inline |
Returns the Device memory manager.
Definition at line 224 of file CUDA/Simulation.hpp.
|
inline |
Returns the MPC fluid.
OpenMPCD::InvalidCallException | If OPENMPCD_DEBUG is defined, throws if !hasMPCFluid() . |
Definition at line 152 of file CUDA/Simulation.hpp.
|
inline |
Returns the MPC solute.
OpenMPCD::InvalidCallException | If OPENMPCD_DEBUG is defined, throws if no solute has been configured. |
Definition at line 169 of file CUDA/Simulation.hpp.
|
inline |
Returns the MPC time that has passed since the start of the simulation.
Definition at line 200 of file CUDA/Simulation.hpp.
|
inline |
Returns the MPC timestep.
Definition at line 208 of file CUDA/Simulation.hpp.
unsigned int OpenMPCD::CUDA::Simulation::getNumberOfCompletedSweeps | ( | ) | const |
Returns the number of times sweep
has completed, not counting warmup sweeps as performed by warmup
.
|
inline |
Returns the directory containing the Simulation run data.
Definition at line 216 of file CUDA/Simulation.hpp.
|
inline |
Returns the size of the primary simulation box along the x direction.
Definition at line 105 of file CUDA/Simulation.hpp.
|
inline |
Returns the size of the primary simulation box along the y direction.
Definition at line 113 of file CUDA/Simulation.hpp.
|
inline |
Returns the size of the primary simulation box along the z direction.
Definition at line 121 of file CUDA/Simulation.hpp.
|
inline |
Returns whether an MPC fluid has been configured.
Definition at line 141 of file CUDA/Simulation.hpp.
|
inline |
Returns true if Simulation has an instance of MPCSolute::Base.
Definition at line 191 of file CUDA/Simulation.hpp.
void OpenMPCD::CUDA::Simulation::sweep | ( | ) |
Performs a sweep.
void OpenMPCD::CUDA::Simulation::warmup | ( | ) |
Performs the warmup step.