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

Go to the source code of this file.

Functions/Subroutines

subroutine deltri (numpts, n, x, y, list, bin, v, e, numtri)
 

Function/Subroutine Documentation

◆ deltri()

subroutine deltri ( integer  numpts,
integer  n,
real*8, dimension(*)  x,
real*8, dimension(*)  y,
integer, dimension(*)  list,
integer, dimension(*)  bin,
integer, dimension(3,*)  v,
integer, dimension(3,*)  e,
integer  numtri 
)
24 !
25  implicit none
26 !
27  integer n,i,list(*),v(3,*),e(3,*),numtri,bin(*),p,numpts
28 !
29  real*8 xmin,xmax,ymin,ymax,dmax,c00001,fact,x(*),y(*)
30 !
31  parameter(c00001=1.d0)
32 !
33  xmin=x(list(1))
34  xmax=xmin
35  ymin=y(list(1))
36  ymax=ymin
37  do 5 i=2,n
38  p=list(i)
39  xmin=min(xmin,x(p))
40  xmax=max(xmax,x(p))
41  ymin=min(ymin,y(p))
42  ymax=max(ymax,y(p))
43  5 continue
44  dmax=max(xmax-xmin,ymax-ymin)
45  fact=c00001/dmax
46  do 10 i=1,n
47  p=list(i)
48  x(p)=(x(p)-xmin)*fact
49  y(p)=(y(p)-ymin)*fact
50  10 continue
51  call bsort(n,x,y,xmin,xmax,ymin,ymax,dmax,bin,list)
52  call delaun(numpts,n,x,y,list,bin,v,e,numtri)
53  do 30 i=1,n
54  p=list(i)
55  x(p)=x(p)*dmax+xmin
56  y(p)=y(p)*dmax+ymin
57  30 continue
#define max(a, b)
Definition: cascade.c:32
#define min(a, b)
Definition: cascade.c:31
subroutine bsort(n, x, y, xmin, xmax, ymin, ymax, dmax, bin, list)
Definition: bsort.f:24
subroutine delaun(numpts, n, x, y, list, stack, v, e, numtri)
Definition: delaun.f:24
Hosted by OpenAircraft.com, (Michigan UAV, LLC)