FrictionQPotSpringBlock v0.22.7
Loading...
Searching...
No Matches
FrictionQPotSpringBlock::detail::LongRange1d Class Reference

Long range interactions. More...

#include <FrictionQPotSpringBlock/detail.h>

Public Member Functions

 LongRange1d (double k, double alpha, size_type N)
 
template<class T >
void force (const T &u, T &f)
 Update forces based on current slips.
 

Protected Attributes

size_type m_N
 Number of particles.
 
double m_k
 Stiffness of the interactions.
 
double m_alpha
 Range of interactions.
 
ptrdiff_t m_n
 Alias of m_N.
 
ptrdiff_t m_m
 Midpoint.
 
array_type::tensor< double, 1 > m_prefactor
 Prefactor for long-range interactions.
 

Detailed Description

Long range interactions.

The interactions decay as \( 1 / r^{d + \alpha} \). See e.g. https://doi.org/10.1103/PhysRevLett.126.025702

Definition at line 812 of file detail.h.

Constructor & Destructor Documentation

◆ LongRange1d()

FrictionQPotSpringBlock::detail::LongRange1d::LongRange1d ( double k,
double alpha,
size_type N )
inline
Parameters
kStiffness of the interactions.
alphaRange of interactions.
NNumber of particles.

Definition at line 829 of file detail.h.

Member Function Documentation

◆ force()

template<class T >
void FrictionQPotSpringBlock::detail::LongRange1d::force ( const T & u,
T & f )
inline

Update forces based on current slips.

Parameters
uSlip per particle.
fForce per particle (output).

Definition at line 850 of file detail.h.

Member Data Documentation

◆ m_alpha

double FrictionQPotSpringBlock::detail::LongRange1d::m_alpha
protected

Range of interactions.

Definition at line 816 of file detail.h.

◆ m_k

double FrictionQPotSpringBlock::detail::LongRange1d::m_k
protected

Stiffness of the interactions.

Definition at line 815 of file detail.h.

◆ m_m

ptrdiff_t FrictionQPotSpringBlock::detail::LongRange1d::m_m
protected

Midpoint.

Definition at line 818 of file detail.h.

◆ m_N

size_type FrictionQPotSpringBlock::detail::LongRange1d::m_N
protected

Number of particles.

Definition at line 814 of file detail.h.

◆ m_n

ptrdiff_t FrictionQPotSpringBlock::detail::LongRange1d::m_n
protected

Alias of m_N.

Definition at line 817 of file detail.h.

◆ m_prefactor

array_type::tensor<double, 1> FrictionQPotSpringBlock::detail::LongRange1d::m_prefactor
protected

Prefactor for long-range interactions.

Definition at line 819 of file detail.h.


The documentation for this class was generated from the following file: