![]() |
NLMech
0.1.0
|
A base class providing methods to compute energy density and force. More...
#include <baseMaterial.h>


Public Member Functions | |
| BaseMaterial (const size_t &dim, const double &horizon) | |
| Constructor. More... | |
| virtual std::pair< util::Point3, double > | getBondEF (size_t i, size_t j) |
| Returns energy and force between bond. More... | |
| virtual util::Point3 | getBondForceDirection (const util::Point3 &dx, const util::Point3 &du) const |
| Get direction of bond force. More... | |
| double | getDensity () const |
| Returns the density of the material. More... | |
| double | getHorizon () const |
| Returns horizon. More... | |
| virtual double | getInfFn (const double &r) const |
| Returns the value of influence function. More... | |
| virtual double | getS (const util::Point3 &dx, const util::Point3 &du) |
| Returns the bond strain. More... | |
| virtual double | getS (size_t i, size_t j) |
| Returns the bond strain. More... | |
| virtual double | getSc (const double &r) |
| Returns critical bond strain. More... | |
| virtual double | getSc (size_t i, size_t j) |
| Returns critical bond strain. More... | |
| virtual util::Matrix33 | getStrain (size_t i) |
| Returns strain tensor. More... | |
| virtual util::Matrix33 | getStress (size_t i) |
| Returns stress tensor. More... | |
| bool | isStateActive () const |
| Returns true if state-based potential is active. More... | |
| std::string | name () const |
| Returns name of the material. More... | |
| virtual void | print (int nt=0, int lvl=0) const |
| Prints the information about the instance of the object. More... | |
| virtual std::string | printStr (int nt=0, int lvl=0) const |
| Returns the string containing information about the instance of the object. More... | |
| virtual void | update () |
| Let the material class in the quasi-static case know that there is a new loading step. | |
Private Attributes | |
| double | d_density |
| Density. | |
| size_t | d_dimension |
| Dimension. | |
| double | d_horizon |
| Horizon. | |
| std::string | d_name |
| Name of material. | |
| bool | d_stateActive |
| Flag indicating if peridynamic state potential is active. | |
A base class providing methods to compute energy density and force.
This is a base class which provides method to compute pairwise energy and force, as well as hydrostatic force and energy.
|
inline |
Constructor.
| dim | Dimension |
| horizon | Horizon |
|
inlinevirtual |
Returns energy and force between bond.
| i | Id of node 1 |
| j | Local id in the neighborlist of node i |
Reimplemented in material::pd::RNPBond, and material::pd::ElasticState.
Referenced by model::QuasiStaticModel< T >::computePertubatedForces().

|
inlinevirtual |
Get direction of bond force.
| dx | Relative bond vector (reference configuration) |
| du | Relative bond displacement vector |
Reimplemented in material::pd::ElasticState, and material::pd::RNPBond.
|
inline |
Returns the density of the material.
|
inline |
Returns horizon.
|
inlinevirtual |
Returns the value of influence function.
| r | Reference (initial) bond length |
Reimplemented in material::pd::RNPBond, and material::pd::ElasticState.
|
inlinevirtual |
Returns the bond strain.
| dx | Reference bond vector |
| du | Difference of displacement |
Reimplemented in material::pd::RNPBond.
|
inlinevirtual |
Returns the bond strain.
| i | Id of node 1 |
| j | Id of node 2 |
Reimplemented in material::pd::RNPBond.
|
inlinevirtual |
Returns critical bond strain.
| r | Reference length of bond |
Reimplemented in material::pd::RNPBond.
|
inlinevirtual |
Returns critical bond strain.
| i | Id of node 1 |
| j | Id of node 2 |
Reimplemented in material::pd::RNPBond, and material::pd::ElasticState.
|
inlinevirtual |
Returns strain tensor.
| i | Id of node |
Reimplemented in material::pd::ElasticState.
|
inlinevirtual |
Returns stress tensor.
| i | Id of node |
Reimplemented in material::pd::ElasticState.
|
inline |
Returns true if state-based potential is active.
|
inline |
Returns name of the material.
|
inlinevirtual |
Prints the information about the instance of the object.
| nt | Number of tabs to append before each line of string |
| lvl | Level of information sought (higher level means more information) |

|
inlinevirtual |
Returns the string containing information about the instance of the object.
| nt | Number of tabs to append before each line of string |
| lvl | Level of information sought (higher level means more information) |
Referenced by print().
