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

Go to the source code of this file.

Functions/Subroutines

subroutine identifyface (konl1, konl2, iface1, iface2)
 

Function/Subroutine Documentation

◆ identifyface()

subroutine identifyface ( integer, dimension(8), intent(in)  konl1,
integer, dimension(8), intent(in)  konl2,
integer, intent(in)  iface1,
integer, intent(inout)  iface2 
)
20 !
21 ! the topology of one and the same 8-node element is described
22 ! in two different ways: konl1 and konl2. This routine identifies
23 ! the internal face number iface2 of konl2 which corresponds to face
24 ! number iface1 of konl1
25 !
26  implicit none
27 !
28  integer konl1(8),konl2(8),iface1,iface2,konl(3),i,j,kode,node,
29  & ifaceq(8,6)
30 !
31  intent(in) konl1,konl2,iface1
32 !
33  intent(inout) iface2
34 !
35  data ifaceq /4,3,2,1,11,10,9,12,
36  & 5,6,7,8,13,14,15,16,
37  & 1,2,6,5,9,18,13,17,
38  & 2,3,7,6,10,19,14,18,
39  & 3,4,8,7,11,20,15,19,
40  & 4,1,5,8,12,17,16,20/
41 !
42  do j=1,3
43  konl(j)=0
44  enddo
45 !
46 ! the face is identified using the first three entries
47 ! of topology konl2
48 !
49  do i=1,4
50  node=konl1(ifaceq(i,iface1))
51  do j=1,3
52  if(konl2(j).eq.node) then
53  konl(j)=1
54  exit
55  endif
56  enddo
57  enddo
58 !
59  kode=4*konl(1)+2*konl(2)+konl(3)
60  if(kode.eq.7) then
61  iface2=1
62  elseif(kode.eq.0) then
63  iface2=2
64  elseif(kode.eq.6) then
65  iface2=3
66  elseif(kode.eq.3) then
67  iface2=4
68  elseif(kode.eq.1) then
69  iface2=5
70  else
71  iface2=6
72  endif
73 !
74  return
Hosted by OpenAircraft.com, (Michigan UAV, LLC)