OpenMPCD
|
Class used to construct MPC fluid instances. More...
#include <Factory.hpp>
Static Public Member Functions | |
static MPCFluid::Base * | getInstance (CUDA::Simulation *const sim, const Configuration &config, const unsigned int count, RNG &rng) |
Returns a newly constructed MPC fluid. More... | |
Class used to construct MPC fluid instances.
Definition at line 22 of file MPCFluid/Factory.hpp.
|
static |
Returns a newly constructed MPC fluid.
The caller is responsible for deleting the pointer. If no MPC fluid has been configured, or more precisely, if the configuration key mpc.fluid
is not set, returns nullptr
.
OpenMPCD::InvalidConfigurationException | Throws if an unknown key is set in mpc.fluid . |
[in] | sim | The simulation instance. |
[in] | config | The simulation configuration. |
[in] | count | The number of fluid particles. |
[in] | rng | A random number generator. |
Definition at line 13 of file MPCFluid/Factory.cpp.