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

Go to the source code of this file.

Functions/Subroutines

subroutine updatecont (koncont, ncont, co, vold, cg, straight, mi)
 

Function/Subroutine Documentation

◆ updatecont()

subroutine updatecont ( integer, dimension(4,*)  koncont,
integer  ncont,
real*8, dimension(3,*)  co,
real*8, dimension(0:mi(2),*)  vold,
real*8, dimension(3,*)  cg,
real*8, dimension(16,*)  straight,
integer, dimension(*)  mi 
)
20 !
21 ! update geometric date of the contact master surface triangulation
22 !
23  implicit none
24 !
25  integer koncont(4,*),ncont,i,j,k,node,mi(*)
26 !
27  real*8 co(3,*),vold(0:mi(2),*),cg(3,*),straight(16,*),col(3,3)
28 !
29  do i=1,ncont
30  do j=1,3
31  node=koncont(j,i)
32  do k=1,3
33  col(k,j)=co(k,node)+vold(k,node)
34  enddo
35  enddo
36 !
37 ! center of gravity of the triangles
38 !
39  do k=1,3
40  cg(k,i)=col(k,1)
41  enddo
42  do j=2,3
43  do k=1,3
44  cg(k,i)=cg(k,i)+col(k,j)
45  enddo
46  enddo
47  do k=1,3
48  cg(k,i)=cg(k,i)/3.d0
49  enddo
50 !
51 ! calculating the equation of the triangle plane and the planes
52 ! perpendicular on it and through the triangle edges
53 !
54  call straighteq3d(col,straight(1,i))
55 !
56  enddo
57 !
58  return
subroutine straighteq3d(col, straight)
Definition: straighteq3d.f:20
Hosted by OpenAircraft.com, (Michigan UAV, LLC)