MRMD 0.4.0
Multi Resolution Molecular Dynamics
Loading...
Searching...
No Matches
MeanSquareDisplacement.hpp
Go to the documentation of this file.
1// Copyright 2024 Sebastian Eibl
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// https://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15#pragma once
16
17#include "data/Atoms.hpp"
18#include "data/Molecules.hpp"
19#include "data/Subdomain.hpp"
20#include "datatypes.hpp"
21
22namespace mrmd
23{
24namespace analysis
25{
27{
28private:
29 VectorView initialPosition_;
30 idx_t numItems_;
31
32public:
36 void reset(data::Atoms &atoms);
37
38 void reset(data::Molecules &molecules);
39
44 real_t calc(data::Atoms &atoms, const data::Subdomain &subdomain);
45
46 real_t calc(data::Molecules &molecules, const data::Subdomain &subdomain);
47
48 MeanSquareDisplacement() : initialPosition_("MeanSquareDisplacement::initialPosition", 0) {}
49};
50
51} // namespace analysis
52} // namespace mrmd
Definition MeanSquareDisplacement.hpp:27
void reset(data::Atoms &atoms)
Store current positions as a starting point.
Definition MeanSquareDisplacement.cpp:24
real_t calc(data::Atoms &atoms, const data::Subdomain &subdomain)
Compare current positions against the starting point.
Definition MeanSquareDisplacement.cpp:60
MeanSquareDisplacement()
Definition MeanSquareDisplacement.hpp:48
Data structure for storing information about atoms on the host and the device.
Definition Atoms.hpp:35
Definition Molecules.hpp:29
Definition BerendsenBarostat.cpp:18
Kokkos::View< real_t *[3]> VectorView
Definition datatypes.hpp:163
int64_t idx_t
Definition datatypes.hpp:91
double real_t
Definition datatypes.hpp:99
|X|O|OOOOOOOOOO |X|O|OOOOOOOOOO |X|O+-------— <– minInnerCorner |X|OOOOOOOOOOOO |X+---------— <– minC...
Definition Subdomain.hpp:38