forked from HaiyanYang/ver-03-2015
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompile_elements.f90
117 lines (101 loc) · 3.71 KB
/
compile_elements.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
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(fBrickPly_elem), allocatable :: plyblks(:)
type(fCoh8Delam_elem),allocatable :: interfs(:)
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=[ZERO,0.5_DP,ZERO])
call update(node_list(4),u=[ZERO,0.5_DP,ZERO])
call update(node_list(7),u=[ZERO,0.5_DP,ZERO])
call update(node_list(8),u=[ZERO,0.5_DP,ZERO])
call update(node_list(13),u=[ZERO,0.5_DP,ZERO])
call update(node_list(14),u=[ZERO,0.5_DP,ZERO])
call update(node_list(21),u=[ZERO,0.5_DP,ZERO])
call update(node_list(22),u=[ZERO,0.5_DP,ZERO])
call display(node_list(22))
nnode = size(elem_node_connec(:,1))
nedge = size(elem_edge_connec(:,1))
allocate(nodes(nnode),node_cnc(nnode))
allocate(edge_status(nedge),edge_cnc(nedge))
node_cnc(:) = elem_node_connec(:,1)
edge_cnc(:) = elem_edge_connec(:,1)
nodes = node_list(node_cnc)
edge_status = edge_list(edge_cnc)
! integrate the element
call integrate(elem_list(1),nodes,edge_status,UDSinglePly_material, &
& matrixCrack_material, interface_material, Kmat, Fvec, istat, emsg)
call extract(elem_list(1),curr_status=elstat)
! dir='C:\Users\mpecb\Documents\GitHub\ver-03-2015\outputs\'
! call output(kstep=1,kinc=1,outdir=dir)
print*, istat
print*, emsg
print*, elstat
end program compile_base_elements