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

Go to the source code of this file.

Functions/Subroutines

subroutine createfint (ne, ipkon, lakon, kon, nactdof, mi, fn0, fint)
 

Function/Subroutine Documentation

◆ createfint()

subroutine createfint ( integer  ne,
integer, dimension(*)  ipkon,
character*8, dimension(*)  lakon,
integer, dimension(*)  kon,
integer, dimension(0:mi(2),*)  nactdof,
integer, dimension(*)  mi,
real*8, dimension(0:mi(2),*)  fn0,
real*8, dimension(*)  fint 
)
21 !
22  implicit none
23 !
24  character*8 lakon(*)
25 !
26  integer i,j,k,ne,indexe,ipkon(*),nope,node,kon(*),mi(*),
27  & nactdof(0:mi(2),*)
28 !
29  real*8 fn0(0:mi(2),*),fint(*)
30 !
31 ! calculation of the internal force vector for all
32 ! active degrees of freedom
33 !
34  do i=1,ne
35 !
36  if(ipkon(i).lt.0) cycle
37  indexe=ipkon(i)
38 c Bernhardi start
39  if(lakon(i)(1:5).eq.'C3D8I') then
40  nope=11
41  elseif(lakon(i)(4:5).eq.'20') then
42 c Bernhardi end
43  nope=20
44  elseif(lakon(i)(4:4).eq.'8') then
45  nope=8
46  elseif(lakon(i)(4:5).eq.'10') then
47  nope=10
48  elseif(lakon(i)(4:4).eq.'4') then
49  nope=4
50  elseif(lakon(i)(4:5).eq.'15') then
51  nope=15
52  elseif(lakon(i)(4:4).eq.'6') then
53  nope=6
54  endif
55 
56  do j=1,nope
57  node=kon(indexe+j)
58  do k=1,3
59  if(nactdof(k,node).gt.0) then
60  fint(nactdof(k,node))=fint(nactdof(k,node))
61  & +fn0(k,indexe+j)
62  endif
63  enddo
64  enddo
65  enddo
66 !
67  return
Hosted by OpenAircraft.com, (Michigan UAV, LLC)