peclet-dem
Performance-portable XPBD Discrete Element Method (Kokkos + ArborX)
Loading...
Searching...
No Matches
test_dem_scheme_b.cpp File Reference
#include <mpi.h>
#include <algorithm>
#include <array>
#include <cmath>
#include <cstdint>
#include <cstdio>
#include <cstring>
#include <vector>
#include "peclet/core/common/types.hpp"
#include "peclet/core/decomp/block_decomposer.hpp"
#include "peclet/core/halo/particle_halo_topology.hpp"
#include "peclet/core/halo/particle_migrator.hpp"

Go to the source code of this file.

Classes

struct  F3
 
struct  Pay
 

Functions

static double frac (std::uint64_t x, int s)
 
static double mi (double d, double L)
 
static F3 pair_force (const Vec< 3 > &a, const Vec< 3 > &b)
 
int main (int argc, char **argv)
 

Variables

static constexpr int kSteps = 25
 
static const double Ld [3] = {10.0, 8.0, 6.0}
 
static const double dmin [3] = {0, 0, 0}
 
static constexpr double kR = 0.4
 
static constexpr double kRcut = 2.0 * kR
 
static constexpr double kStiff = 0.2
 
static constexpr double kDt = 0.02
 
static constexpr double kDamp = 0.99
 

Function Documentation

◆ frac()

static double frac ( std::uint64_t  x,
int  s 
)
static

Definition at line 50 of file test_dem_scheme_b.cpp.

Referenced by main().

◆ mi()

static double mi ( double  d,
double  L 
)
static

Definition at line 57 of file test_dem_scheme_b.cpp.

References L.

Referenced by pair_force().

◆ pair_force()

static F3 pair_force ( const Vec< 3 > &  a,
const Vec< 3 > &  b 
)
static

Definition at line 62 of file test_dem_scheme_b.cpp.

References kRcut, kStiff, Ld, mi(), and F3::v.

Referenced by main().

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 75 of file test_dem_scheme_b.cpp.

References dmin, frac(), Pay::id, kDamp, kDt, kRcut, kSteps, Ld, pair_force(), F3::v, and Pay::vel.

Variable Documentation

◆ kSteps

constexpr int kSteps = 25
staticconstexpr

Definition at line 31 of file test_dem_scheme_b.cpp.

Referenced by main().

◆ Ld

const double Ld[3] = {10.0, 8.0, 6.0}
static

Definition at line 32 of file test_dem_scheme_b.cpp.

Referenced by main(), and pair_force().

◆ dmin

const double dmin[3] = {0, 0, 0}
static

Definition at line 33 of file test_dem_scheme_b.cpp.

Referenced by main().

◆ kR

constexpr double kR = 0.4
staticconstexpr

Definition at line 34 of file test_dem_scheme_b.cpp.

◆ kRcut

constexpr double kRcut = 2.0 * kR
static

Definition at line 34 of file test_dem_scheme_b.cpp.

Referenced by main(), and pair_force().

◆ kStiff

constexpr double kStiff = 0.2
static

Definition at line 34 of file test_dem_scheme_b.cpp.

Referenced by pair_force().

◆ kDt

constexpr double kDt = 0.02
static

Definition at line 34 of file test_dem_scheme_b.cpp.

Referenced by main().

◆ kDamp

constexpr double kDamp = 0.99
static

Definition at line 34 of file test_dem_scheme_b.cpp.

Referenced by main().