forked from idaholab/moose
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed an error in ComputeLinearElasticPFFractureStress
ref idaholab#15695
- Loading branch information
1 parent
80c0ef5
commit 7b4060e
Showing
4 changed files
with
198 additions
and
5 deletions.
There are no files selected for viewing
183 changes: 183 additions & 0 deletions
183
modules/combined/test/tests/phase_field_fracture/crack2d_no_split.i
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,183 @@ | ||
#This input uses PhaseField-Nonconserved Action to add phase field fracture bulk rate kernels | ||
[Mesh] | ||
[gen] | ||
type = GeneratedMeshGenerator | ||
dim = 2 | ||
nx = 20 | ||
ny = 10 | ||
ymax = 0.5 | ||
[] | ||
[./noncrack] | ||
type = BoundingBoxNodeSetGenerator | ||
new_boundary = noncrack | ||
bottom_left = '0.5 0 0' | ||
top_right = '1 0 0' | ||
input = gen | ||
[../] | ||
[] | ||
|
||
[GlobalParams] | ||
displacements = 'disp_x disp_y' | ||
[] | ||
|
||
[Modules] | ||
[./PhaseField] | ||
[./Nonconserved] | ||
[./c] | ||
free_energy = F | ||
kappa = kappa_op | ||
mobility = L | ||
[../] | ||
[../] | ||
[../] | ||
[./TensorMechanics] | ||
[./Master] | ||
[./mech] | ||
add_variables = true | ||
strain = SMALL | ||
additional_generate_output = 'stress_yy' | ||
save_in = 'resid_x resid_y' | ||
[../] | ||
[../] | ||
[../] | ||
[] | ||
|
||
[AuxVariables] | ||
[./resid_x] | ||
[../] | ||
[./resid_y] | ||
[../] | ||
[] | ||
|
||
[Kernels] | ||
[./solid_x] | ||
type = PhaseFieldFractureMechanicsOffDiag | ||
variable = disp_x | ||
component = 0 | ||
c = c | ||
[../] | ||
[./solid_y] | ||
type = PhaseFieldFractureMechanicsOffDiag | ||
variable = disp_y | ||
component = 1 | ||
c = c | ||
[../] | ||
[] | ||
|
||
[BCs] | ||
[./ydisp] | ||
type = FunctionDirichletBC | ||
variable = disp_y | ||
boundary = top | ||
function = 't' | ||
[../] | ||
[./yfix] | ||
type = DirichletBC | ||
variable = disp_y | ||
boundary = noncrack | ||
value = 0 | ||
[../] | ||
[./xfix] | ||
type = DirichletBC | ||
variable = disp_x | ||
boundary = top | ||
value = 0 | ||
[../] | ||
[] | ||
|
||
[Materials] | ||
[./pfbulkmat] | ||
type = GenericConstantMaterial | ||
prop_names = 'gc_prop l visco' | ||
prop_values = '1e-3 0.04 1e-4' | ||
[../] | ||
[./define_mobility] | ||
type = ParsedMaterial | ||
material_property_names = 'gc_prop visco' | ||
f_name = L | ||
function = '1.0/(gc_prop * visco)' | ||
[../] | ||
[./define_kappa] | ||
type = ParsedMaterial | ||
material_property_names = 'gc_prop l' | ||
f_name = kappa_op | ||
function = 'gc_prop * l' | ||
[../] | ||
[./elasticity_tensor] | ||
type = ComputeElasticityTensor | ||
C_ijkl = '120.0 80.0' | ||
fill_method = symmetric_isotropic | ||
[../] | ||
[./damage_stress] | ||
type = ComputeLinearElasticPFFractureStress | ||
c = c | ||
E_name = 'elastic_energy' | ||
D_name = 'degradation' | ||
F_name = 'local_fracture_energy' | ||
decomposition_type = none | ||
[../] | ||
[./degradation] | ||
type = DerivativeParsedMaterial | ||
f_name = degradation | ||
args = 'c' | ||
function = '(1.0-c)^2*(1.0 - eta) + eta' | ||
constant_names = 'eta' | ||
constant_expressions = '0.0' | ||
derivative_order = 2 | ||
[../] | ||
[./local_fracture_energy] | ||
type = DerivativeParsedMaterial | ||
f_name = local_fracture_energy | ||
args = 'c' | ||
material_property_names = 'gc_prop l' | ||
function = 'c^2 * gc_prop / 2 / l' | ||
derivative_order = 2 | ||
[../] | ||
[./fracture_driving_energy] | ||
type = DerivativeSumMaterial | ||
args = c | ||
sum_materials = 'elastic_energy local_fracture_energy' | ||
derivative_order = 2 | ||
f_name = F | ||
[../] | ||
[] | ||
|
||
[Postprocessors] | ||
[./resid_x] | ||
type = NodalSum | ||
variable = resid_x | ||
boundary = 2 | ||
[../] | ||
[./resid_y] | ||
type = NodalSum | ||
variable = resid_y | ||
boundary = 2 | ||
[../] | ||
[] | ||
|
||
[Preconditioning] | ||
[./smp] | ||
type = SMP | ||
full = true | ||
[../] | ||
[] | ||
|
||
[Executioner] | ||
type = Transient | ||
|
||
solve_type = PJFNK | ||
petsc_options_iname = '-pc_type -ksp_gmres_restart -sub_ksp_type -sub_pc_type -pc_asm_overlap' | ||
petsc_options_value = 'asm 31 preonly lu 1' | ||
|
||
nl_rel_tol = 1e-8 | ||
l_max_its = 10 | ||
nl_max_its = 10 | ||
|
||
dt = 1e-4 | ||
dtmin = 1e-4 | ||
num_steps = 2 | ||
[] | ||
|
||
[Outputs] | ||
exodus = true | ||
[] |
Binary file added
BIN
+105 KB
modules/combined/test/tests/phase_field_fracture/gold/crack2d_no_split_out.e
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters