PeriDEM 0.2.0
PeriDEM -- Peridynamics-based high-fidelity model for granular media
|
A class to implement constant influence function. More...
#include <influenceFn.h>
Public Member Functions | |
ConstInfluenceFn (const std::vector< double > ¶ms, const size_t &dim) | |
Constructor. | |
double | getInfFn (const double &r) const override |
Returns the value of influence function. | |
double | getMoment (const size_t &i) const override |
Returns the moment of influence function. | |
std::string | printStr (int nt, int lvl) const override |
Returns the string containing printable information about the object. | |
void | print (int nt, int lvl) const override |
Prints the information about the object. | |
void | print () const override |
Prints the information about the object. | |
Public Member Functions inherited from material::BaseInfluenceFn | |
BaseInfluenceFn ()=default | |
Constructor. | |
Private Attributes | |
double | d_a0 |
Constant such that J(r) = Constant. | |
A class to implement constant influence function.
Definition at line 79 of file influenceFn.h.
material::ConstInfluenceFn::ConstInfluenceFn | ( | const std::vector< double > & | params, |
const size_t & | dim | ||
) |
Constructor.
params | List of parameters |
dim | Dimension |
Definition at line 14 of file influenceFn.cpp.
References d_a0.
|
overridevirtual |
Returns the value of influence function.
r | Reference (initial) bond length |
Implements material::BaseInfluenceFn.
Definition at line 21 of file influenceFn.cpp.
|
overridevirtual |
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. \]
i | ith moment |
Implements material::BaseInfluenceFn.
Definition at line 25 of file influenceFn.cpp.
Referenced by printStr().
|
inlineoverridevirtual |
Prints the information about the object.
Reimplemented from material::BaseInfluenceFn.
Definition at line 140 of file influenceFn.h.
References print().
Referenced by print().
|
inlineoverridevirtual |
Prints the information about the object.
nt | Number of tabs to append before printing |
lvl | Information level (higher means more information) |
Reimplemented from material::BaseInfluenceFn.
Definition at line 135 of file influenceFn.h.
References printStr().
|
inlineoverridevirtual |
Returns the string containing printable information about the object.
nt | Number of tabs to append before printing |
lvl | Information level (higher means more information) |
Reimplemented from material::BaseInfluenceFn.
Definition at line 115 of file influenceFn.h.
References d_a0, getMoment(), and util::io::getTabS().
Referenced by print().
|
private |
Constant such that J(r) = Constant.
Definition at line 144 of file influenceFn.h.
Referenced by ConstInfluenceFn(), and printStr().