OpenStructure
build-dev-doc
stage
include
ost
mol
mm
state_extractor.hh
Go to the documentation of this file.
1
//------------------------------------------------------------------------------
2
// This file is part of the OpenStructure project <www.openstructure.org>
3
//
4
// Copyright (C) 2008-2020 by the OpenStructure authors
5
//
6
// This library is free software; you can redistribute it and/or modify it under
7
// the terms of the GNU Lesser General Public License as published by the Free
8
// Software Foundation; either version 3.0 of the License, or (at your option)
9
// any later version.
10
// This library is distributed in the hope that it will be useful, but WITHOUT
11
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12
// FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
13
// details.
14
//
15
// You should have received a copy of the GNU Lesser General Public License
16
// along with this library; if not, write to the Free Software Foundation, Inc.,
17
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
//------------------------------------------------------------------------------
19
20
#ifndef OST_MM_STATE_EXTRACTOR_HH
21
#define OST_MM_STATE_EXTRACTOR_HH
22
23
#include <vector>
24
25
#include <boost/shared_ptr.hpp>
26
#include <
ost/geom/vec3.hh
>
27
28
namespace
OpenMM
{
29
class
Context;
//hacky way of telling the Context is around.
30
//will be included in source file to avoid
31
//dependencies on external libraries
32
33
}
34
35
namespace
ost
{
namespace
mol{
namespace
mm{
36
37
class
StateExtractor
{
38
39
public
:
40
41
static
void
ExtractPotentialEnergy
(boost::shared_ptr<OpenMM::Context> context,
42
Real
& energy);
43
44
static
void
ExtractKineticEnergy
(boost::shared_ptr<OpenMM::Context> context,
45
Real
& energy);
46
47
static
void
ExtractEnergy
(boost::shared_ptr<OpenMM::Context> context,
48
Real
& energy);
49
50
static
void
ExtractPositions
(boost::shared_ptr<OpenMM::Context> context,
51
geom::Vec3List
& positions,
52
bool
enforce_periodic_box =
false
,
53
bool
in_angstrom =
true
);
54
55
static
void
ExtractVelocities
(boost::shared_ptr<OpenMM::Context> context,
56
geom::Vec3List
& velocities);
57
58
static
void
ExtractForces
(boost::shared_ptr<OpenMM::Context> context,
59
geom::Vec3List
& forces);
60
61
};
62
63
64
}}}
//ns
65
66
#endif
geom::Vec3List
Definition:
vec3.hh:239
ost::mol::mm::StateExtractor
Definition:
state_extractor.hh:37
ost::mol::mm::StateExtractor::ExtractForces
static void ExtractForces(boost::shared_ptr< OpenMM::Context > context, geom::Vec3List &forces)
ost::mol::mm::StateExtractor::ExtractKineticEnergy
static void ExtractKineticEnergy(boost::shared_ptr< OpenMM::Context > context, Real &energy)
ost::mol::mm::StateExtractor::ExtractVelocities
static void ExtractVelocities(boost::shared_ptr< OpenMM::Context > context, geom::Vec3List &velocities)
ost::mol::mm::StateExtractor::ExtractPositions
static void ExtractPositions(boost::shared_ptr< OpenMM::Context > context, geom::Vec3List &positions, bool enforce_periodic_box=false, bool in_angstrom=true)
ost::mol::mm::StateExtractor::ExtractPotentialEnergy
static void ExtractPotentialEnergy(boost::shared_ptr< OpenMM::Context > context, Real &energy)
ost::mol::mm::StateExtractor::ExtractEnergy
static void ExtractEnergy(boost::shared_ptr< OpenMM::Context > context, Real &energy)
Real
float Real
Definition:
base.hh:44
OpenMM
Definition:
observer.hh:36
ost
Definition:
base.dox:1
vec3.hh
Generated by
1.9.1