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
23
namespace
mrmd
24
{
25
namespace
analysis
26
{
30
class
MeanSquareDisplacement
31
{
32
private
:
33
VectorView
initialPosition_;
34
idx_t
numItems_;
35
36
public
:
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
Atoms.hpp
Molecules.hpp
Subdomain.hpp
mrmd::analysis::MeanSquareDisplacement::reset
void reset(data::Atoms &atoms)
Store current positions as a starting point.
Definition
MeanSquareDisplacement.cpp:24
mrmd::analysis::MeanSquareDisplacement::calc
real_t calc(data::Atoms &atoms, const data::Subdomain &subdomain)
Compare current positions against the starting point.
Definition
MeanSquareDisplacement.cpp:60
mrmd::analysis::MeanSquareDisplacement::MeanSquareDisplacement
MeanSquareDisplacement()
Definition
MeanSquareDisplacement.hpp:52
datatypes.hpp
mrmd::analysis
Everything to analyze or evaluate the current state of the simulation.
mrmd::data::Molecules
DeviceMolecules Molecules
Definition
Molecules.hpp:176
mrmd::data::Atoms
DeviceAtoms Atoms
Definition
Atoms.hpp:177
mrmd
Top-level namespace of MRMD.
mrmd::idx_t
int64_t idx_t
Definition
datatypes.hpp:91
mrmd::VectorView
Kokkos::View< real_t *[3]> VectorView
Definition
datatypes.hpp:163
mrmd::real_t
double real_t
Definition
datatypes.hpp:99
mrmd::data::Subdomain
Axis-aligned simulation box with a surrounding ghost layer.
Definition
Subdomain.hpp:46
mrmd
analysis
MeanSquareDisplacement.hpp
Generated by
1.15.0