Gromacs  2027.0-dev-20261009-dd255a67
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Enumerations | Functions | Variables
gmx::test::anonymous_namespace{grid.cpp} Namespace Reference

Classes

class  GridTest
 Class that sets up and holds a search grid. More...
 

Enumerations

enum  CoordDistribution : int {
  CoordDistribution::Uniform, CoordDistribution::Column, CoordDistribution::Layer, CoordDistribution::Block,
  Count
}
 

Functions

std::vector< RVec > generateCoords (const CoordDistribution coordDistribution)
 Returns coordinates for the given setup.
 

Variables

constexpr int sc_numThreads = 1
 
static const RVec sc_lowerCorner = { 0, 0, 0 }
 Lower corner for the grids.
 
static const EnumerationArray
< CoordDistribution, RVec > 
sc_upperCorner
 Upper corners for the grids. More...
 
static const std::array< RVec, 4 > sc_cellX
 A list of 4 particle coordinates that fill a grid cell with uniform x, y and z-distribution. More...
 

Enumeration Type Documentation

enum gmx::test::anonymous_namespace{grid.cpp}::CoordDistribution : int
strong
Enumerator
Uniform 

Fully uniform distribution over the whole volume.

Column 

A column of particles extending over the whole z-range.

Layer 

A layer of particles extending over the whole x/y-range.

Block 

A block of particles a corner.

Variable Documentation

const std::array<RVec, 4> gmx::test::anonymous_namespace{grid.cpp}::sc_cellX
static
Initial value:
{ { { 0.25_real, 0.25_real, 0.25_real },
{ 0.25_real, 0.75_real, 0.25_real },
{ 0.25_real, 0.25_real, 0.75_real },
{ 0.25_real, 0.75_real, 0.75_real } } }

A list of 4 particle coordinates that fill a grid cell with uniform x, y and z-distribution.

const EnumerationArray<CoordDistribution, RVec> gmx::test::anonymous_namespace{grid.cpp}::sc_upperCorner
static
Initial value:
= {
{ { 2, 3, 5 }, { 16, 8, 1 }, { 2, 2, 20 }, { 4, 4, 4 } }
}

Upper corners for the grids.