PeriDEM 0.3.0
PeriDEM -- Peridynamics-based high-fidelity model for granular media
Loading...
Searching...
No Matches
anonymous_namespace{material.h} Namespace Reference

Functions

double getGlobalInfFn (const double &r)
 Returns the value of influence function.
 
double getGlobalMoment (const size_t &i)
 Returns the moment of influence function.
 
double getModelBulkModulus (const size_t &dim, const bool &plane_strain, const double &K, const double &G)
 Returns the bulk modulus the model works with, from table K and G.
 

Variables

size_t dimension = 0
 Dimension of the domain.
 
bool is_plane_strain = false
 Is plane-stress condition active.
 
std::shared_ptr< material::BaseInfluenceFn > influence_fn
 Store pointer to influence function globally.
 

Function Documentation

◆ getGlobalInfFn()

double anonymous_namespace{material.h}::getGlobalInfFn ( const double &  r)

Returns the value of influence function.

Parameters
rReference (initial) bond length
Returns
value Influence function at r

Definition at line 42 of file material.h.

42 {
43 return influence_fn->getInfFn(r);
44}
std::shared_ptr< material::BaseInfluenceFn > influence_fn
Store pointer to influence function globally.
Definition material.h:34

References influence_fn.

◆ getGlobalMoment()

double anonymous_namespace{material.h}::getGlobalMoment ( const size_t &  i)

Returns the moment of influence function.

If \( J(r) \) is the influence function for \( r\in [0,1)\) then \( i^{th} \) moment is given by

\[ M_i = \int_0^1 J(r) r^i dr. \]

Parameters
iith moment
Returns
moment Moment

Definition at line 55 of file material.h.

55{return influence_fn->getMoment(i);}

References influence_fn.

◆ getModelBulkModulus()

double anonymous_namespace{material.h}::getModelBulkModulus ( const size_t &  dim,
const bool &  plane_strain,
const double &  K,
const double &  G 
)

Returns the bulk modulus the model works with, from table K and G.

3D uses K. 2D uses the in-plane bulk modulus: \( K + G/3 \) for plane strain and \( 9KG/(3K + 4G) \) for plane stress (Yang et al. 2024, JMPS 191, eq. 10).

Parameters
dimDimension
plane_strainTrue for plane strain, false for plane stress
KBulk modulus
GShear modulus
Returns
kappa Bulk modulus used by the model

Definition at line 70 of file material.h.

71 {
72 if (dim != 2)
73 return K;
74 return plane_strain ? K + G / 3. : 9. * K * G / (3. * K + 4. * G);
75}

Variable Documentation

◆ dimension

size_t anonymous_namespace{material.h}::dimension = 0

Dimension of the domain.

Definition at line 28 of file material.h.

◆ influence_fn

std::shared_ptr<material::BaseInfluenceFn> anonymous_namespace{material.h}::influence_fn

Store pointer to influence function globally.

Definition at line 34 of file material.h.

Referenced by getGlobalInfFn(), and getGlobalMoment().

◆ is_plane_strain

bool anonymous_namespace{material.h}::is_plane_strain = false

Is plane-stress condition active.

Definition at line 31 of file material.h.