peclet-dem
Performance-portable XPBD Discrete Element Method (Kokkos + ArborX)
Loading...
Searching...
No Matches
test_dem_scheme_c.cpp File Reference
#include <mpi.h>
#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 pf (const Vec< 3 > &a, const Vec< 3 > &b)
 
int main (int argc, char **argv)
 

Variables

static constexpr int kSteps = 15
 
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 kSkin = 0.5 * kRcut
 
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 51 of file test_dem_scheme_c.cpp.

Referenced by main().

◆ mi()

static double mi ( double  d,
double  L 
)
static

Definition at line 58 of file test_dem_scheme_c.cpp.

References L.

Referenced by pf().

◆ pf()

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

Definition at line 61 of file test_dem_scheme_c.cpp.

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

Referenced by main().

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 74 of file test_dem_scheme_c.cpp.

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

Variable Documentation

◆ kSteps

constexpr int kSteps = 15
staticconstexpr

Definition at line 32 of file test_dem_scheme_c.cpp.

Referenced by main().

◆ Ld

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

Definition at line 33 of file test_dem_scheme_c.cpp.

Referenced by main(), and pf().

◆ dmin

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

Definition at line 34 of file test_dem_scheme_c.cpp.

Referenced by main().

◆ kR

constexpr double kR = 0.4
staticconstexpr

Definition at line 35 of file test_dem_scheme_c.cpp.

◆ kRcut

constexpr double kRcut = 2.0 * kR
static

Definition at line 35 of file test_dem_scheme_c.cpp.

Referenced by main(), and pf().

◆ kSkin

constexpr double kSkin = 0.5 * kRcut
static

Definition at line 35 of file test_dem_scheme_c.cpp.

Referenced by main().

◆ kStiff

constexpr double kStiff = 0.2
staticconstexpr

Definition at line 36 of file test_dem_scheme_c.cpp.

Referenced by pf().

◆ kDt

constexpr double kDt = 0.02
static

Definition at line 36 of file test_dem_scheme_c.cpp.

Referenced by main().

◆ kDamp

constexpr double kDamp = 0.99
static

Definition at line 36 of file test_dem_scheme_c.cpp.

Referenced by main().