https://mooseframework.inl.gov
CrackFrontNonlocalScalarMaterial.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 
13 
16 {
18  params.addClassDescription("Computes the average material at points provided by the "
19  "crack_front_definition vectorpostprocessor.");
20  params.addRequiredParam<MaterialPropertyName>(
21  "property_name", "Get name of material property to compute at crack front");
22 
23  return params;
24 }
25 
27  const InputParameters & parameters)
28  : CrackFrontNonlocalMaterialBase(parameters,
29  parameters.get<MaterialPropertyName>("property_name")),
30  _scalar(getMaterialProperty<Real>(_base_name + _property_name))
31 {
32 }
33 
34 Real
36  const Point /*crack_face_normal*/) const
37 {
38  return _scalar[qp];
39 }
const MaterialProperty< Real > & _scalar
Property that is averaged over the crack front points.
Computes the average material at points provided by the crack_front_definition vectorpostprocessor.
void addRequiredParam(const std::string &name, const std::string &doc_string)
Real getQPCrackFrontScalar(const unsigned int qp, const Point) const override
Determine whether a point is located within a specified crack front oriented box. ...
Computes the average material property in regions near points provided by the crack_front_definition ...
registerMooseObject("SolidMechanicsApp", CrackFrontNonlocalScalarMaterial)
CrackFrontNonlocalScalarMaterial(const InputParameters &parameters)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void addClassDescription(const std::string &doc_string)
const Elem & get(const ElemType type_in)