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

Go to the source code of this file.

Functions/Subroutines

subroutine resultsnoddir (nk, v, nactdof, b, ipompc, nodempc, coefmpc, nmpc, mi)
 

Function/Subroutine Documentation

◆ resultsnoddir()

subroutine resultsnoddir ( integer  nk,
real*8, dimension(0:mi(2),*)  v,
integer, dimension(0:mi(2),*)  nactdof,
real*8, dimension(*)  b,
integer, dimension(*)  ipompc,
integer, dimension(3,*)  nodempc,
real*8, dimension(*)  coefmpc,
integer  nmpc,
integer, dimension(*)  mi 
)
21 !
22 ! copying the dof-values into (idir,node) format
23 ! (for sensitivity results; SPC's correspond to zero)
24 !
25  implicit none
26 !
27  integer mi(*),nactdof(0:mi(2),*),ipompc(*),nodempc(3,*),nk,i,j,
28  & nmpc,ist,ndir,node,index
29 !
30  real*8 v(0:mi(2),*),b(*),coefmpc(*),bnac,fixed_disp
31 !
32 ! copying the dof-values into (idir,node) format
33 !
34  do i=1,nk
35  do j=1,mi(2)
36  if(nactdof(j,i).gt.0) then
37  bnac=b(nactdof(j,i))
38  else
39  cycle
40  endif
41  v(j,i)=bnac
42  enddo
43  enddo
44 !
45 ! treating the MPC's
46 !
47  do i=1,nmpc
48  ist=ipompc(i)
49  node=nodempc(1,ist)
50  ndir=nodempc(2,ist)
51  index=nodempc(3,ist)
52  fixed_disp=0.d0
53  if(index.ne.0) then
54  do
55  fixed_disp=fixed_disp-coefmpc(index)*
56  & v(nodempc(2,index),nodempc(1,index))
57  index=nodempc(3,index)
58  if(index.eq.0) exit
59  enddo
60  endif
61  fixed_disp=fixed_disp/coefmpc(ist)
62  v(ndir,node)=fixed_disp
63  enddo
64 !
65  return
Hosted by OpenAircraft.com, (Michigan UAV, LLC)