15 type(hecmwst_matrix) :: hecMAT
17 type(hecmwst_local_mesh) :: hecMESH
18 integer(kind=kint) :: itype, is, iE, ic_type, icel, isect, IMAT, ntab, itab, NDOF
19 integer(kind=kint) :: in0, nn, i, in, j, nodLOCAL(20), jsect
20 real(kind=kreal) :: beta, tzero, alpha, temp(1000), funca(1000), funcb(1000), tt(20), ss(400)
21 real(kind=kreal) :: asect, thick, gth, ghh, gr1, gr2
22 real(kind=kreal) :: stiff(20, 20), ecoord(3,20)
23 real(kind=kreal),
allocatable :: s(:)
26 tzero = hecmesh%zero_temp
29 call hecmw_mat_clear(hecmat)
30 call hecmw_mat_clear_b(hecmat)
32 do itype = 1, hecmesh%n_elem_type
33 is = hecmesh%elem_type_index(itype-1) + 1
34 ie = hecmesh%elem_type_index(itype )
35 ic_type= hecmesh%elem_type_item(itype)
38 if( ic_type == 761 ) ic_type = 731
39 if( ic_type == 781 ) ic_type = 741
40 if (hecmw_is_etype_link(ic_type)) cycle
41 if (hecmw_is_etype_patch(ic_type)) cycle
49 if( fstrsolid%elements(icel)%elemact_flag == kelact_inactive ) cycle
50 isect = hecmesh%section_ID(icel)
51 imat = hecmesh%section%sect_mat_ID_item(isect)
53 if( hecmesh%section%sect_type(isect) .ne. 4 )
then
54 ntab = fstrheat%CONDtab(imat)
56 temp(itab) = fstrheat%CONDtemp (imat,itab)
57 funca(itab) = fstrheat%CONDfuncA(imat,itab)
58 funcb(itab) = fstrheat%CONDfuncB(imat,itab)
60 funca(ntab+1) = fstrheat%CONDfuncA(imat,ntab+1)
61 funcb(ntab+1) = fstrheat%CONDfuncB(imat,ntab+1)
64 in0 = hecmesh%elem_node_index(icel-1)
65 nn = hecmw_get_max_node(ic_type)
67 nodlocal(i) = hecmesh%elem_node_item(in0+i)
68 tt(i) = fstrheat%TEMP ( nodlocal(i) )
70 ecoord(j,i) = hecmesh%node(3*(nodlocal(i)-1)+j)
77 if(ic_type == 111)
then
78 in = hecmesh%section%sect_R_index(isect)
79 asect = hecmesh%section%sect_R_item(in)
80 call heat_conductivity_c1(ic_type, nn, ecoord(1:2,1:nn), tt, asect, stiff, &
81 fstrheat%CONDtab(imat), fstrheat%CONDtemp(imat,:), fstrheat%CONDfuncA(imat,:) ,fstrheat%CONDfuncB(imat,:))
83 elseif(ic_type == 231 .or. ic_type == 232 .or. ic_type == 241 .or. ic_type == 242)
then
84 in = hecmesh%section%sect_R_index(isect)
85 thick = hecmesh%section%sect_R_item(in)
86 call heat_conductivity_c2(ic_type, nn, ecoord(1:2,1:nn), tt, thick, stiff, &
87 fstrheat%CONDtab(imat), fstrheat%CONDtemp(imat,:), fstrheat%CONDfuncA(imat,:) ,fstrheat%CONDfuncB(imat,:))
89 elseif(ic_type == 341 .or. ic_type == 342 .or. ic_type == 351 .or. ic_type == 352 .or. &
90 & ic_type == 361 .or. ic_type == 362)
then
91 call heat_conductivity_c3(ic_type, nn, ecoord(1:3,1:nn), tt, stiff, &
92 fstrheat%CONDtab(imat), fstrheat%CONDtemp(imat,:), fstrheat%CONDfuncA(imat,:) ,fstrheat%CONDfuncB(imat,:))
94 elseif (ic_type == 541)
then
95 jsect = hecmesh%section%sect_R_index(isect-1)+1
96 gth = hecmesh%section%sect_R_item(jsect)
97 ghh = hecmesh%section%sect_R_item(jsect+1)
98 gr1 = hecmesh%section%sect_R_item(jsect+2)
99 gr2 = hecmesh%section%sect_R_item(jsect+3)
100 call heat_conductivity_541(nn, ecoord, tt, tzero, gth, ghh, gr1, gr2, ss)
102 elseif(ic_type == 731)
then
104 nodlocal(nn) = hecmesh%elem_node_item(in0+nn-1)
105 in = hecmesh%section%sect_R_index(isect)
106 thick = hecmesh%section%sect_R_item(in)
108 call heat_conductivity_shell_731(nn, ecoord(1:3,1:nn), tt, thick, ss, &
109 fstrheat%CONDtab(imat), fstrheat%CONDtemp(imat,:), fstrheat%CONDfuncA(imat,:) ,fstrheat%CONDfuncB(imat,:))
111 elseif(ic_type == 741)
then
112 in = hecmesh%section%sect_R_index(isect)
113 thick = hecmesh%section%sect_R_item(in)
114 call heat_conductivity_shell_741(nn, ecoord(1:3,1:nn), tt, thick, ss, &
115 fstrheat%CONDtab(imat), fstrheat%CONDtemp(imat,:), fstrheat%CONDfuncA(imat,:) ,fstrheat%CONDfuncB(imat,:))
119 write(*,*)
"** error setMASS"
123 if(ic_type == 541 .or. ic_type == 731 .or. ic_type == 741)
then
134 call hecmw_mat_ass_elem(hecmat, nn, nodlocal, stiff)
141 allocate(s(hecmat%NP))
144 call hecmw_matvec(hecmesh, hecmat, fstrheat%TEMP0, s)
146 hecmat%D = beta*hecmat%D
147 hecmat%AU = beta*hecmat%AU
148 hecmat%AL = beta*hecmat%AL
149 hecmat%B(1:hecmat%N) = hecmat%B(1:hecmat%N) - alpha*s(1:hecmat%N)
This module defines common data and basic structures for analysis.
This modules just summarizes all modules used in heat analysis.
subroutine heat_mat_ass_conductivity(hecMESH, hecMAT, fstrSOLID, fstrHEAT, beta)
This modules just summarizes all modules used in static analysis.
Data for HEAT ANSLYSIS (fstrHEAT)