|
faunus
|
The cuboid geometry with periodic boundary conditions possibly applied in all three directions. More...
#include <geometry.h>


Public Member Functions | |
| Point | getLength () const override |
| Side lengths. | |
| double | getVolume (int dim=3) const final |
| Get volume. | |
| void | setLength (const Point &len) |
| Point | setVolume (double volume, VolumeMethod method=VolumeMethod::ISOTROPIC) override |
| Set volume. | |
| Point | vdist (const Point &a, const Point &b) const override |
| Minimum distance vector b->a. | |
| void | boundary (Point &a) const override |
| Apply boundary conditions. | |
| bool | collision (const Point &a) const override |
| Overlap with boundaries. | |
| void | randompos (Point &m, Random &rand) const override |
| Generate random position. | |
| void | from_json (const json &j) override |
| void | to_json (json &j) const override |
| Cuboid (const Point &side_length) | |
| std::unique_ptr< GeometryImplementation > | clone () const override |
| A unique pointer to a copy of self. | |
Public Member Functions inherited from Faunus::Geometry::GeometryBase | |
| BoundaryFunction | getBoundaryFunc () const |
| Lambda for applying boundary conditions on a point. | |
| DistanceFunction | getDistanceFunc () const |
| Lambda for calculating the (minimum) distance vector between two positions. | |
Protected Attributes | |
| Point | box |
| Point | box_half |
| Point | box_inv |
Additional Inherited Members | |
Public Attributes inherited from Faunus::Geometry::GeometryImplementation | |
| BoundaryCondition | boundary_conditions |
Protected Member Functions inherited from Faunus::Geometry::GeometryBase | |
| template<typename T = double> | |
| int | anint (T x) const |
| Round to int. | |
The cuboid geometry with periodic boundary conditions possibly applied in all three directions.
1.8.13