PeriDEM 0.2.0
PeriDEM -- Peridynamics-based high-fidelity model for granular media
|
A class to implement Gaussian influence function. More...
#include <influenceFn.h>
Public Member Functions | |
GaussianInfluenceFn (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_alpha |
Constants. | |
double | d_beta |
Constants. | |
A class to implement Gaussian influence function.
\( J(r) = \alpha \exp(-r^2/\beta) \)
Definition at line 227 of file influenceFn.h.
material::GaussianInfluenceFn::GaussianInfluenceFn | ( | const std::vector< double > & | params, |
const size_t & | dim | ||
) |
Constructor.
params | List of parameters |
dim | Dimension |
Definition at line 63 of file influenceFn.cpp.
|
overridevirtual |
Returns the value of influence function.
r | Reference (initial) bond length |
Implements material::BaseInfluenceFn.
Definition at line 86 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 90 of file influenceFn.cpp.
Referenced by printStr().
|
inlineoverridevirtual |
Prints the information about the object.
Reimplemented from material::BaseInfluenceFn.
Definition at line 289 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 284 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 263 of file influenceFn.h.
References d_alpha, d_beta, getMoment(), and util::io::getTabS().
Referenced by print().
|
private |
Constants.
Definition at line 293 of file influenceFn.h.
Referenced by GaussianInfluenceFn(), and printStr().
|
private |
Constants.
Definition at line 296 of file influenceFn.h.
Referenced by GaussianInfluenceFn(), and printStr().