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

Go to the source code of this file.

Functions/Subroutines

subroutine readview (ntr, adview, auview, fenv, nzsrad, ithermal, jobnamef)
 

Function/Subroutine Documentation

◆ readview()

subroutine readview ( integer  ntr,
real*8, dimension(*)  adview,
real*8, dimension(*)  auview,
real*8, dimension(*)  fenv,
integer  nzsrad,
integer  ithermal,
character*132, dimension(*)  jobnamef 
)
28 !
29 ! reading the viewfactors from file
30 !
31  implicit none
32 !
33  logical exi
34 !
35  character*132 jobnamef(*),fnvw
36 !
37  integer ntr,nzsrad,ithermal,i,k
38 !
39  real*8 adview(*),auview(*),fenv(*)
40 !
41  if(ithermal.eq.3) then
42  write(*,*) '*WARNING in radmatrix: viewfactors are being'
43  write(*,*) ' read from file for a thermomechani-'
44  write(*,*) ' cal calculation: they will not be '
45  write(*,*) ' recalculated in every iteration.'
46  endif
47 !
48  write(*,*) 'Reading the viewfactors from file'
49  write(*,*)
50 !
51  if(jobnamef(2)(1:1).eq.' ') then
52  do i=1,132
53  if(jobnamef(1)(i:i).eq.' ') exit
54  enddo
55  i=i-1
56  fnvw=jobnamef(1)(1:i)//'.vwf'
57  else
58  fnvw=jobnamef(2)
59  endif
60  inquire(file=fnvw,exist=exi)
61  if(exi) then
62  open(10,file=fnvw,status='old',form='unformatted',
63  & access='sequential',err=10)
64  else
65  write(*,*) '*ERROR in radmatrix: viewfactor file ',fnvw
66  write(*,*) 'does not exist'
67  call exit(201)
68  endif
69 !
70  read(10) (adview(k),k=1,ntr)
71  read(10) (auview(k),k=1,2*nzsrad)
72  read(10)(fenv(k),k=1,ntr)
73 !
74  close(10)
75 !
76  return
77 !
78  10 write(*,*) '*ERROR in radmatrix: could not open file ',fnvw
79  call exit(201)
static double * adview
Definition: radflowload.c:42
static double * auview
Definition: radflowload.c:42
Hosted by OpenAircraft.com, (Michigan UAV, LLC)