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

Go to the source code of this file.

Functions/Subroutines

subroutine elementpernode (iponoel, inoel, lakon, ipkon, kon, ne, inoelsize)
 

Function/Subroutine Documentation

◆ elementpernode()

subroutine elementpernode ( integer, dimension(*)  iponoel,
integer, dimension(2,*)  inoel,
character*8, dimension(*)  lakon,
integer, dimension(*)  ipkon,
integer, dimension(*)  kon,
integer  ne,
integer  inoelsize 
)
21 !
22  implicit none
23 !
24  character*8 lakon(*)
25 !
26  integer iponoel(*),inoel(2,*),ipkon(*),kon(*),i,j,ne,
27  & inoelfree,nope,indexe,node,inoelsize
28 !
29 ! determining the elements belonging to the nodes of
30 ! the elements
31 !
32  inoelfree=1
33  do i=1,ne
34  if(ipkon(i).lt.0) cycle
35  if(lakon(i)(1:1).eq.'F') cycle
36  if(lakon(i)(4:4).eq.'2') then
37  nope=20
38  elseif(lakon(i)(4:4).eq.'8') then
39  nope=8
40  elseif(lakon(i)(4:4).eq.'4') then
41  nope=4
42  elseif(lakon(i)(4:5).eq.'10') then
43  nope=10
44  elseif(lakon(i)(4:4).eq.'6') then
45  nope=6
46  elseif(lakon(i)(4:5).eq.'15') then
47  nope=15
48  elseif((lakon(i)(1:2).eq.'ES').or.
49  & (lakon(i)(1:2).eq.'ED')) then
50  read(lakon(i)(8:8),'(i1)') nope
51  nope=nope+1
52  else
53  cycle
54  endif
55  indexe=ipkon(i)
56  do j=1,nope
57  node=kon(indexe+j)
58  inoel(1,inoelfree)=i
59  inoel(2,inoelfree)=iponoel(node)
60  iponoel(node)=inoelfree
61  inoelfree=inoelfree+1
62  enddo
63  enddo
64 !
65 ! size of field inoel
66 !
67  inoelsize=inoelfree-1
68 !
69  return
Hosted by OpenAircraft.com, (Michigan UAV, LLC)