-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24097 from jessecarterMOOSE/rotate_umat
Rotate UMAT
- Loading branch information
Showing
11 changed files
with
381 additions
and
21 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
Binary file added
BIN
+55.5 KB
modules/solid_mechanics/test/tests/umat/orient_umat/gold/shear_top_umat_out.e
Binary file not shown.
Binary file added
BIN
+59.9 KB
modules/solid_mechanics/test/tests/umat/orient_umat/gold/shear_top_umat_rashid_out.e
Binary file not shown.
71 changes: 71 additions & 0 deletions
71
modules/solid_mechanics/test/tests/umat/orient_umat/reference/shear_top_umat.inp
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,71 @@ | ||
** Reference Abaqus input for "hw_reference_umat_output" MOOSE test | ||
*NODE, NSET=NALL | ||
1, -0.5, -0.5, -0.5 | ||
2, 0.5, -0.5, -0.5 | ||
3, 0.5, 0.5, -0.5 | ||
4, -0.5, 0.5, -0.5 | ||
5, -0.5, -0.5, 0.5 | ||
6, 0.5, -0.5, 0.5 | ||
7, 0.5, 0.5, 0.5 | ||
8, -0.5, 0.5, 0.5 | ||
9, 0.0, -0.5, -0.5 | ||
10, 0.5, 0.0, -0.5 | ||
11, 0.0, 0.5, -0.5 | ||
12, -0.5, 0.0, -0.5 | ||
13, 0.0, -0.5, 0.5 | ||
14, 0.5, 0.0, 0.5 | ||
15, 0.0, 0.5, 0.5 | ||
16, -0.5, 0.0, 0.5 | ||
17, -0.5, -0.5, 0.0 | ||
18, 0.5, -0.5, 0.0 | ||
19, 0.5, 0.5, 0.0 | ||
20, -0.5, 0.5, 0.0 | ||
*ELEMENT, TYPE=C3D20, ELSET=EALL | ||
1, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, | ||
11, 12, 13, 14, 15, 16, 17, 18, 19, 20 | ||
** | ||
** Use this for no material model rotation | ||
** *SOLID SECTION, ELSET=EALL, MATERIAL=UMAT | ||
** , | ||
** | ||
** Use this section for a 30 degree material model rotation | ||
** *ORIENTATION, NAME=30_DEGREE_Z, SYSTEM=RECTANGULAR | ||
** 0.8660254, 0.5, 0., -0.5, 0.8660254, 0., 0., 0., 0. | ||
** 3, 0.0 | ||
** *SOLID SECTION, ELSET=EALL, MATERIAL=UMAT, ORIENTATION=30_DEGREE_Z | ||
** , | ||
** | ||
** Use this section for a 0 degree material model rotation but stress calculated in rotated configuration | ||
*ORIENTATION, NAME=0_DEGREE_Z, SYSTEM=RECTANGULAR | ||
1., 0., 0., 0., 1., 0., 0., 0., 0. | ||
3, 0.0 | ||
*SOLID SECTION, ELSET=EALL, MATERIAL=UMAT, ORIENTATION=0_DEGREE_Z | ||
, | ||
** | ||
** Node Set for bottom face | ||
*NSET, NSET=BOTTOM | ||
1, 2, 5, 6, 9, 13, 17, 18 | ||
** Node Set for top face | ||
*NSET, NSET=TOP | ||
3, 4, 7, 8, 11, 15, 19, 20 | ||
** Hold bottom fixed | ||
*BOUNDARY | ||
BOTTOM, 1, 3, 0.0 | ||
** Call UMAT | ||
*MATERIAL, NAME=UMAT | ||
*USER MATERIAL, CONSTANTS=2 | ||
1000.0, 0.3 | ||
** Shear top face in +x direction by 0.005 over 5 seconds | ||
*STEP, NAME=STEP-1, NLGEOM=YES | ||
*STATIC | ||
1.0, 5.0, 1.0, 1.0 | ||
*BOUNDARY | ||
TOP, 1, 1, 0.005 | ||
*OUTPUT, FIELD | ||
*NODE OUTPUT, NSET=NALL | ||
U | ||
COORD | ||
*ELEMENT OUTPUT, ELSET=EALL, POSITION=INTEGRATION POINTS | ||
S | ||
COORD | ||
*END STEP |
103 changes: 103 additions & 0 deletions
103
modules/solid_mechanics/test/tests/umat/orient_umat/shear_top_umat.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,103 @@ | ||
[GlobalParams] | ||
displacements = 'disp_x disp_y disp_z' | ||
decomposition_method = HughesWinget | ||
[] | ||
|
||
[Mesh] | ||
[gen] | ||
type = GeneratedMeshGenerator | ||
dim = 3 | ||
xmin = -0.5 | ||
xmax = 0.5 | ||
ymin = -0.5 | ||
ymax = 0.5 | ||
zmin = -0.5 | ||
zmax = 0.5 | ||
elem_type = HEX20 | ||
[] | ||
[] | ||
|
||
[Functions] | ||
[top_pull] | ||
type = ParsedFunction | ||
expression = t/1000 | ||
[] | ||
[] | ||
|
||
[Physics/SolidMechanics/QuasiStatic] | ||
[all] | ||
add_variables = true | ||
strain = FINITE | ||
generate_output = 'stress_xx stress_yy stress_xy' | ||
[] | ||
[] | ||
|
||
[BCs] | ||
[x_pull] | ||
type = FunctionDirichletBC | ||
variable = disp_x | ||
boundary = top | ||
function = top_pull | ||
[] | ||
[x_bot] | ||
type = DirichletBC | ||
variable = disp_x | ||
boundary = bottom | ||
value = 0.0 | ||
[] | ||
[y_bot] | ||
type = DirichletBC | ||
variable = disp_y | ||
boundary = bottom | ||
value = 0.0 | ||
[] | ||
[z_bot] | ||
type = DirichletBC | ||
variable = disp_z | ||
boundary = bottom | ||
value = 0.0 | ||
[] | ||
[] | ||
|
||
[Materials] | ||
[umat] | ||
type = AbaqusUMATStress | ||
constant_properties = '1000 0.3' | ||
plugin = '../../../plugins/elastic_print' | ||
num_state_vars = 0 | ||
use_one_based_indexing = true | ||
use_displaced_mesh = true | ||
[] | ||
[] | ||
|
||
[Executioner] | ||
type = Transient | ||
solve_type = 'PJFNK' | ||
|
||
petsc_options = '-snes_ksp_ew' | ||
petsc_options_iname = '-ksp_gmres_restart' | ||
petsc_options_value = '101' | ||
|
||
line_search = 'none' | ||
|
||
l_max_its = 100 | ||
nl_max_its = 100 | ||
nl_rel_tol = 1e-12 | ||
nl_abs_tol = 1e-10 | ||
l_tol = 1e-9 | ||
start_time = 0.0 | ||
end_time = 5 | ||
|
||
dt = 1.0 | ||
[] | ||
|
||
[Preconditioning] | ||
[smp] | ||
type = SMP | ||
full = true | ||
[] | ||
[] | ||
|
||
[Outputs] | ||
exodus = true | ||
[] |
Oops, something went wrong.