PeriDEM 0.2.0
PeriDEM -- Peridynamics-based high-fidelity model for granular media
|
A class to implement linear influence function. More...
#include <influenceFn.h>
Public Member Functions | |
LinearInfluenceFn (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 |
Constants such that J(r) = d_a0 + d_a1 * r. | |
double | d_a1 |
Constants such that J(r) = d_a0 + d_a1 * r. | |
A class to implement linear influence function.
\( J(r) = a0 + a1 r \)
Definition at line 151 of file influenceFn.h.
material::LinearInfluenceFn::LinearInfluenceFn | ( | const std::vector< double > & | params, |
const size_t & | dim | ||
) |
Constructor.
params | List of parameters |
dim | Dimension |
Definition at line 29 of file influenceFn.cpp.
|
overridevirtual |
Returns the value of influence function.
r | Reference (initial) bond length |
Implements material::BaseInfluenceFn.
Definition at line 55 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 59 of file influenceFn.cpp.
Referenced by printStr().
|
inlineoverridevirtual |
Prints the information about the object.
Reimplemented from material::BaseInfluenceFn.
Definition at line 213 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 208 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 187 of file influenceFn.h.
References d_a0, d_a1, getMoment(), and util::io::getTabS().
Referenced by print().
|
private |
Constants such that J(r) = d_a0 + d_a1 * r.
Definition at line 217 of file influenceFn.h.
Referenced by LinearInfluenceFn(), and printStr().
|
private |
Constants such that J(r) = d_a0 + d_a1 * r.
Definition at line 220 of file influenceFn.h.
Referenced by LinearInfluenceFn(), and printStr().