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

Go to the source code of this file.

Functions/Subroutines

subroutine facepernode (iponoelfa, inoelfa, lakonfa, ipkonfa, konfa, nsurfs, inoelsize)
 

Function/Subroutine Documentation

◆ facepernode()

subroutine facepernode ( integer, dimension(*)  iponoelfa,
integer, dimension(3,*)  inoelfa,
character*8, dimension(*)  lakonfa,
integer, dimension(*)  ipkonfa,
integer, dimension(*)  konfa,
integer  nsurfs,
integer  inoelsize 
)
21 !
22  implicit none
23 !
24  character*8 lakonfa(*)
25 !
26  integer iponoelfa(*),inoelfa(3,*),ipkonfa(*),konfa(*),i,j,nsurfs,
27  & inoelfree,nope,indexe,node,inoelsize
28 !
29 ! determining the external faces belonging to the nodes on
30 ! the surface of the structure
31 !
32  inoelfree=1
33  do i=1,nsurfs
34  if(ipkonfa(i).lt.0) cycle
35  if(lakonfa(i)(2:2).eq.'8') then
36  nope=8
37  elseif(lakonfa(i)(2:2).eq.'4') then
38  nope=4
39  elseif(lakonfa(i)(2:2).eq.'6') then
40  nope=6
41  elseif(lakonfa(i)(2:2).eq.'3') then
42  nope=3
43  endif
44  indexe=ipkonfa(i)
45  do j=1,nope
46  node=konfa(indexe+j)
47  inoelfa(1,inoelfree)=i
48  inoelfa(2,inoelfree)=j
49  inoelfa(3,inoelfree)=iponoelfa(node)
50  iponoelfa(node)=inoelfree
51  inoelfree=inoelfree+1
52  enddo
53  enddo
54 !
55 ! size of field inoelfa
56 !
57  inoelsize=inoelfree-1
58 !
59  return
Hosted by OpenAircraft.com, (Michigan UAV, LLC)