CalculiX  2.13
A Free Software Three-Dimensional Structural Finite Element Program
adaptconnectivity.f File Reference

Go to the source code of this file.

Functions/Subroutines

subroutine adaptconnectivity (konl1, iface, konl2, konl2f, neighbor)
 

Function/Subroutine Documentation

◆ adaptconnectivity()

subroutine adaptconnectivity ( integer, dimension(8), intent(in)  konl1,
integer, intent(in)  iface,
integer, dimension(8), intent(in)  konl2,
integer, dimension(8), intent(inout)  konl2f,
integer, dimension(8,8,8), intent(in)  neighbor 
)
21 !
22 ! the 8-node volumetric elements with topologies konl1 and
23 ! konl2 have the face iface in common. iface is the local face
24 ! number for topology konl1. A new topology for element 2
25 ! is looked for, which is such that the local xi, eta and
26 ! zeta axes point in the same direction for both elements
27 !
28  implicit none
29 !
30  integer konl1(8),konl2(8),iface,konl2f(8),ifaceq(8,6),
31  & ifaceqtrans(4,6),konf1l(4),konf1r(4),konf2l(4),konf2r(4),
32  & node,i,j,i1,i2,i3,neighbor(8,8,8)
33 !
34  intent(in) konl1,iface,konl2,neighbor
35 !
36  intent(inout) konl2f
37 !
38 ! facial nodes
39 !
40  data ifaceq /4,3,2,1,11,10,9,12,
41  & 5,6,7,8,13,14,15,16,
42  & 1,2,6,5,9,18,13,17,
43  & 2,3,7,6,10,19,14,18,
44  & 3,4,8,7,11,20,15,19,
45  & 4,1,5,8,12,17,16,20/
46 !
47 ! opposite (translated) nodes to ifaceq
48 !
49  data ifaceqtrans /8,7,6,5,
50  & 1,2,3,4,
51  & 4,3,7,8,
52  & 1,4,8,5,
53  & 2,1,5,6,
54  & 3,2,6,7/
55 !
56  do i=1,4
57  konf1l(i)=ifaceqtrans(i,iface)
58  konf1r(i)=ifaceq(i,iface)
59  enddo
60 !
61  do i=1,4
62  node=konl1(konf1r(i))
63  do j=1,8
64  if(konl2(j).eq.node) then
65  konf2l(i)=j
66  exit
67  endif
68  enddo
69  enddo
70 !
71  do i=1,4
72  i2=konf2l(i)
73  if(i.eq.1) then
74  i1=konf2l(4)
75  else
76  i1=konf2l(i-1)
77  endif
78  if(i.eq.4) then
79  i3=konf2l(1)
80  else
81  i3=konf2l(i+1)
82  endif
83  konf2r(i)=neighbor(i1,i2,i3)
84  enddo
85 !
86  do i=1,4
87  konl2f(konf1l(i))=konl2(konf2l(i))
88  konl2f(konf1r(i))=konl2(konf2r(i))
89  enddo
90 !
91  return
Hosted by OpenAircraft.com, (Michigan UAV, LLC)