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

Go to the source code of this file.

Functions/Subroutines

subroutine calch0interface (nmpc, ipompc, nodempc, coefmpc, h0)
 

Function/Subroutine Documentation

◆ calch0interface()

subroutine calch0interface ( integer  nmpc,
integer, dimension(*)  ipompc,
integer, dimension(3,*)  nodempc,
real*8, dimension(*)  coefmpc,
real*8, dimension(3,*)  h0 
)
27 !
28  implicit none
29 !
30  integer i,j,nmpc,ist,ipompc(*),ndir,nodempc(3,*),node,index
31 !
32  real*8 h0(3,*),coefmpc(*),h0l(3)
33 !
34  do i=1,nmpc
35  ist=ipompc(i)
36  if(ist.gt.0) then
37  ndir=nodempc(2,ist)
38 !
39 ! looking for MPC's tying phi between the A or A-V
40 ! domains and the phi-domain
41 !
42  if(ndir.eq.5) then
43  node=nodempc(1,ist)
44  index=nodempc(3,ist)
45  do j=1,3
46  h0l(j)=0.d0
47  enddo
48  if(index.ne.0) then
49  do
50  do j=1,3
51  h0l(j)=h0l(j)-coefmpc(index)*
52  & h0(j,nodempc(1,index))
53  enddo
54  index=nodempc(3,index)
55  if(index.eq.0) exit
56  enddo
57  endif
58  do j=1,3
59  h0(j,node)=h0l(j)/coefmpc(ist)
60  enddo
61  endif
62  endif
63  enddo
64 !
65  return
Hosted by OpenAircraft.com, (Michigan UAV, LLC)