OpenMPCD
CUDA/BoundaryCondition/Base.hpp
Go to the documentation of this file.
1 /**
2  * @file
3  * Defines the `OpenMPCD::CUDA::BoundaryCondition::Base` class.
4  */
5 
6 #ifndef OPENMPCD_CUDA_BOUNDARYCONDITION_BASE_HPP
7 #define OPENMPCD_CUDA_BOUNDARYCONDITION_BASE_HPP
8 
9 #include <OpenMPCD/Types.hpp>
10 
11 namespace OpenMPCD
12 {
13 namespace CUDA
14 {
15 
16 /**
17  * Namespace for boundary conditions.
18  */
19 namespace BoundaryCondition
20 {
21 
22 
23 /**
24  * Base class for boundary condition.
25  */
26 class Base
27 {
28 protected:
29  /**
30  * The constructor.
31  */
32  Base()
33  {
34  }
35 
36 public:
37  /**
38  * The destructor.
39  */
40  virtual ~Base()
41  {
42  }
43 
44 public:
45  /**
46  * Returns the total available volume.
47  *
48  * The total available volume is here understood to be the volume of the
49  * primary simulation volume, reduced by the volume that is excluded by the
50  * boundary conditions.
51  *
52  * The volume returned is in units of the MPC collision cell volume, where
53  * the MPC collision cell is assumed to be cubic and of side length
54  * \f$ 1 \f$.
55  */
56  virtual FP getTotalAvailableVolume() const = 0;
57 }; //class Base
58 
59 } //namespace BoundaryCondition
60 } //namespace CUDA
61 } //namespace OpenMPCD
62 
63 #endif //OPENMPCD_CUDA_BOUNDARYCONDITION_BASE_HPP
OpenMPCD::CUDA::BoundaryCondition::Base::getTotalAvailableVolume
virtual FP getTotalAvailableVolume() const =0
Returns the total available volume.
OpenMPCD::FP
double FP
Default floating point type.
Definition: Types.hpp:13
Types.hpp
OpenMPCD::CUDA::BoundaryCondition::Base::Base
Base()
The constructor.
Definition: CUDA/BoundaryCondition/Base.hpp:32
OpenMPCD::CUDA::BoundaryCondition::Base::~Base
virtual ~Base()
The destructor.
Definition: CUDA/BoundaryCondition/Base.hpp:40
OpenMPCD::CUDA::BoundaryCondition::Base
Base class for boundary condition.
Definition: CUDA/BoundaryCondition/Base.hpp:26