A class to implement constant influence function.
More...
#include <influenceFn.h>
|
| | ConstInfluenceFn (const std::vector< double > ¶ms, const size_t &dim) |
| | Constructor. More...
|
| |
| double | getInfFn (const double &r) const override |
| | Returns the value of influence function. More...
|
| |
| double | getMoment (const size_t &i) const override |
| | Returns the moment of influence function. More...
|
| |
|
void | print () const override |
| | Prints the information about the instance of the object.
|
| |
| void | print (int nt, int lvl) const override |
| | Prints the information about the instance of the object. More...
|
| |
| std::string | printStr (int nt, int lvl) const override |
| | Returns the string containing information about the instance of the object. More...
|
| |
|
| BaseInfluenceFn ()=default |
| | Constructor.
|
| |
|
|
double | d_a0 |
| | Constant such that J(r) = Constant.
|
| |
A class to implement constant influence function.
◆ ConstInfluenceFn()
| material::pd::ConstInfluenceFn::ConstInfluenceFn |
( |
const std::vector< double > & |
params, |
|
|
const size_t & |
dim |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
| params | List of parameters |
| dim | Dimension |
◆ getInfFn()
| double material::pd::ConstInfluenceFn::getInfFn |
( |
const double & |
r | ) |
const |
|
inlineoverridevirtual |
Returns the value of influence function.
- Parameters
-
| r | Reference (initial) bond length |
- Returns
- value Influence function at r
Implements material::pd::BaseInfluenceFn.
◆ getMoment()
| double material::pd::ConstInfluenceFn::getMoment |
( |
const size_t & |
i | ) |
const |
|
inlineoverridevirtual |
Returns the moment of influence function.
If
is the influence function for
then
moment is given by
- Parameters
-
- Returns
- moment Moment
Implements material::pd::BaseInfluenceFn.
Referenced by printStr().
◆ print()
| void material::pd::ConstInfluenceFn::print |
( |
int |
nt, |
|
|
int |
lvl |
|
) |
| const |
|
inlineoverridevirtual |
Prints the information about the instance of the object.
- Parameters
-
| nt | Number of tabs to append before each line of string |
| lvl | Level of information sought (higher level means more information) |
Reimplemented from material::pd::BaseInfluenceFn.
◆ printStr()
| std::string material::pd::ConstInfluenceFn::printStr |
( |
int |
nt, |
|
|
int |
lvl |
|
) |
| const |
|
inlineoverridevirtual |
Returns the string containing information about the instance of the object.
- Parameters
-
| nt | Number of tabs to append before each line of string |
| lvl | Level of information sought (higher level means more information) |
- Returns
- string String containing information about this object
Reimplemented from material::pd::BaseInfluenceFn.
Referenced by print().
The documentation for this class was generated from the following file: