-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtest_baseElems.f90
124 lines (109 loc) · 4.11 KB
/
test_baseElems.f90
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
include 'globals/parameter_module.f90'
include 'globals/global_clock_module.f90'
include 'globals/global_toolkit_module.f90'
include 'object_materials/lamina_material_module.f90'
include 'object_materials/cohesive_material_module.f90'
include 'object_node/fnode_module.f90'
include 'object_elements/base_elements/brickPly_elem_module.f90'
include 'object_elements/base_elements/wedgePly_elem_module.f90'
include 'object_elements/base_elements/coh8Crack_elem_module.f90'
include 'object_elements/base_elements/coh6Delam_elem_module.f90'
include 'object_elements/base_elements/coh8Delam_elem_module.f90'
include 'object_elements/base_elements/abstPly_elem_module.f90'
include 'object_elements/base_elements/abstDelam_elem_module.f90'
include 'object_elements/fBrickPly_elem_module.f90'
include 'object_elements/fCoh8Delam_subelem_module.f90'
include 'object_elements/fCoh8Delam_elem_module.f90'
include 'object_elements/fBrickLam_elem_module.f90'
include 'datalists/material_list_module.f90'
include 'datalists/node_list_module.f90'
include 'datalists/edge_list_module.f90'
include 'datalists/elem_list_module.f90'
include 'inputs/input_module.f90'
include 'outputs/output_module.f90'
program compile_base_elements
! Purpose:
! to perform unit testing on global_clock_module
!
!
! Record of revision:
! Date Programmer Description of change
! ======== ==================== ========================================
! 09/04/15 B. Y. Chen Original code
!
use parameter_module
use fnode_module
use lamina_material_module
use cohesive_material_module
use brickPly_elem_module
use wedgePly_elem_module
use coh6Delam_elem_module
use coh8Delam_elem_module
use coh8Crack_elem_module
use abstPly_elem_module
use abstDelam_elem_module
use fCoh8Delam_subelem_module
use fCoh8Delam_elem_module
use fBrickPly_elem_module
use fBrickLam_elem_module
use material_list_module
use node_list_module
use edge_list_module
use elem_list_module
use input_module
use output_module
implicit none
real(DP), allocatable :: Kmat(:,:), Fvec(:)
type(fnode), allocatable :: nodes(:)
integer, allocatable :: edge_status(:)
integer, allocatable :: node_cnc(:), edge_cnc(:)
integer :: nnode, nedge
integer :: istat, elstat
character(len=MSGLENGTH) :: emsg
character(len=DIRLENGTH) :: dir
! type(abstPly_elem) :: elem
! type(abstDelam_elem) :: elem
type(coh8Crack_elem) :: elem
type(lamina_ig_point), allocatable :: ig_points(:)
real(DP) :: stress(NST_STANDARD)
real(DP) :: traction(NST_COHESIVE)
nnode = 0
nedge = 0
istat = STAT_SUCCESS
emsg = ''
elstat = 0
call set_fnm_materials()
call set_fnm_nodes()
call set_fnm_edges()
call set_fnm_elems()
! call update(node_list(3),u=[-0.1_DP,ZERO,ZERO])
! call update(node_list(4),u=[-0.1_DP,ZERO,ZERO])
! call update(node_list(7),u=[-0.1_DP,ZERO,ZERO])
! call update(node_list(8),u=[-0.1_DP,ZERO,ZERO])
call update(node_list(1),u=[ZERO,ZERO,0.1_DP])
call update(node_list(3),u=[ZERO,ZERO,0.1_DP])
call update(node_list(5),u=[ZERO,ZERO,0.1_DP])
call update(node_list(7),u=[ZERO,ZERO,0.1_DP])
nnode = 8
allocate(nodes(nnode),node_cnc(nnode))
!node_cnc(1:nnode) = elem_node_connec(1:nnode,1)
node_cnc = [6,8,4,2,5,7,3,1]
nodes = node_list(node_cnc)
! call set(elem,eltype='brick',connec=node_cnc,ply_angle=0._DP,istat=istat,emsg=emsg)
! call set(elem,eltype='coh8Delam', connec=node_cnc,istat=istat,emsg=emsg)
call set(elem, connec=node_cnc,istat=istat,emsg=emsg)
! integrate the element
! call integrate(elem,nodes,UDSinglePly_material, Kmat, Fvec, istat, emsg)
! call integrate(elem,nodes,interface_material, 0._DP, 90._DP, Kmat,Fvec,istat,emsg)
call integrate(elem,nodes,matrixCrack_material, Kmat,Fvec,istat,emsg)
! call extract(elem,fstat=elstat,stress=stress)
call extract(elem,fstat=elstat,traction=traction)
!el2 = elem
! dir='C:\Users\mpecb\Documents\GitHub\ver-03-2015\outputs\'
! call output(kstep=1,kinc=1,outdir=dir)
print*, istat
print*, emsg
print*, elstat
! print*, stress
print*, traction
end program compile_base_elements