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

Go to the source code of this file.

Functions/Subroutines

subroutine autocovmatrix (co, ad, au, jqs, irows, ndesi, nodedesi, physcon)
 

Function/Subroutine Documentation

◆ autocovmatrix()

subroutine autocovmatrix ( real*8, dimension(3,*)  co,
real*8, dimension(*)  ad,
real*8, dimension(*)  au,
integer, dimension(*)  jqs,
integer, dimension(*)  irows,
integer  ndesi,
integer, dimension(*)  nodedesi,
real*8, dimension(*)  physcon 
)
21 !
22 ! calculates the values of the autocovariance matrix
23 !
24  implicit none
25 !
26  integer jqs(*),irows(*),ndesi,nodedesi(*),idof,j,jdof,node1,
27  & node2
28 !
29  real*8 co(3,*),ad(*),au(*),physcon(*),dist,corrlength,sigma
30 !
31  corrlength=physcon(13)
32  sigma=physcon(12)
33 !
34  do idof=1,ndesi
35  ad(idof)=sigma*sigma
36  do j=jqs(idof),jqs(idof+1)-1
37  jdof=irows(j)
38  node1=nodedesi(idof)
39  node2=nodedesi(jdof)
40  dist=dsqrt((co(1,node1)-co(1,node2))**2+
41  & (co(2,node1)-co(2,node2))**2+
42  & (co(3,node1)-co(3,node2))**2)
43 !
44 ! assign the value to the autocovariance matrix
45 !
46  au(j)=ad(idof)*dexp(-(dist/corrlength)**2)
47  enddo
48  enddo
49 !
50  return
static double * dist
Definition: radflowload.c:42
Hosted by OpenAircraft.com, (Michigan UAV, LLC)