Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Merge pull request #12649 from tophmatthews/ad_density_12633
Added ADDensity
- Loading branch information
Showing
37 changed files
with
796 additions
and
293 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
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
87 changes: 87 additions & 0 deletions
87
modules/combined/test/tests/elastic_patch/ad_elastic_patch_plane_strain.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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,87 @@ | |||
# | |||
# This problem is taken from the Abaqus verification manual: | |||
# "1.5.1 Membrane patch test" | |||
# The stress solution is given as: | |||
# xx = yy = 1600 | |||
# zz = 800 | |||
# xy = 400 | |||
# yz = zx = 0 | |||
# | |||
# Since the strain is 1e-3 in both directions, the new density should be | |||
# new_density = original_density * V_0 / V | |||
# new_density = 0.283 / (1 + 1e-3 + 1e-3) = 0.282435 | |||
|
|||
[GlobalParams] | |||
displacements = 'disp_x disp_y' | |||
temperature = temp | |||
[] | |||
|
|||
[Mesh] | |||
file = elastic_patch_rz.e | |||
[] | |||
|
|||
[Variables] | |||
[./temp] | |||
initial_condition = 117.56 | |||
[../] | |||
[] | |||
|
|||
[Modules/TensorMechanics/Master/All] | |||
strain = SMALL | |||
incremental = true | |||
planar_formulation = PLANE_STRAIN | |||
add_variables = true | |||
generate_output = 'stress_xx stress_yy stress_zz stress_xy stress_yz stress_zx' | |||
[] | |||
|
|||
[Kernels] | |||
[./heat] | |||
type = TimeDerivative | |||
variable = temp | |||
[../] | |||
[] | |||
|
|||
[BCs] | |||
[./ur] | |||
type = FunctionDirichletBC | |||
variable = disp_x | |||
boundary = 10 | |||
function = '1e-3*(x+0.5*y)' | |||
[../] | |||
[./uz] | |||
type = FunctionDirichletBC | |||
variable = disp_y | |||
boundary = 10 | |||
function = '1e-3*(y+0.5*x)' | |||
[../] | |||
[] | |||
|
|||
[Materials] | |||
[./elasticity_tensor] | |||
type = ComputeIsotropicElasticityTensor | |||
youngs_modulus = 1e6 | |||
poissons_ratio = 0.25 | |||
[../] | |||
[./stress] | |||
type = ComputeStrainIncrementBasedStress | |||
[../] | |||
[] | |||
|
|||
[ADMaterials] | |||
[./density] | |||
type = ADDensity | |||
density = 0.283 | |||
outputs = all | |||
[../] | |||
[] | |||
|
|||
[Executioner] | |||
type = Transient | |||
solve_type = 'PJFNK' | |||
|
|||
end_time = 1.0 | |||
[] | |||
|
|||
[Outputs] | |||
exodus = true | |||
[] |
Oops, something went wrong.