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

Go to the source code of this file.

Functions/Subroutines

subroutine intersectionpoint (pa, pb, xcp, t, xinters)
 

Function/Subroutine Documentation

◆ intersectionpoint()

subroutine intersectionpoint ( real*8, dimension(*)  pa,
real*8, dimension(*)  pb,
real*8, dimension(*)  xcp,
real*8  t,
real*8, dimension(*)  xinters 
)
20 !
21  implicit none
22 !
23  integer k
24 !
25  real*8 pa(*),pb(*),xcp(*),t,xinters(*),diff,pab(3),
26  & eplane,tnull
27 !
28  do k=1,3
29  pab(k)=pb(k)-pa(k)
30  enddo
31  diff=0.0
32  if(abs(eplane(pab,xcp,0)).lt.1.d-13)then
33  write(*,*) 'SH: IP no intersection point can be found'
34  write(*,*) 'SH: IP pab paralell to plane! '
35  call exit(201)
36  else
37  tnull=0.0
38  diff=-eplane(pa, xcp,t)/eplane(pab,xcp,tnull)
39  endif
40  do k=1,3
41  xinters(k)=pa(k)+diff*pab(k)
42  enddo
43  return
real *8 function eplane(x, n, t)
Definition: eplane.f:20
Hosted by OpenAircraft.com, (Michigan UAV, LLC)