forked from idaholab/moose
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a54c047
commit fde8253
Showing
36 changed files
with
1,202 additions
and
76 deletions.
There are no files selected for viewing
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
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
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
1 change: 1 addition & 0 deletions
1
modules/combined/test/tests/ad_power_law_creep/gold/power_law_creep_out.e
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 @@ | ||
../../power_law_creep/gold/power_law_creep_out.e |
1 change: 1 addition & 0 deletions
1
modules/combined/test/tests/ad_power_law_creep/gold/power_law_creep_restart2_tm_out.e
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 @@ | ||
../../power_law_creep/gold/power_law_creep_restart2_tm_out.e |
1 change: 1 addition & 0 deletions
1
modules/combined/test/tests/ad_power_law_creep/gold/power_law_creep_smallstrain_out.e
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 @@ | ||
../../power_law_creep/gold/power_law_creep_smallstrain_out.e |
146 changes: 146 additions & 0 deletions
146
modules/combined/test/tests/ad_power_law_creep/power_law_creep.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,146 @@ | ||
# 1x1x1 unit cube with uniform pressure on top face | ||
|
||
[GlobalParams] | ||
displacements = 'disp_x disp_y disp_z' | ||
[] | ||
|
||
[Mesh] | ||
type = GeneratedMesh | ||
dim = 3 | ||
nx = 1 | ||
ny = 1 | ||
nz = 1 | ||
[] | ||
|
||
[Variables] | ||
[./temp] | ||
order = FIRST | ||
family = LAGRANGE | ||
initial_condition = 1000.0 | ||
[../] | ||
[] | ||
|
||
[Modules/TensorMechanics/Master] | ||
[./all] | ||
strain = FINITE | ||
incremental = true | ||
add_variables = true | ||
generate_output = 'stress_yy creep_strain_xx creep_strain_yy creep_strain_zz elastic_strain_yy' | ||
use_automatic_differentiation = true | ||
[../] | ||
[] | ||
|
||
[Functions] | ||
[./top_pull] | ||
type = PiecewiseLinear | ||
x = '0 1' | ||
y = '1 1' | ||
[../] | ||
[] | ||
|
||
[Kernels] | ||
[./heat] | ||
type = ADHeatConduction | ||
variable = temp | ||
[../] | ||
[./heat_ie] | ||
type = ADHeatConductionTimeDerivative | ||
variable = temp | ||
[../] | ||
[] | ||
|
||
[BCs] | ||
[./u_top_pull] | ||
type = ADPressure | ||
variable = disp_y | ||
component = 1 | ||
boundary = top | ||
constant = -10.0e6 | ||
function = top_pull | ||
[../] | ||
[./u_bottom_fix] | ||
type = ADPresetBC | ||
variable = disp_y | ||
boundary = bottom | ||
value = 0.0 | ||
[../] | ||
[./u_yz_fix] | ||
type = ADPresetBC | ||
variable = disp_x | ||
boundary = left | ||
value = 0.0 | ||
[../] | ||
[./u_xy_fix] | ||
type = ADPresetBC | ||
variable = disp_z | ||
boundary = back | ||
value = 0.0 | ||
[../] | ||
[./temp_fix] | ||
type = DirichletBC | ||
variable = temp | ||
boundary = 'bottom top' | ||
value = 1000.0 | ||
[../] | ||
[] | ||
|
||
[Materials] | ||
[./elasticity_tensor] | ||
type = ComputeIsotropicElasticityTensor | ||
youngs_modulus = 2e11 | ||
poissons_ratio = 0.3 | ||
[../] | ||
[./radial_return_stress] | ||
type = ADComputeMultipleInelasticStress | ||
inelastic_models = 'power_law_creep' | ||
[../] | ||
[./power_law_creep] | ||
type = ADPowerLawCreepStressUpdate | ||
coefficient = 1.0e-15 | ||
n_exponent = 4 | ||
activation_energy = 3.0e5 | ||
temperature = temp | ||
[../] | ||
|
||
[./thermal] | ||
type = HeatConductionMaterial | ||
specific_heat = 1.0 | ||
thermal_conductivity = 100. | ||
[../] | ||
[./density] | ||
type = ADDensity | ||
density = 1.0 | ||
[../] | ||
[] | ||
|
||
[Preconditioning] | ||
[./smp] | ||
type = SMP | ||
full = true | ||
[../] | ||
[] | ||
|
||
[Executioner] | ||
type = Transient | ||
solve_type = 'PJFNK' | ||
|
||
petsc_options = '-snes_ksp' | ||
petsc_options_iname = '-ksp_gmres_restart' | ||
petsc_options_value = '101' | ||
|
||
line_search = 'none' | ||
|
||
l_max_its = 20 | ||
nl_max_its = 20 | ||
nl_rel_tol = 1e-6 | ||
nl_abs_tol = 1e-6 | ||
l_tol = 1e-5 | ||
start_time = 0.0 | ||
end_time = 1.0 | ||
num_steps = 10 | ||
dt = 0.1 | ||
[] | ||
|
||
[Outputs] | ||
exodus = true | ||
[] |
144 changes: 144 additions & 0 deletions
144
modules/combined/test/tests/ad_power_law_creep/power_law_creep_restart1.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,144 @@ | ||
# 1x1x1 unit cube with uniform pressure on top face | ||
|
||
[GlobalParams] | ||
displacements = 'disp_x disp_y disp_z' | ||
[] | ||
|
||
[Mesh] | ||
type = GeneratedMesh | ||
dim = 3 | ||
nx = 1 | ||
ny = 1 | ||
nz = 1 | ||
[] | ||
|
||
[Variables] | ||
[./temp] | ||
order = FIRST | ||
family = LAGRANGE | ||
initial_condition = 1000.0 | ||
[../] | ||
[] | ||
|
||
[Modules/TensorMechanics/Master] | ||
[./all] | ||
strain = FINITE | ||
incremental = true | ||
add_variables = true | ||
generate_output = 'stress_yy creep_strain_xx creep_strain_yy creep_strain_zz elastic_strain_yy' | ||
use_automatic_differentiation = true | ||
[../] | ||
[] | ||
|
||
[Functions] | ||
[./top_pull] | ||
type = PiecewiseLinear | ||
x = '0 1' | ||
y = '1 1' | ||
[../] | ||
[] | ||
|
||
[Kernels] | ||
[./heat] | ||
type = ADHeatConduction | ||
variable = temp | ||
[../] | ||
[./heat_ie] | ||
type = ADHeatConductionTimeDerivative | ||
variable = temp | ||
[../] | ||
[] | ||
|
||
[BCs] | ||
[./u_top_pull] | ||
type = ADPressure | ||
variable = disp_y | ||
component = 1 | ||
boundary = top | ||
constant = -10.0e6 | ||
function = top_pull | ||
[../] | ||
[./u_bottom_fix] | ||
type = ADPresetBC | ||
variable = disp_y | ||
boundary = bottom | ||
value = 0.0 | ||
[../] | ||
[./u_yz_fix] | ||
type = ADPresetBC | ||
variable = disp_x | ||
boundary = left | ||
value = 0.0 | ||
[../] | ||
[./u_xy_fix] | ||
type = ADPresetBC | ||
variable = disp_z | ||
boundary = back | ||
value = 0.0 | ||
[../] | ||
[./temp_fix] | ||
type = DirichletBC | ||
variable = temp | ||
boundary = 'bottom top' | ||
value = 1000.0 | ||
[../] | ||
[] | ||
|
||
[Materials] | ||
[./elasticity_tensor] | ||
type = ComputeIsotropicElasticityTensor | ||
youngs_modulus = 2e11 | ||
poissons_ratio = 0.3 | ||
[../] | ||
[./radial_return_stress] | ||
type = ADComputeMultipleInelasticStress | ||
inelastic_models = 'power_law_creep' | ||
[../] | ||
[./power_law_creep] | ||
type = ADPowerLawCreepStressUpdate | ||
coefficient = 1.0e-15 | ||
n_exponent = 4 | ||
activation_energy = 3.0e5 | ||
temperature = temp | ||
[../] | ||
|
||
[./thermal] | ||
type = HeatConductionMaterial | ||
specific_heat = 1.0 | ||
thermal_conductivity = 100. | ||
[../] | ||
[./density] | ||
type = ADDensity | ||
density = 1.0 | ||
[../] | ||
[] | ||
|
||
[Executioner] | ||
type = Transient | ||
solve_type = 'PJFNK' | ||
|
||
petsc_options = '-snes_ksp' | ||
petsc_options_iname = '-ksp_gmres_restart' | ||
petsc_options_value = '101' | ||
|
||
line_search = 'none' | ||
|
||
l_max_its = 20 | ||
nl_max_its = 20 | ||
nl_rel_tol = 1e-6 | ||
nl_abs_tol = 1e-6 | ||
l_tol = 1e-5 | ||
start_time = 0.0 | ||
end_time = 1.0 | ||
num_steps = 6 | ||
dt = 0.1 | ||
[] | ||
|
||
[Outputs] | ||
exodus = true | ||
csv = true | ||
[./out] | ||
type = Checkpoint | ||
num_files = 1 | ||
[../] | ||
[] |
Oops, something went wrong.