Multi Resolution Molecular Dynamics 0.4.0
Multi Resolution Molecular Dynamics
Loading...
Searching...
No Matches
mrmd Namespace Reference

Top-level namespace of MRMD. More...

Namespaces

namespace  action
 Everything to evolve the simulation physically.
namespace  analysis
 Everything to analyze or evaluate the current state of the simulation.
namespace  communication
 Everything related to ghost particles and periodic boundary conditions.
namespace  data
 All fundamental data containers used in MRMD.
namespace  io
 Save and load simulation data.
namespace  test
 Setup helpers for easier test writing.
namespace  util
 Utility functions used throughout the library.
namespace  weighting_function
 Weighting functions for different interfaces and region geometries.
namespace  toSI
 Conversion factors from the internal unit system to SI units.
namespace  bin_op
 GPU compatible binary operators.

Concepts

concept  OneCoordinatePredicate
 Concept for predicates that take one coordinate as input, e.g.
concept  OnePositionPredicate
 Concept for predicates that take one position as input, e.g.
concept  TwoPositionsPredicate
 Concept for predicates that take two positions as input, e.g.

Typedefs

using idx_t = int64_t
using real_t = double
using Point3D = Kokkos::Array<real_t, 3>
using Vector3D = Kokkos::Array<real_t, 3>
using IndexView = Kokkos::View<idx_t*>
using IntView = Kokkos::View<idx_t*>
using IntScatterView = Kokkos::Experimental::ScatterView<idx_t*>
using PairView = Kokkos::View<idx_t* [2]>
using SingleView = Kokkos::View<real_t>
using SingleScatterView = Kokkos::Experimental::ScatterView<real_t>
using ScalarView = Kokkos::View<real_t*>
using ScalarScatterView = Kokkos::Experimental::ScatterView<real_t*>
using MultiView = Kokkos::View<real_t**>
using MultiScatterView = Kokkos::Experimental::ScatterView<real_t**>
using VectorView = Kokkos::View<real_t* [3]>
using VectorScatterView = Kokkos::Experimental::ScatterView<real_t* [3]>
using HostType
using DeviceType
using LinkedCellList = Cabana::LinkedCellList<typename DeviceType::memory_space>
using HalfVerletList
using FullVerletList
using HalfNeighborList = Cabana::NeighborList<HalfVerletList>
using FullNeighborList = Cabana::NeighborList<FullVerletList>
using HalfVerletList

Enumerations

enum class  AXIS : idx_t { X = 0 , Y = 1 , Z = 2 }

Functions

template<typename T>
KOKKOS_INLINE_FUNCTION constexpr unsigned int uint_c (const T &val)
template<typename T>
KOKKOS_INLINE_FUNCTION constexpr uint8_t uint8_c (const T &val)
template<typename T>
KOKKOS_INLINE_FUNCTION constexpr uint16_t uint16_c (const T &val)
template<typename T>
KOKKOS_INLINE_FUNCTION constexpr uint32_t uint32_c (const T &val)
template<typename T>
KOKKOS_INLINE_FUNCTION constexpr uint64_t uint64_c (const T &val)
template<typename T>
KOKKOS_INLINE_FUNCTION constexpr int int_c (const T &val)
template<typename T>
KOKKOS_INLINE_FUNCTION constexpr int8_t int8_c (const T &val)
template<typename T>
KOKKOS_INLINE_FUNCTION constexpr int16_t int16_c (const T &val)
template<typename T>
KOKKOS_INLINE_FUNCTION constexpr int32_t int32_c (const T &val)
template<typename T>
KOKKOS_INLINE_FUNCTION constexpr int64_t int64_c (const T &val)
template<typename T>
KOKKOS_INLINE_FUNCTION constexpr idx_t idx_c (const T &val)
KOKKOS_INLINE_FUNCTION constexpr real_t operator""_r (const long double val)
KOKKOS_INLINE_FUNCTION constexpr real_t operator""_r (const unsigned long long val)
template<typename T>
KOKKOS_INLINE_FUNCTION constexpr real_t real_c (T t)
template<typename T>
KOKKOS_INLINE_FUNCTION constexpr double double_c (const T &val)
template<typename T>
KOKKOS_INLINE_FUNCTION constexpr float float_c (const T &val)
template<typename FLOAT>
KOKKOS_INLINE_FUNCTION bool isFloatEqual (const FLOAT &lhs, const FLOAT &rhs, const FLOAT &epsilon=std::numeric_limits< FLOAT >::epsilon())
template<class Enum>
KOKKOS_INLINE_FUNCTION constexpr std::underlying_type_t< Enum > to_underlying (Enum e) noexcept
void initialize (int argc, char **argv)
void initialize ()
void finalize ()
void CHECK_MPI (const int &status)

Variables

static constexpr int DIMENSIONS = 3
 number of spatial dimensions
constexpr auto pi = std::numbers::pi_v<real_t>
constexpr auto inv_sqrtpi = std::numbers::inv_sqrtpi_v<real_t>

Detailed Description

Top-level namespace of MRMD.

Besides the sub-namespaces listed below it holds the fundamental types and constants shared by all of them: real_t and idx_t, mrmd::Point3D and mrmd::Vector3D, mrmd::DIMENSIONS and mrmd::VECTOR_LENGTH, as well as mrmd::initialize() and mrmd::finalize().

Typedef Documentation

◆ DeviceType

Initial value:
Kokkos::Device<Kokkos::DefaultExecutionSpace, Kokkos::DefaultExecutionSpace::memory_space>

◆ FullNeighborList

using mrmd::FullNeighborList = Cabana::NeighborList<FullVerletList>

◆ FullVerletList

Initial value:
Cabana::VerletList<Kokkos::DefaultExecutionSpace::memory_space,
Cabana::FullNeighborTag,
Cabana::VerletLayout2D,
Cabana::TeamOpTag>

◆ HalfNeighborList

using mrmd::HalfNeighborList = Cabana::NeighborList<HalfVerletList>

◆ HalfVerletList [1/2]

◆ HalfVerletList [2/2]

Initial value:
Cabana::VerletList<Kokkos::DefaultExecutionSpace::memory_space,
Cabana::HalfNeighborTag,
Cabana::VerletLayout2D,
Cabana::TeamOpTag>

◆ HostType

Initial value:
Kokkos::Device<Kokkos::DefaultHostExecutionSpace,
Kokkos::DefaultHostExecutionSpace::memory_space>

◆ idx_t

using mrmd::idx_t = int64_t

◆ IndexView

using mrmd::IndexView = Kokkos::View<idx_t*>

◆ IntScatterView

using mrmd::IntScatterView = Kokkos::Experimental::ScatterView<idx_t*>

◆ IntView

using mrmd::IntView = Kokkos::View<idx_t*>

◆ LinkedCellList

using mrmd::LinkedCellList = Cabana::LinkedCellList<typename DeviceType::memory_space>

◆ MultiScatterView

using mrmd::MultiScatterView = Kokkos::Experimental::ScatterView<real_t**>

◆ MultiView

using mrmd::MultiView = Kokkos::View<real_t**>

◆ PairView

using mrmd::PairView = Kokkos::View<idx_t* [2]>

◆ Point3D

using mrmd::Point3D = Kokkos::Array<real_t, 3>

◆ real_t

using mrmd::real_t = double

◆ ScalarScatterView

using mrmd::ScalarScatterView = Kokkos::Experimental::ScatterView<real_t*>

◆ ScalarView

using mrmd::ScalarView = Kokkos::View<real_t*>

◆ SingleScatterView

using mrmd::SingleScatterView = Kokkos::Experimental::ScatterView<real_t>

◆ SingleView

using mrmd::SingleView = Kokkos::View<real_t>

◆ Vector3D

using mrmd::Vector3D = Kokkos::Array<real_t, 3>

◆ VectorScatterView

using mrmd::VectorScatterView = Kokkos::Experimental::ScatterView<real_t* [3]>

◆ VectorView

using mrmd::VectorView = Kokkos::View<real_t* [3]>

Enumeration Type Documentation

◆ AXIS

enum class mrmd::AXIS : idx_t
strong
Enumerator
X 

index of the x coordinate in vector views

Y 

index of the y coordinate in vector views

Z 

index of the z coordinate in vector views

Function Documentation

◆ CHECK_MPI()

void mrmd::CHECK_MPI ( const int & status)
inline

◆ double_c()

template<typename T>
KOKKOS_INLINE_FUNCTION constexpr double mrmd::double_c ( const T & val)
constexpr

◆ finalize()

void mrmd::finalize ( )

◆ float_c()

template<typename T>
KOKKOS_INLINE_FUNCTION constexpr float mrmd::float_c ( const T & val)
constexpr

◆ idx_c()

template<typename T>
KOKKOS_INLINE_FUNCTION constexpr idx_t mrmd::idx_c ( const T & val)
constexpr

◆ initialize() [1/2]

void mrmd::initialize ( )

◆ initialize() [2/2]

void mrmd::initialize ( int argc,
char ** argv )

◆ int16_c()

template<typename T>
KOKKOS_INLINE_FUNCTION constexpr int16_t mrmd::int16_c ( const T & val)
constexpr

◆ int32_c()

template<typename T>
KOKKOS_INLINE_FUNCTION constexpr int32_t mrmd::int32_c ( const T & val)
constexpr

◆ int64_c()

template<typename T>
KOKKOS_INLINE_FUNCTION constexpr int64_t mrmd::int64_c ( const T & val)
constexpr

◆ int8_c()

template<typename T>
KOKKOS_INLINE_FUNCTION constexpr int8_t mrmd::int8_c ( const T & val)
constexpr

◆ int_c()

template<typename T>
KOKKOS_INLINE_FUNCTION constexpr int mrmd::int_c ( const T & val)
constexpr

◆ isFloatEqual()

template<typename FLOAT>
KOKKOS_INLINE_FUNCTION bool mrmd::isFloatEqual ( const FLOAT & lhs,
const FLOAT & rhs,
const FLOAT & epsilon = std::numeric_limits<FLOAT>::epsilon() )

◆ operator""_r() [1/2]

KOKKOS_INLINE_FUNCTION constexpr real_t mrmd::operator""_r ( const long double val)
constexpr

◆ operator""_r() [2/2]

KOKKOS_INLINE_FUNCTION constexpr real_t mrmd::operator""_r ( const unsigned long long val)
constexpr

◆ real_c()

template<typename T>
KOKKOS_INLINE_FUNCTION constexpr real_t mrmd::real_c ( T t)
constexpr

◆ to_underlying()

template<class Enum>
KOKKOS_INLINE_FUNCTION constexpr std::underlying_type_t< Enum > mrmd::to_underlying ( Enum e)
constexprnoexcept

◆ uint16_c()

template<typename T>
KOKKOS_INLINE_FUNCTION constexpr uint16_t mrmd::uint16_c ( const T & val)
constexpr

◆ uint32_c()

template<typename T>
KOKKOS_INLINE_FUNCTION constexpr uint32_t mrmd::uint32_c ( const T & val)
constexpr

◆ uint64_c()

template<typename T>
KOKKOS_INLINE_FUNCTION constexpr uint64_t mrmd::uint64_c ( const T & val)
constexpr

◆ uint8_c()

template<typename T>
KOKKOS_INLINE_FUNCTION constexpr uint8_t mrmd::uint8_c ( const T & val)
constexpr

◆ uint_c()

template<typename T>
KOKKOS_INLINE_FUNCTION constexpr unsigned int mrmd::uint_c ( const T & val)
constexpr

Variable Documentation

◆ DIMENSIONS

int mrmd::DIMENSIONS = 3
staticconstexpr

number of spatial dimensions

◆ inv_sqrtpi

auto mrmd::inv_sqrtpi = std::numbers::inv_sqrtpi_v<real_t>
constexpr

◆ pi

auto mrmd::pi = std::numbers::pi_v<real_t>
constexpr