Peano
Loading...
Searching...
No Matches
ParticleIdentifier.h
Go to the documentation of this file.
1// This file is part of the Peano project. For conditions of distribution and
2// use, please see the copyright notice at www.peano-framework.org
3
4#pragma once
5
6#include "tarch/la/Vector.h"
7
8namespace toolbox {
9 namespace particles {
10 namespace assignmentchecks {
11 namespace internal {
12
36
37 std::string particleName;
42 int treeID;
43
44 std::string toString() const;
45
46 bool numericalEquals(const ParticleIdentifier& rhs) const;
47 bool numericalSmaller(const ParticleIdentifier& rhs) const;
48
49 bool operator<(const ParticleIdentifier& rhs) const;
50
52 const std::string& particleName__,
56 const int particleID__,
57 const int treeId__
58 );
59
61 const std::string& particleName__,
64 const int vertexDepth__,
65 const int particleID__,
66 const int treeID__
67 );
68
75 );
76
83 static int getVertexDepth(
86 );
87 };
88
89 } // namespace internal
90 } // namespace assignmentchecks
91 } // namespace particles
92} // namespace toolbox
93
94
106);
107
111);
bool operator!=(const toolbox::particles::assignmentchecks::internal::ParticleIdentifier &lhs, const toolbox::particles::assignmentchecks::internal::ParticleIdentifier &rhs)
bool operator==(const toolbox::particles::assignmentchecks::internal::ParticleIdentifier &lhs, const toolbox::particles::assignmentchecks::internal::ParticleIdentifier &rhs)
Comparison operator.
Simple vector class.
Definition Vector.h:159
ParticleIdentifier is used as a key to the 'database' map to keep the particles' history as the map's...
bool numericalSmaller(const ParticleIdentifier &rhs) const
bool numericalEquals(const ParticleIdentifier &rhs) const
static int getVertexDepth(const tarch::la::Vector< Dimensions, double > &vertexX, const tarch::la::Vector< Dimensions, double > &vertexH)
Compute an integer vertex "depth" given its size We currently guess a domain size for a simulation an...
ParticleIdentifier(const std::string &particleName__, const tarch::la::Vector< Dimensions, double > &particleX__, const tarch::la::Vector< Dimensions, long long > &vertexInd__, const int vertexDepth__, const int particleID__, const int treeID__)
ParticleIdentifier(const std::string &particleName__, const tarch::la::Vector< Dimensions, double > &particleX__, const tarch::la::Vector< Dimensions, double > &vertexX, const tarch::la::Vector< Dimensions, double > &vertexH, const int particleID__, const int treeId__)
static tarch::la::Vector< Dimensions, long long > getVertexInd(const tarch::la::Vector< Dimensions, double > &vertexX, const tarch::la::Vector< Dimensions, double > &vertexH)
Compute an integer vertex "index" given its position and size.