Repository navigation
Expand file tree
/
Copy pathvumatArgs.for
More file actions
60 lines (45 loc) · 1.74 KB
/
Copy pathvumatArgs.for
File metadata and controls
60 lines (45 loc) · 1.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Module vumatArg_Mod
! Module to load and store the general VUMAT parameters for passing of information to user modules
Type vumatArg
Integer :: nblock, ndir, nshr, nstatev
Double Precision :: stepTime, totalTime, dt
! Double Precision :: strainInc(nblock,ndir+nshr)
! Double Precision :: tempOld(nblock), tempNew(nblock)
! Double Precision :: stretchOld(nblock,ndir+nshr), stretchNew(nblock,ndir+nshr)
! Double Precision :: defgradOld(nblock,ndir+nshr+nshr), defgradNew(nblock,ndir+nshr+nshr)
! Double Precision :: stressOld(nblock,ndir+nshr)
! Double Precision :: stateOld(nblock,nstatev)
! Double Precision :: enerInternOld(nblock)
! Double Precision :: enerInelasOld(nblock)
Integer :: nElement, nMatPoint, nLayer, nSecPoint
Character(len=80) :: cmname
Contains
procedure :: init => vumatArg_init
procedure :: update
End Type vumatArg
Contains
Pure Subroutine vumatArg_init(a, nblock, ndir, nshr, nstatev, stepTime, totalTime, dt, cmname)
! Arguments
Class(vumatArg), intent(INOUT) :: a
Integer, intent(IN) :: nblock, ndir, nshr, nstatev
Double Precision, intent(IN) :: stepTime, totalTime, dt
Character(len=80), intent(IN) :: cmname
a%nblock = nblock
a%ndir = ndir
a%nshr = nshr
a%nstatev = nstatev
a%stepTime = stepTime
a%totalTime = totalTime
a%dt = dt
a%cmname = cmname
End Subroutine vumatArg_init
Pure Subroutine update(a, nElement, nMatPoint, nLayer, nSecPoint)
! Arguments
Class(vumatArg), intent(INOUT) :: a
Integer, intent(IN) :: nElement, nMatPoint, nLayer, nSecPoint
a%nElement = nElement
a%nMatPoint = nMatPoint
a%nLayer = nLayer
a%nSecPoint = nSecPoint
End Subroutine update
End Module vumatArg_Mod