Skip to content

Commit

Permalink
addressing user comments about name change
Browse files Browse the repository at this point in the history
  • Loading branch information
lynnmunday committed Dec 23, 2024
1 parent dfffda7 commit 78c7bb5
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 30 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# CrackFrontNonlocalScalarMaterial'

!syntax description /VectorPostprocessors/CrackFrontNonlocalScalarMaterial

## Description

This object computes the average scalar material property at the crack front points defined by [CrackFrontDefinition.md]. The main use case for this `VectorPostprocessor` is to compute an average fracture toughness or $K_c$ at the crack front for use with the `MeshCut2DFractureUserObject` to grow cracks. This allows for spatially varying $K_c$ values defined by a `Material`.

`CrackFrontNonlocalScalarMaterial` computes an average of the material property over a box-shaped domain at each crack tip point that is centered on the crack tip and extends [!param](/VectorPostprocessors/CrackFrontNonlocalScalarMaterial/box_length) in front of the crack tip. The [!param](/VectorPostprocessors/CrackFrontNonlocalScalarMaterial/box_height) is the dimension normal to the crack face, and [!param](/VectorPostprocessors/CrackFrontNonlocalScalarMaterial/box_width) is the dimension tangential to the crack face. [!param](/VectorPostprocessors/CrackFrontNonlocalScalarMaterial/box_width) is not used in 2D problems.

In the following input file example, the mesh consists of a 3D plate with a hole in the middle. The CrackFrontDefinition defines crack points around the center line of the hole, `boundary=1001`. This `CrackFrontNonlocalScalarMaterial` averages a material property named `scalar_kcrit` over each 3D box at each crack front point.

!listing crack_front_nonlocal_materials.i block=UserObjects VectorPostprocessors/CrackFrontNonlocalKcrit

!syntax parameters /VectorPostprocessors/CrackFrontNonlocalScalarMaterial

!syntax inputs /VectorPostprocessors/CrackFrontNonlocalScalarMaterial

!syntax children /VectorPostprocessors/CrackFrontNonlocalScalarMaterial
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
* Computes the average material at points provided by the crack_front_definition
* vectorpostprocessor.
*/
class CrackFrontNonlocalScalar : public CrackFrontNonlocalMaterialBase
class CrackFrontNonlocalScalarMaterial : public CrackFrontNonlocalMaterialBase
{
public:
static InputParameters validParams();

CrackFrontNonlocalScalar(const InputParameters & parameters);
CrackFrontNonlocalScalarMaterial(const InputParameters & parameters);

protected:
/// The scalar material property
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include "RankTwoTensor.h"

/**
* Computes the average stress magnitude in the direction normal to the crack font at points provided by the
* Computes the average stress magnitude in the direction normal to the crack front at points provided by the
* crack_front_definition vectorpostprocessor.
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,27 @@
//* Licensed under LGPL 2.1, please see LICENSE for details
//* https://www.gnu.org/licenses/lgpl-2.1.html

#include "CrackFrontNonlocalScalar.h"
#include "CrackFrontNonlocalScalarMaterial.h"

registerMooseObject("SolidMechanicsApp", CrackFrontNonlocalScalar);
registerMooseObject("SolidMechanicsApp", CrackFrontNonlocalScalarMaterial);

InputParameters
CrackFrontNonlocalScalar::validParams()
CrackFrontNonlocalScalarMaterial::validParams()
{
InputParameters params = CrackFrontNonlocalMaterialBase::validParams();
params.addClassDescription("Computes the average material at points provided by the "
"crack_front_definition vectorpostprocessor.");
return params;
}

CrackFrontNonlocalScalar::CrackFrontNonlocalScalar(const InputParameters & parameters)
CrackFrontNonlocalScalarMaterial::CrackFrontNonlocalScalarMaterial(const InputParameters & parameters)
: CrackFrontNonlocalMaterialBase(parameters),
_scalar(getMaterialProperty<Real>(_base_name + getParam<std::string>("material_name")))
{
}

Real
CrackFrontNonlocalScalar::getQPCrackFrontScalar(const unsigned int qp,
CrackFrontNonlocalScalarMaterial::getQPCrackFrontScalar(const unsigned int qp,
const Point /*crack_face_normal*/) const
{
return _scalar[qp];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
box_height = 0.05
[]
[CrackFrontNonlocalKcrit]
type = CrackFrontNonlocalScalar
type = CrackFrontNonlocalScalarMaterial
material_name = kcrit
base_name = scalar
crack_front_definition = crack
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[Tests]
design = 'CrackFrontNonlocalStress.md CrackFrontNonlocalScalar.md'
design = 'CrackFrontNonlocalStress.md CrackFrontNonlocalScalarMaterial.md'
issues = '#27659 #29575'
[crack_front_materials]
type = 'CSVDiff'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[VectorPostprocessors]
[CrackFrontNonlocalScalarVpp]
type = CrackFrontNonlocalScalar
type = CrackFrontNonlocalScalarMaterial
material_name = k_crit_mat
crack_front_definition = crackFrontDefinition
box_length = 0.05
Expand Down

0 comments on commit 78c7bb5

Please sign in to comment.