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

Go to the source code of this file.

Functions/Subroutines

subroutine randomfields (inpc, textpart, istep, istat, n, iline, ipol, inl, ipoinp, inp, ipoinpc, nener, physcon)
 

Function/Subroutine Documentation

◆ randomfields()

subroutine randomfields ( character*1, dimension(*)  inpc,
character*132, dimension(16)  textpart,
integer  istep,
integer  istat,
integer  n,
integer  iline,
integer  ipol,
integer  inl,
integer, dimension(2,*)  ipoinp,
integer, dimension(3,*)  inp,
integer, dimension(0:*)  ipoinpc,
integer  nener,
real*8, dimension(*)  physcon 
)
21 !
22 ! reading the input deck: *RANDOM FIELD
23 !
24 ! characterized by standarddeviation and correlation length
25 !
26  implicit none
27 !
28  character*1 inpc(*)
29  character*132 textpart(16)
30 !
31  integer istep,istat,n,key,i,iline,ipol,inl,ipoinp(2,*),
32  & inp(3,*),ipoinpc(0:*),nener,k,ipos,neigenvectors
33 !
34  real*8 physcon(*),dummy
35 !
36  if(istep.lt.1) then
37  write(*,*) '*ERROR reading *RANDOM FIELD: *RANDOM FIELD can'
38  write(*,*) ' only be used within a *SENSITIVITY step'
39  call exit(201)
40  endif
41 !
42  call getnewline(inpc,textpart,istat,n,key,iline,ipol,inl,
43  & ipoinp,inp,ipoinpc)
44 !
45 ! reading the standard deviation and the correlation length
46 !
47 ! Number of eigenvectors used for the creation of the random field
48 !
49  read(textpart(1)(1:20),'(i10)',iostat=istat) neigenvectors
50  physcon(11)=1.d0*neigenvectors
51 !
52 ! Standarddeviation
53 !
54  read(textpart(2)(1:20),'(f20.0)',iostat=istat) physcon(12)
55 !
56 ! Correlation length
57 !
58  read(textpart(3)(1:20),'(f20.0)',iostat=istat) physcon(13)
59 !
60  call getnewline(inpc,textpart,istat,n,key,iline,ipol,inl,
61  & ipoinp,inp,ipoinpc)
62 !
63  return
subroutine getnewline(inpc, textpart, istat, n, key, iline, ipol, inl, ipoinp, inp, ipoinpc)
Definition: getnewline.f:21
Hosted by OpenAircraft.com, (Michigan UAV, LLC)