Gromacs
2026.0-dev-20250318-75a6c20
|
#include <gromacs/nbnxm/tests/testsystem.h>
Description of the system used for testing.
Public Member Functions | |
TestSystem (LJCombinationRule ljCombinationRule) | |
Constructor. More... | |
Static Public Member Functions | |
static real | maxCharge () |
Returns the absolute value of the largest partial charge of the atoms in the system. | |
Public Attributes | |
int | numAtomTypes |
Number of different atom types in test system. | |
std::vector< real > | nonbondedParameters |
Storage for parameters for short range interactions. | |
std::vector< int > | atomTypes |
Storage for atom type parameters. | |
std::vector< real > | charges |
Storage for atom partial charges. | |
std::vector< int32_t > | atomInfo |
Atom info. | |
ListOfLists< int > | excls |
Information about exclusions. | |
std::vector< RVec > | coordinates |
Storage for atom positions. | |
matrix | box |
System simulation box. | |
Static Public Attributes | |
static constexpr int | sc_numEnergyGroups = 3 |
The number of energy groups used by the test system. | |
gmx::test::TestSystem::TestSystem | ( | LJCombinationRule | ljCombinationRule | ) |
Constructor.
Generates test system of a cubic box partially filled with 81 water molecules. It has parts with uncharged molecules, normal SPC/E and part with full LJ.
It assigns energy groups in round-robin style based on the largest number of energy groups that might be being tested. This is not general enough to work if we would extend the number of energy-group cases that we test.