Skip to content

Commit

Permalink
Apply suggestions from code review closes #27055
Browse files Browse the repository at this point in the history
Co-authored-by: Ben Spencer <[email protected]>
  • Loading branch information
lynnmunday and bwspenc committed Apr 30, 2024
1 parent 7bc4ef9 commit e734d87
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Once the nucleation criterion is reached, a line segment of the specified length
centered on the element centroid it nucleates from.
The direction of the nucleated crack is normal to the direction returned by the `RankTwoTensor` scalar.
For example, `MaxInPlanePrincipal` returns the direction of the maximum in-plane principal component and the crack direction is normal to this.
It is an error for [!param](/UserObjects/MeshCut2DRankTwoTensorNucleation/nucleation_length) to be smaller than the length of the element the crack nucleates in .
It is an error for [!param](/UserObjects/MeshCut2DRankTwoTensorNucleation/nucleation_length) to be smaller than the length of the element the crack nucleates in, unless the user sets `nucleate_across_full_element=true`.
A crack will only be nucleated if it is at least a distance specified by [!param](/UserObjects/MeshCut2DRankTwoTensorNucleation/nucleation_radius) away from existing or nucleated cracks.
If multiple cracks nucleate in the same xfem update and are within the specified `nucleation_radius`, the crack nucleated from the element with the lowest id will be retained and no other cracks within the `nucleation_radius` will be nucleated. The `nucleation_radius` is a good way to limit the number of cracks that nucleate within a region, which can help limit problems related to excessive numbers of XFEM cuts in a single element.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ MeshCut2DRankTwoTensorNucleation::validParams()
false,
"Controls the behavior of nucleating cracks if 'nucleation_length' is smaller than the "
"length required to travserse an element with a nucleating crack. If this is set to 'false', "
"that condition will result in an error, but if set to true, a crack with the length needed "
"that condition will result in an error, but if set to 'true', a crack with the length "
"needed "
"to traverse the element will be inserted.");
return params;
}
Expand Down

0 comments on commit e734d87

Please sign in to comment.