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

Go to the source code of this file.

Functions/Subroutines

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

Function/Subroutine Documentation

◆ valuesatinfinitys()

subroutine valuesatinfinitys ( character*1, dimension(*)  inpc,
character*132, dimension(16)  textpart,
real*8, dimension(*)  physcon,
integer  istep,
integer  istat,
integer  n,
integer  iline,
integer  ipol,
integer  inl,
integer, dimension(2,*)  ipoinp,
integer, dimension(3,*)  inp,
integer, dimension(0:*)  ipoinpc 
)
21 !
22 ! reading the input deck: *VALUES AT INFINITY
23 !
24 ! physcon(4): static temperature at infinity
25 ! physcon(5): norm of the velocity at infinity
26 ! physcon(6): static pressure at infinity
27 ! physcon(7): density at infinity
28 ! physcon(8): length of the computational domain
29 !
30  implicit none
31 !
32  character*1 inpc(*)
33  character*132 textpart(16)
34 !
35  integer i,istep,istat,n,key,iline,ipol,inl,ipoinp(2,*),inp(3,*),
36  & ipoinpc(0:*)
37 !
38  real*8 physcon(*)
39 !
40  if(istep.gt.0) then
41  write(*,*) '*ERROR in valuesatinf: *VALUES AT INFINITY'
42  write(*,*) ' should only be used before the first STEP'
43  call exit(201)
44  endif
45 !
46  do i=2,n
47  write(*,*)
48  & '*WARNING in valuesatinf: parameter not recognized:'
49  write(*,*) ' ',
50  & textpart(i)(1:index(textpart(i),' ')-1)
51  call inputwarning(inpc,ipoinpc,iline,
52  &"*VALUES AT INFINITY%")
53  enddo
54 !
55  call getnewline(inpc,textpart,istat,n,key,iline,ipol,inl,
56  & ipoinp,inp,ipoinpc)
57 !
58  do i=1,5
59  read(textpart(i),'(f20.0)',iostat=istat) physcon(3+i)
60  if(istat.gt.0) call inputerror(inpc,ipoinpc,iline,
61  &"*VALUES AT INFINITY%")
62  enddo
63 !
64  call getnewline(inpc,textpart,istat,n,key,iline,ipol,inl,
65  & ipoinp,inp,ipoinpc)
66 !
67  return
subroutine inputwarning(inpc, ipoinpc, iline, text)
Definition: inputwarning.f:20
subroutine getnewline(inpc, textpart, istat, n, key, iline, ipol, inl, ipoinp, inp, ipoinpc)
Definition: getnewline.f:21
subroutine inputerror(inpc, ipoinpc, iline, text)
Definition: inputerror.f:20
Hosted by OpenAircraft.com, (Michigan UAV, LLC)