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

Classes

class  GromppFrozenParticlesTest
 Test fixture for grompp with frozen particles, parametrized by the integrator. More...
 
class  GromppDeformFlowSpecialParticlesTest
 Test fixture for the flow profile of special particles, parametrized by whether grompp generates the velocities. More...
 
class  GromppAllBondsConstraintsNoteTest
 Test fixture for the note discouraging constraints = all-bonds. More...
 
class  GromppTest
 Test fixture for grompp. More...
 

Typedefs

using MdpParams = bool
 Test parameters.
 
using AllBondsNoteParams = std::tuple< std::string, bool >
 Test parameters: simulation database name, and whether the all-bonds note is expected.
 

Functions

std::string integratorTestName (const testing::TestParamInfo< IntegrationAlgorithm > &info)
 Returns a test name for the integrator that is a valid GoogleTest identifier.
 
void checkVelocitiesOfFrozenParticles (const std::filesystem::path &tprFileName, const int numFrozenParticles, ArrayRef< const RVec > expectedVelocities)
 Checks the velocities in tprFileName. More...
 
void writeSpcAndMethanolFrame (const std::filesystem::path &trrFileName)
 Writes a trajectory frame of spc-and-methanol to trrFileName. More...
 

Variables

const char c_frozenMethanolMdpSettings []
 Settings for MD of spc-and-methanol with a frozen methanol molecule. More...
 
const std::vector< RVec > c_spcAndMethanolFrameVelocities
 The velocities of the trajectory frame of writeSpcAndMethanolFrame(), non-zero for all particles. More...
 

Function Documentation

void gmx::test::anonymous_namespace{grompp.cpp}::checkVelocitiesOfFrozenParticles ( const std::filesystem::path &  tprFileName,
const int  numFrozenParticles,
ArrayRef< const RVec >  expectedVelocities 
)

Checks the velocities in tprFileName.

Checks that the velocities are zero for the fully frozen first numFrozenParticles atoms and non-zero for all others. When expectedVelocities is not empty, the velocities of the atoms that are not frozen must be equal to it.

void gmx::test::anonymous_namespace{grompp.cpp}::writeSpcAndMethanolFrame ( const std::filesystem::path &  trrFileName)

Writes a trajectory frame of spc-and-methanol to trrFileName.

The frame has the coordinates and box of the configuration file, but the velocities c_spcAndMethanolFrameVelocities for all particles, including the ones that will be frozen.

Variable Documentation

const char gmx::test::anonymous_namespace{grompp.cpp}::c_frozenMethanolMdpSettings[]
Initial value:
=
"integrator = md\n"
"nsteps = 10\n"
"cutoff-scheme = Verlet\n"
"coulombtype = Reaction-Field\n"
"rcoulomb = 0.9\n"
"rvdw = 0.9\n"
"freezegrps = Methanol\n"
"freezedim = Y Y Y\n"

Settings for MD of spc-and-methanol with a frozen methanol molecule.

const std::vector<RVec> gmx::test::anonymous_namespace{grompp.cpp}::c_spcAndMethanolFrameVelocities
Initial value:
= {
{ 0.1_real, -0.2_real, 0.3_real }, { -0.4_real, 0.5_real, -0.6_real },
{ 0.7_real, -0.8_real, 0.9_real }, { -1.0_real, 1.1_real, -1.2_real },
{ 1.3_real, -1.4_real, 1.5_real }, { -1.6_real, 1.7_real, -1.8_real }
}

The velocities of the trajectory frame of writeSpcAndMethanolFrame(), non-zero for all particles.