OpenMPCD
Static Public Member Functions | List of all members
OpenMPCD::CUDA::BoundaryCondition::Factory Class Reference

Class used to construct OpenMPCD::CUDA::BoundaryCondition::Base instances. More...

#include <Factory.hpp>

Static Public Member Functions

static BoundaryCondition::BasegetInstance (const Configuration::Setting &config, const unsigned int simulationBoxSizeX, const unsigned int simulationBoxSizeY, const unsigned int simulationBoxSizeZ)
 Returns a newly constructed boundary condition instance. More...
 

Detailed Description

Class used to construct OpenMPCD::CUDA::BoundaryCondition::Base instances.

Boundary conditions are configured in the OpenMPCD configuration file in the boundaryConditions setting, which has to contain exactly one configuration group, the name of which decides which type of boundary condition to use.

Definition at line 28 of file BoundaryCondition/Factory.hpp.

Member Function Documentation

◆ getInstance()

BoundaryCondition::Base * OpenMPCD::CUDA::BoundaryCondition::Factory::getInstance ( const Configuration::Setting config,
const unsigned int  simulationBoxSizeX,
const unsigned int  simulationBoxSizeY,
const unsigned int  simulationBoxSizeZ 
)
static

Returns a newly constructed boundary condition instance.

The caller is responsible for deleting the pointer.

Exceptions
OpenMPCD::InvalidConfigurationExceptionThrows if either no, or multiple, boundary conditions have been defined in the given configuration group, or none of the configured boundary conditions are recognized.
Parameters
[in]configThe configuration group that holds the boundary condition configuration.
[in]simulationBoxSizeXThe size of the primary simulation volume along the x direction.
[in]simulationBoxSizeYThe size of the primary simulation volume along the y direction.
[in]simulationBoxSizeZThe size of the primary simulation volume along the z direction.

Definition at line 14 of file BoundaryCondition/Factory.cpp.


The documentation for this class was generated from the following files: