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

Short range elastic interactions with other particles. More...

#include <FrictionQPotSpringBlock/detail.h>

Public Member Functions

 Laplace1d (double k, size_type N)
 
double k () const
 Return the stiffness.
 
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.
 

Detailed Description

Short range elastic interactions with other particles.

The interactions are the short-range Laplacian \( \Delta u_i \): \( f_\mathrm{inter}^{(i)} = k (u_{i - 1} - 2 u_i + u_{i + 1}) \).

Definition at line 446 of file detail.h.

Constructor & Destructor Documentation

◆ Laplace1d()

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

Definition at line 458 of file detail.h.

Member Function Documentation

◆ force()

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

Update forces based on current slips.

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

Definition at line 475 of file detail.h.

◆ k()

double FrictionQPotSpringBlock::detail::Laplace1d::k ( ) const
inline

Return the stiffness.

Returns
double

Definition at line 466 of file detail.h.

Member Data Documentation

◆ m_k

double FrictionQPotSpringBlock::detail::Laplace1d::m_k
protected

Stiffness of the interactions.

Definition at line 449 of file detail.h.

◆ m_N

size_type FrictionQPotSpringBlock::detail::Laplace1d::m_N
protected

Number of particles.

Definition at line 448 of file detail.h.


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