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

Go to the source code of this file.

Functions/Subroutines

subroutine updatecont2d (koncont, ncont, co, cg, straight)
 

Function/Subroutine Documentation

◆ updatecont2d()

subroutine updatecont2d ( integer, dimension(3,*)  koncont,
integer  ncont,
real*8, dimension(2,*)  co,
real*8, dimension(2,*)  cg,
real*8, dimension(9,*)  straight 
)
20 !
21 ! update geometric date of the contact master surface triangulation
22 !
23  implicit none
24 !
25  integer koncont(3,*),ncont,i,j,k,node
26 !
27  real*8 co(2,*),cg(2,*),straight(9,*),col(2,3)
28 !
29  do i=1,ncont
30  do j=1,3
31  node=koncont(j,i)
32  do k=1,2
33  col(k,j)=co(k,node)
34  enddo
35  enddo
36 !
37 ! center of gravity of the triangles
38 !
39  do k=1,2
40  cg(k,i)=col(k,1)
41  enddo
42  do j=2,3
43  do k=1,2
44  cg(k,i)=cg(k,i)+col(k,j)
45  enddo
46  enddo
47  do k=1,2
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 straighteq2d(col,straight(1,i))
55 !
56  enddo
57 !
58  return
subroutine straighteq2d(col, straight)
Definition: straighteq2d.f:20
Hosted by OpenAircraft.com, (Michigan UAV, LLC)