Multi Resolution Molecular Dynamics 0.4.0
Multi Resolution Molecular Dynamics
Loading...
Searching...
No Matches
CountingPlane.hpp
Go to the documentation of this file.
1// Copyright 2025 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 "datatypes.hpp"
20
21namespace mrmd::analysis
22{
29{
30 Point3D pointOnPlane_;
31 Vector3D planeNormal_;
32 ScalarView distanceToPlane_;
33
34public:
35 CountingPlane(const Point3D &pointOnPlane, const Vector3D &planeNormal);
36
42 void startCounting(data::Atoms &atoms);
43
50 int64_t stopCounting(data::Atoms &atoms);
51};
52} // namespace mrmd::analysis
CountingPlane(const Point3D &pointOnPlane, const Vector3D &planeNormal)
Definition CountingPlane.cpp:22
int64_t stopCounting(data::Atoms &atoms)
Counts how many particles have crossed the plane since startCounting() was called.
Definition CountingPlane.cpp:45
void startCounting(data::Atoms &atoms)
Records the current positions of all particles relative to the plane.
Definition CountingPlane.cpp:27
Everything to analyze or evaluate the current state of the simulation.
DeviceAtoms Atoms
Definition Atoms.hpp:177
Kokkos::Array< real_t, 3 > Vector3D
Definition datatypes.hpp:101
Kokkos::Array< real_t, 3 > Point3D
Definition datatypes.hpp:100
Kokkos::View< real_t * > ScalarView
Definition datatypes.hpp:159