20 params.
addCoupledVar(
"temperature",
"Nonlinear variable name for the temperature");
27 _has_temp(isCoupled(
"temperature")),
28 _temp_var(_has_temp ? getVar(
"temperature", 0) : nullptr),
29 _bond_status_var(&_subproblem.getStandardVariable(_tid,
"bond_status")),
30 _total_stretch(declareProperty<
Real>(
"total_stretch")),
31 _mechanical_stretch(declareProperty<
Real>(
"mechanical_stretch"))
34 mooseError(
"Size of displacements vector is different from the mesh dimension!");
46 for (
unsigned int i = 0; i <
_dim; ++i)
PeridynamicsMesh & _pdmesh
Mesh related information for material points of current bond/element.
auto norm() const -> decltype(std::norm(Real()))
Base class for peridynamics material models.
MooseVariable * getVar(const std::string &var_name, unsigned int comp)
std::vector< MooseVariable * > _disp_var
Displacement variables.
Real _current_len
Length of current bond.
unsigned int coupledComponents(const std::string &var_name) const
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Point getNodeCoord(dof_id_type node_id)
Function to return coordinates for node node_id.
MechanicsMaterialBasePD(const InputParameters ¶meters)
void mooseError(Args &&... args) const
static InputParameters validParams()
void computeBondCurrentLength()
Function to compute the current bond length.
static InputParameters validParams()
const Elem *const & _current_elem