https://mooseframework.inl.gov
CrackFrontNonlocalStress.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
11 #include "RankTwoScalarTools.h"
12 
13 registerMooseObject("SolidMechanicsApp", CrackFrontNonlocalStress);
14 
17 {
19  params.addClassDescription("Computes the average stress normal to the crack face.");
20  params.addRequiredParam<MaterialPropertyName>(
21  "stress_name", "Get name of stress tensor to compute at crack front");
22  return params;
23 }
24 
26  : CrackFrontNonlocalMaterialBase(parameters, parameters.get<MaterialPropertyName>("stress_name")),
27  _stress(getMaterialProperty<RankTwoTensor>(_base_name + _property_name))
28 {
29 }
30 
31 Real
33  const Point crack_face_normal) const
34 {
35  return RankTwoScalarTools::directionValueTensor(_stress[qp], crack_face_normal);
36 }
CrackFrontNonlocalStress(const InputParameters &parameters)
static InputParameters validParams()
Real getQPCrackFrontScalar(const unsigned int qp, const Point crack_face_normal) const override
Determine whether a point is located within a specified crack front oriented box. ...
void addRequiredParam(const std::string &name, const std::string &doc_string)
Computes the average material property in regions near points provided by the crack_front_definition ...
Computes the average stress magnitude in the direction normal to the crack front at points provided b...
registerMooseObject("SolidMechanicsApp", CrackFrontNonlocalStress)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void addClassDescription(const std::string &doc_string)
const MaterialProperty< RankTwoTensor > & _stress
The stress tensor.
T directionValueTensor(const RankTwoTensorTempl< T > &r2tensor, const Point &direction)
const Elem & get(const ElemType type_in)