Loading [MathJax]/extensions/TeX/AMSmath.js
ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Variables
_
a
b
c
f
g
i
k
m
n
o
p
r
s
w
Typedefs
a
b
c
d
e
f
g
h
i
l
m
o
p
q
t
v
Enumerations
Enumerator
d
h
m
n
r
s
t
Concepts
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
~
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
i
j
k
l
m
o
p
q
r
s
t
u
v
Enumerations
Enumerator
a
i
l
n
o
p
s
u
v
Related Symbols
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
v
w
Variables
a
b
c
g
h
i
m
p
s
t
u
v
w
Typedefs
Enumerations
Enumerator
Macros
c
d
f
g
h
i
k
m
n
o
p
q
r
s
t
u
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Concepts
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
"
28
#include "
PropagationPredicate.hpp
"
29
#include "thermostat.hpp"
30
31
struct
PropagationPredicateNPT
{
32
int
modes
;
33
PropagationPredicateNPT
(
int
default_propagation) {
34
modes
=
PropagationMode::TRANS_LANGEVIN_NPT
;
35
if
(default_propagation &
PropagationMode::TRANS_LANGEVIN_NPT
) {
36
modes
|=
PropagationMode::SYSTEM_DEFAULT
;
37
}
38
}
33
PropagationPredicateNPT
(
int
default_propagation) {
…
}
39
40
bool
operator()
(
int
prop)
const
{
return
(prop &
modes
); }
41
};
31
struct
PropagationPredicateNPT
{
…
};
42
43
using
ParticleRangeNPT
=
ParticleRangeFiltered<PropagationPredicateNPT>
;
44
45
namespace
System
{
46
class
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
*/
58
void
velocity_verlet_npt_step_1
(
ParticleRangeNPT
const
&particles,
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
*/
67
void
velocity_verlet_npt_step_2
(
ParticleRangeNPT
const
&particles,
68
double
time_step,
System::System
&system);
69
70
#endif
// NPT
ParticleRange.hpp
PropagationMode.hpp
PropagationPredicate.hpp
ParticleRangeFiltered
Definition
PropagationPredicate.hpp:40
System::System
Main system class.
Definition
core/system/System.hpp:79
config.hpp
This file contains the defaults for ESPResSo.
PropagationMode::SYSTEM_DEFAULT
@ SYSTEM_DEFAULT
Definition
PropagationMode.hpp:26
PropagationMode::TRANS_LANGEVIN_NPT
@ TRANS_LANGEVIN_NPT
Definition
PropagationMode.hpp:29
System
Definition
core/accumulators/AccumulatorBase.hpp:31
IsotropicNptThermostat
Thermostat for isotropic NPT dynamics.
Definition
core/thermostat.hpp:277
PropagationPredicateNPT
Definition
velocity_verlet_npt.hpp:31
PropagationPredicateNPT::PropagationPredicateNPT
PropagationPredicateNPT(int default_propagation)
Definition
velocity_verlet_npt.hpp:33
PropagationPredicateNPT::operator()
bool operator()(int prop) const
Definition
velocity_verlet_npt.hpp:40
PropagationPredicateNPT::modes
int modes
Definition
velocity_verlet_npt.hpp:32
velocity_verlet_npt_step_1
void velocity_verlet_npt_step_1(ParticleRangeNPT const &particles, IsotropicNptThermostat const &npt_iso, double time_step, System::System &system)
Special propagator for NpT isotropic.
Definition
velocity_verlet_npt.cpp:253
velocity_verlet_npt_step_2
void velocity_verlet_npt_step_2(ParticleRangeNPT const &particles, double time_step, System::System &system)
Final integration step of the Velocity Verlet+NpT integrator.
Definition
velocity_verlet_npt.cpp:260
src
core
integrators
velocity_verlet_npt.hpp
Generated on Fri Apr 25 2025 01:16:23 for ESPResSo by
1.9.8