ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
velocity_verlet_npt.hpp
Go to the documentation of this file.
1/*
2 * Copyright (C) 2010-2022 The ESPResSo project
3 *
4 * This file is part of ESPResSo.
5 *
6 * ESPResSo is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * ESPResSo is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#pragma once
21
22#include "config/config.hpp"
23
24#ifdef NPT
25
26#include "ParticleRange.hpp"
27#include "PropagationMode.hpp"
29#include "thermostat.hpp"
30
32 int modes;
39
40 bool operator()(int prop) const { return (prop & modes); }
41};
42
44
45namespace System {
46class System;
47}
48
49/** Special propagator for NpT isotropic.
50 * Propagate the velocities and positions. Integration steps before force
51 * calculation of the Velocity Verlet integrator:
52 * \f[ v(t+0.5 \Delta t) = v(t) + 0.5 \Delta t \cdot F(t)/m \f]
53 * \f[ x(t+\Delta t) = x(t) + \Delta t \cdot v(t+0.5 \Delta t) \f]
54 *
55 * Propagate pressure, box_length (2 times) and positions, rescale
56 * positions and velocities and check Verlet list criterion (only NpT).
57 */
59 IsotropicNptThermostat const &npt_iso,
60 double time_step, System::System &system);
61
62/** Final integration step of the Velocity Verlet+NpT integrator.
63 * Finalize instantaneous pressure calculation:
64 * \f[ v(t+\Delta t) = v(t+0.5 \Delta t)
65 * + 0.5 \Delta t \cdot F(t+\Delta t)/m \f]
66 */
68 IsotropicNptThermostat const &npt_iso,
69 double time_step);
70
71#endif // NPT
Main system class.
This file contains the defaults for ESPResSo.
Thermostat for isotropic NPT dynamics.
PropagationPredicateNPT(int default_propagation)
bool operator()(int prop) const
void velocity_verlet_npt_step_2(ParticleRangeNPT const &particles, IsotropicNptThermostat const &npt_iso, double time_step)
Final integration step of the Velocity Verlet+NpT integrator.
void velocity_verlet_npt_step_1(ParticleRangeNPT const &particles, IsotropicNptThermostat const &npt_iso, double time_step, System::System &system)
Special propagator for NpT isotropic.