Multi Resolution Molecular Dynamics 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// Copyright 2026 Julian Friedrich Hille
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// https://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16#pragma once
17
18#include "data/Atoms.hpp"
19#include "data/Molecules.hpp"
20#include "data/Subdomain.hpp"
21#include "datatypes.hpp"
22
23namespace mrmd
24{
25namespace analysis
26{
31{
32private:
33 VectorView initialPosition_;
34 idx_t numItems_;
35
36public:
40 void reset(data::Atoms &atoms);
41
42 void reset(data::Molecules &molecules);
43
48 real_t calc(data::Atoms &atoms, const data::Subdomain &subdomain);
49
50 real_t calc(data::Molecules &molecules, const data::Subdomain &subdomain);
51
52 MeanSquareDisplacement() : initialPosition_("MeanSquareDisplacement::initialPosition", 0) {}
53};
54
55} // namespace analysis
56} // namespace mrmd
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:52
Everything to analyze or evaluate the current state of the simulation.
DeviceMolecules Molecules
Definition Molecules.hpp:176
DeviceAtoms Atoms
Definition Atoms.hpp:177
Top-level namespace of MRMD.
int64_t idx_t
Definition datatypes.hpp:91
Kokkos::View< real_t *[3]> VectorView
Definition datatypes.hpp:163
double real_t
Definition datatypes.hpp:99
Axis-aligned simulation box with a surrounding ghost layer.
Definition Subdomain.hpp:46