14 type(hecmwst_matrix) :: hecMAT
16 type(hecmwst_local_mesh) :: hecMESH
17 integer(kind=kint) :: i, in, j, nodLOCAL(20), ip, inod
18 integer(kind=kint) :: itype, iS, iE, ic_type, icel, isect, IMAT, in0, nn
19 real(kind=kreal) :: temp(20), lumped(120), mass(20*6, 20*6), ecoord(3,20)
20 real(kind=kreal) :: delta_time, surf, thick, beta
24 do itype = 1, hecmesh%n_elem_type
25 is = hecmesh%elem_type_index(itype-1) + 1
26 ie = hecmesh%elem_type_index(itype )
27 ic_type = hecmesh%elem_type_item(itype)
28 if( ic_type == 761 ) ic_type = 731
29 if( ic_type == 781 ) ic_type = 741
31 if (hecmw_is_etype_link(ic_type)) cycle
32 if (hecmw_is_etype_patch(ic_type)) cycle
33 if(ic_type == 3414) cycle
40 if( fstrsolid%elements(icel)%elemact_flag == kelact_inactive ) cycle
41 isect = hecmesh%section_ID(icel)
42 imat = hecmesh%section%sect_mat_ID_item(isect)
43 in0 = hecmesh%elem_node_index(icel-1)
44 nn = hecmw_get_max_node(ic_type)
46 nodlocal(i) = hecmesh%elem_node_item(in0+i)
48 ecoord(j,i) = hecmesh%node(3*(nodlocal(i)-1)+j)
50 temp(i) = fstrheat%TEMP0(nodlocal(i))
54 if(ic_type == 231 .or. ic_type == 232 .or. ic_type == 241 .or. ic_type == 242)
then
55 in = hecmesh%section%sect_R_index(isect)
56 thick = hecmesh%section%sect_R_item(in)
57 call heat_capacity_c2(ic_type, nn, ecoord(1:2,1:nn), temp, thick, lumped, mass, &
58 fstrheat%CPtab(imat), fstrheat%CPtemp(imat,:), fstrheat%CPfuncA(imat,:) ,fstrheat%CPfuncB(imat,:), &
59 fstrheat%RHOtab(imat), fstrheat%RHOtemp(imat,:), fstrheat%RHOfuncA(imat,:), fstrheat%RHOfuncB(imat,:))
61 elseif(ic_type == 341 .or. ic_type == 342 .or. ic_type == 351 .or. ic_type == 352 .or. &
62 & ic_type == 361 .or. ic_type == 362)
then
64 fstrheat%CPtab(imat), fstrheat%CPtemp(imat,:), fstrheat%CPfuncA(imat,:) ,fstrheat%CPfuncB(imat,:), &
65 fstrheat%RHOtab(imat), fstrheat%RHOtemp(imat,:), fstrheat%RHOfuncA(imat,:), fstrheat%RHOfuncB(imat,:))
67 elseif (ic_type == 541)
then
70 elseif(ic_type == 731)
then
71 in = hecmesh%section%sect_R_index(isect)
72 thick = hecmesh%section%sect_R_item(in)
74 fstrheat%CPtab(imat), fstrheat%CPtemp(imat,:), fstrheat%CPfuncA(imat,:) ,fstrheat%CPfuncB(imat,:), &
75 fstrheat%RHOtab(imat), fstrheat%RHOtemp(imat,:), fstrheat%RHOfuncA(imat,:), fstrheat%RHOfuncB(imat,:))
77 elseif(ic_type == 741)
then
78 in = hecmesh%section%sect_R_index(isect)
79 thick = hecmesh%section%sect_R_item(in)
81 fstrheat%CPtab(imat), fstrheat%CPtemp(imat,:), fstrheat%CPfuncA(imat,:) ,fstrheat%CPfuncB(imat,:), &
82 fstrheat%RHOtab(imat), fstrheat%RHOtemp(imat,:), fstrheat%RHOfuncA(imat,:), fstrheat%RHOfuncB(imat,:))
84 elseif(ic_type == 111 .or. ic_type == 301 .or. ic_type == 611 .or. ic_type == 641)
then
85 in = hecmesh%section%sect_R_index(isect)
86 surf = hecmesh%section%sect_R_item(in)
88 fstrheat%CPtab(imat), fstrheat%CPtemp(imat,:), fstrheat%CPfuncA(imat,:) ,fstrheat%CPfuncB(imat,:), &
89 fstrheat%RHOtab(imat), fstrheat%RHOtemp(imat,:), fstrheat%RHOfuncA(imat,:), fstrheat%RHOfuncB(imat,:))
93 write(*,*)
"** error setMASS"
100 hecmat%D(inod) = hecmat%D(inod) + lumped(ip) / delta_time
102 hecmat%B(inod) = hecmat%B(inod) + lumped(ip)*temp(ip) / delta_time
This module defines common data and basic structures for analysis.
subroutine heat_capacity_c1(etype, nn, ecoord, temperature, surf, lumped, ntab1, temp1, funcA1, funcB1, ntab2, temp2, funcA2, funcB2)
subroutine heat_capacity_c2(etype, nn, ecoord, temperature, thick, lumped, mass, ntab1, temp1, funcA1, funcB1, ntab2, temp2, funcA2, funcB2)
subroutine heat_capacity_shell_741(nn, ecoord, temperature, thick, lumped, mass, ntab1, temp1, funcA1, funcB1, ntab2, temp2, funcA2, funcB2)
subroutine heat_capacity_shell_731(nn, ecoord, temperature, thick, lumped, mass, ntab1, temp1, funcA1, funcB1, ntab2, temp2, funcA2, funcB2)
subroutine heat_capacity_c3(etype, nn, ecoord, temperature, lumped, mass, ntab1, temp1, funcA1, funcB1, ntab2, temp2, funcA2, funcB2)
This module provides a subroutine to assemble heat capacity matrix.
subroutine heat_mat_ass_capacity(hecMESH, hecMAT, fstrSOLID, fstrHEAT, delta_time)
Data for HEAT ANSLYSIS (fstrHEAT)