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

Go to the source code of this file.

Functions/Subroutines

subroutine fluidconstantss (inpc, textpart, shcon, nshcon, nmat, ntmat_, irstrt, istep, istat, n, iline, ipol, inl, ipoinp, inp, ipoinpc)
 

Function/Subroutine Documentation

◆ fluidconstantss()

subroutine fluidconstantss ( character*1, dimension(*)  inpc,
character*132, dimension(16)  textpart,
real*8, dimension(0:3,ntmat_,*)  shcon,
integer, dimension(*)  nshcon,
integer  nmat,
integer  ntmat_,
integer  irstrt,
integer  istep,
integer  istat,
integer  n,
integer  iline,
integer  ipol,
integer  inl,
integer, dimension(2,*)  ipoinp,
integer, dimension(3,*)  inp,
integer, dimension(0:*)  ipoinpc 
)
22 !
23 ! reading the input deck: *FLUID CONSTANTS
24 !
25  implicit none
26 !
27  character*1 inpc(*)
28  character*132 textpart(16)
29 !
30  integer nshcon(*),nmat,ntmat,ntmat_,istep,istat,n,ipoinpc(0:*),
31  & key,irstrt,iline,ipol,inl,ipoinp(2,*),inp(3,*),i
32 !
33  real*8 shcon(0:3,ntmat_,*)
34 !
35  ntmat=0
36 !
37  if((istep.gt.0).and.(irstrt.ge.0)) then
38  write(*,*)
39  & '*ERROR in fluidconstants: *FLUID CONSTANTS should be'
40  write(*,*) ' placed before all step definitions'
41  call exit(201)
42  endif
43 !
44  if(nmat.eq.0) then
45  write(*,*)
46  & '*ERROR in fluidconstants: *FLUID CONSTANTS should be'
47  write(*,*) ' preceded by a *MATERIAL card'
48  call exit(201)
49  endif
50 !
51  do i=2,n
52  write(*,*)
53  & '*WARNING in fluidconstants: parameter not recognized:'
54  write(*,*) ' ',
55  & textpart(i)(1:index(textpart(i),' ')-1)
56  call inputwarning(inpc,ipoinpc,iline,
57  &"*FLUID CONSTANTS%")
58  enddo
59 !
60  do
61  call getnewline(inpc,textpart,istat,n,key,iline,ipol,inl,
62  & ipoinp,inp,ipoinpc)
63  if((istat.lt.0).or.(key.eq.1)) return
64  ntmat=ntmat+1
65  nshcon(nmat)=ntmat
66  if(ntmat.gt.ntmat_) then
67  write(*,*) '*ERROR in fluidconstants: increase ntmat_'
68  call exit(201)
69  endif
70  read(textpart(1)(1:20),'(f20.0)',iostat=istat)
71  & shcon(1,ntmat,nmat)
72  if(istat.gt.0) call inputerror(inpc,ipoinpc,iline,
73  &"*FLUID CONSTANTS%")
74  read(textpart(2)(1:20),'(f20.0)',iostat=istat)
75  & shcon(2,ntmat,nmat)
76  if(istat.gt.0) call inputerror(inpc,ipoinpc,iline,
77  &"*FLUID CONSTANTS%")
78  read(textpart(3)(1:20),'(f20.0)',iostat=istat)
79  & shcon(0,ntmat,nmat)
80  if(istat.gt.0) call inputerror(inpc,ipoinpc,iline,
81  &"*FLUID CONSTANTS%")
82  enddo
83 !
84  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)