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.
- Loading branch information
1 parent
24d3a9d
commit ffb6990
Showing
19 changed files
with
1,414 additions
and
0 deletions.
There are no files selected for viewing
131 changes: 131 additions & 0 deletions
131
modules/tensor_mechanics/test/tests/1D_spherical/ad-finiteStrain_1DSphere_hollow.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,131 @@ | ||
# This simulation models the mechanics solution for a hollow sphere under | ||
# pressure, applied on the outer surfaces, using 1D spherical symmetry | ||
# assumpitions. The inner radius of the sphere, r = 4mm, is pinned to prevent | ||
# rigid body movement of the sphere. | ||
# | ||
# From Bower (Applied Mechanics of Solids, 2008, available online at | ||
# solidmechanics.org/text/Chapter4_1/Chapter4_1.htm), and applying the outer | ||
# pressure and pinned displacement boundary conditions set in this simulation, | ||
# the radial displacement is given by: | ||
# | ||
# u(r) = \frac{P(1 + v)(1 - 2v)b^3}{E(b^3(1 + v) + 2a^3(1-2v))} * (\frac{a^3}{r^2} - r) | ||
# | ||
# where P is the applied pressure, b is the outer radius, a is the inner radius, | ||
# v is Poisson's ration, E is Young's Modulus, and r is the radial position. | ||
# | ||
# The radial stress is given by: | ||
# | ||
# S(r) = \frac{Pb^3}{b^3(1 + v) + 2a^3(1 - 2v)} * (\frac{2a^3}{r^3}(2v - 1) - (1 + v)) | ||
# | ||
# The test assumes an inner radius of 4mm, and outer radius of 9 mm, | ||
# zero displacement at r = 4mm, and an applied outer pressure of 2MPa. | ||
# The radial stress is largest in the inner most element and, at an assumed | ||
# mid element coordinate of 4.5mm, is equal to -2.545MPa. | ||
[Mesh] | ||
type = GeneratedMesh | ||
dim = 1 | ||
xmin = 4 | ||
xmax = 9 | ||
nx = 5 | ||
[] | ||
|
||
[GlobalParams] | ||
displacements = 'disp_r' | ||
[] | ||
|
||
[Problem] | ||
coord_type = RSPHERICAL | ||
[] | ||
|
||
[Modules/TensorMechanics/Master] | ||
[./all] | ||
strain = FINITE | ||
add_variables = true | ||
use_automatic_differentiation = true | ||
[../] | ||
[] | ||
|
||
[AuxVariables] | ||
[./stress_rr] | ||
order = CONSTANT | ||
family = MONOMIAL | ||
[../] | ||
[] | ||
|
||
[Postprocessors] | ||
[./stress_rr] | ||
type = ElementAverageValue | ||
variable = stress_rr | ||
[../] | ||
[] | ||
|
||
[AuxKernels] | ||
[./stress_rr] | ||
type = RankTwoAux | ||
rank_two_tensor = stress | ||
index_i = 0 | ||
index_j = 0 | ||
variable = stress_rr | ||
execute_on = timestep_end | ||
[../] | ||
[] | ||
|
||
[BCs] | ||
[./innerDisp] | ||
type = PresetBC | ||
boundary = left | ||
variable = disp_r | ||
value = 0.0 | ||
[../] | ||
[./outerPressure] | ||
type = ADPressure | ||
boundary = right | ||
variable = disp_r | ||
component = 0 | ||
factor = 2 | ||
[../] | ||
[] | ||
|
||
[Materials] | ||
[./Elasticity_tensor] | ||
type = ComputeIsotropicElasticityTensor | ||
poissons_ratio = 0.345 | ||
youngs_modulus = 1e4 | ||
[../] | ||
[./stress] | ||
type = ADComputeFiniteStrainElasticStress | ||
[../] | ||
[] | ||
|
||
[Preconditioning] | ||
[./smp] | ||
type = SMP | ||
full = true | ||
[../] | ||
[] | ||
|
||
[Executioner] | ||
type = Transient | ||
solve_type = PJFNK | ||
line_search = none | ||
|
||
|
||
# controls for linear iterations | ||
l_max_its = 100 | ||
l_tol = 1e-8 | ||
|
||
# controls for nonlinear iterations | ||
nl_max_its = 15 | ||
nl_rel_tol = 1e-10 | ||
nl_abs_tol = 1e-5 | ||
|
||
# time control | ||
start_time = 0.0 | ||
dt = 0.25 | ||
dtmin = 0.0001 | ||
end_time = 1.0 | ||
[] | ||
|
||
[Outputs] | ||
exodus = true | ||
[] |
132 changes: 132 additions & 0 deletions
132
modules/tensor_mechanics/test/tests/1D_spherical/ad-smallStrain_1DSphere.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,132 @@ | ||
# This simulation models the mechanics solution for a solid sphere under | ||
# pressure, applied on the outer surfaces, using 1D spherical symmetry | ||
# assumpitions. The inner center of the sphere, r = 0, is pinned to prevent | ||
# movement of the sphere. | ||
# | ||
# From Bower (Applied Mechanics of Solids, 2008, available online at | ||
# solidmechanics.org/text/Chapter4_1/Chapter4_1.htm), and applying the outer | ||
# pressure and pinned displacement boundary conditions set in this simulation, | ||
# the radial displacement is given by: | ||
# | ||
# u(r) = \frac{- P * (1 - 2 * v) * r}{E} | ||
# | ||
# where P is the applied pressure, v is Poisson's ration, E is Young's Modulus, | ||
# and r is the radial position. | ||
# | ||
# The test assumes a radius of 4, zero displacement at r = 0mm, and an applied | ||
# outer pressure of 1MPa. Under these conditions in a solid sphere, the radial | ||
# stress is constant and has a value of -1 MPa. | ||
[Mesh] | ||
type = GeneratedMesh | ||
dim = 1 | ||
xmin = 0 | ||
xmax = 4 | ||
nx = 4 | ||
[] | ||
|
||
[GlobalParams] | ||
displacements = 'disp_r' | ||
[] | ||
|
||
[Problem] | ||
coord_type = RSPHERICAL | ||
[] | ||
|
||
[Modules/TensorMechanics/Master] | ||
[./all] | ||
strain = SMALL | ||
add_variables = true | ||
save_in = residual_r | ||
use_automatic_differentiation = true | ||
[../] | ||
[] | ||
|
||
[AuxVariables] | ||
[./stress_rr] | ||
order = CONSTANT | ||
family = MONOMIAL | ||
[../] | ||
[./residual_r] | ||
[../] | ||
[] | ||
|
||
[Postprocessors] | ||
[./stress_rr] | ||
type = ElementAverageValue | ||
variable = stress_rr | ||
[../] | ||
[./residual_r] | ||
type = NodalSum | ||
variable = residual_r | ||
boundary = right | ||
[../] | ||
[] | ||
|
||
[AuxKernels] | ||
[./stress_rr] | ||
type = RankTwoAux | ||
rank_two_tensor = stress | ||
index_i = 0 | ||
index_j = 0 | ||
variable = stress_rr | ||
execute_on = timestep_end | ||
[../] | ||
[] | ||
|
||
[BCs] | ||
[./innerDisp] | ||
type = PresetBC | ||
boundary = left | ||
variable = disp_r | ||
value = 0.0 | ||
[../] | ||
[./outerPressure] | ||
type = ADPressure | ||
boundary = right | ||
variable = disp_r | ||
component = 0 | ||
factor = 1 | ||
[../] | ||
[] | ||
|
||
[Materials] | ||
[./Elasticity_tensor] | ||
type = ComputeIsotropicElasticityTensor | ||
poissons_ratio = 0.345 | ||
youngs_modulus = 1e4 | ||
[../] | ||
[./stress] | ||
[../] | ||
[] | ||
|
||
[Preconditioning] | ||
[./smp] | ||
type = SMP | ||
full = true | ||
[../] | ||
[] | ||
|
||
[Executioner] | ||
type = Transient | ||
solve_type = PJFNK | ||
line_search = none | ||
|
||
# controls for linear iterations | ||
l_max_its = 100 | ||
l_tol = 1e-8 | ||
|
||
# controls for nonlinear iterations | ||
nl_max_its = 15 | ||
nl_rel_tol = 1e-10 | ||
nl_abs_tol = 1e-5 | ||
|
||
# time control | ||
start_time = 0.0 | ||
dt = 0.25 | ||
dtmin = 0.0001 | ||
end_time = 1.0 | ||
[] | ||
|
||
[Outputs] | ||
exodus = true | ||
[] |
1 change: 1 addition & 0 deletions
1
modules/tensor_mechanics/test/tests/1D_spherical/gold/ad-finiteStrain_1DSphere_hollow_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 @@ | ||
finiteStrain_1DSphere_hollow_out.e |
1 change: 1 addition & 0 deletions
1
modules/tensor_mechanics/test/tests/1D_spherical/gold/ad-smallStrain_1DSphere_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 @@ | ||
smallStrain_1DSphere_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
Oops, something went wrong.