PeriDEM 0.2.0
PeriDEM -- Peridynamics-based high-fidelity model for granular media
|
A base class for computing influence function. More...
#include <influenceFn.h>
Public Member Functions | |
BaseInfluenceFn ()=default | |
Constructor. | |
virtual double | getInfFn (const double &r) const =0 |
Returns the value of influence function. | |
virtual double | getMoment (const size_t &i) const =0 |
Returns the moment of influence function. | |
virtual std::string | printStr (int nt, int lvl) const |
Returns the string containing printable information about the object. | |
virtual void | print (int nt, int lvl) const |
Prints the information about the object. | |
virtual void | print () const |
Prints the information about the object. | |
A base class for computing influence function.
Definition at line 22 of file influenceFn.h.
|
default |
Constructor.
|
pure virtual |
Returns the value of influence function.
r | Reference (initial) bond length |
Implemented in material::ConstInfluenceFn, material::LinearInfluenceFn, and material::GaussianInfluenceFn.
|
pure virtual |
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 |
Implemented in material::ConstInfluenceFn, material::LinearInfluenceFn, and material::GaussianInfluenceFn.
|
inlinevirtual |
Prints the information about the object.
Reimplemented in material::ConstInfluenceFn, material::LinearInfluenceFn, and material::GaussianInfluenceFn.
Definition at line 75 of file influenceFn.h.
References print().
Referenced by print().
|
inlinevirtual |
Prints the information about the object.
nt | Number of tabs to append before printing |
lvl | Information level (higher means more information) |
Reimplemented in material::ConstInfluenceFn, material::LinearInfluenceFn, and material::GaussianInfluenceFn.
Definition at line 72 of file influenceFn.h.
References printStr().
|
inlinevirtual |
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 in material::ConstInfluenceFn, material::LinearInfluenceFn, and material::GaussianInfluenceFn.
Definition at line 54 of file influenceFn.h.
References util::io::getTabS().
Referenced by print().