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

Go to the source code of this file.

Functions/Subroutines

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

Function/Subroutine Documentation

◆ physicalconstantss()

subroutine physicalconstantss ( 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: *PHYSICAL CONSTANTS
23 !
24 ! physcon(1): absolute zero temperature
25 ! (2): Stefan-Boltzmann constant
26 ! (3): Newton gravity constant
27 ! (4): Static temperature at infinity (CFD)
28 ! (5): Norm of the velocity vector at infinity (CFD)
29 ! (6): Static pressure at infinity (CFD)
30 ! (7): Density at infinity (CFD)
31 ! (8): Length of the computational domain (CFD)
32 ! (9): perturbation flag (CFD)
33 !
34  implicit none
35 !
36  character*1 inpc(*)
37  character*132 textpart(16)
38 !
39  integer i,istep,istat,n,key,iline,ipol,inl,ipoinp(2,*),inp(3,*),
40  & ipoinpc(0:*)
41 !
42  real*8 physcon(*)
43 !
44  if(istep.gt.0) then
45  write(*,*) '*ERROR in physicalconstants: *PHYSICAL CONSTANTS'
46  write(*,*) ' should only be used before the first STEP'
47  call exit(201)
48  endif
49 !
50  do i=2,n
51  if(textpart(i)(1:13).eq.'ABSOLUTEZERO=') then
52  read(textpart(i)(14:33),'(f20.0)',iostat=istat) physcon(1)
53  if(istat.gt.0) call inputerror(inpc,ipoinpc,iline,
54  &"*PHYSICAL CONSTANTS%")
55  elseif(textpart(i)(1:16).eq.'STEFANBOLTZMANN=') then
56  read(textpart(i)(17:36),'(f20.0)',iostat=istat) physcon(2)
57  if(istat.gt.0) call inputerror(inpc,ipoinpc,iline,
58  &"*PHYSICAL CONSTANTS%")
59  elseif(textpart(i)(1:14).eq.'NEWTONGRAVITY=') then
60  read(textpart(i)(15:24),'(f20.0)',iostat=istat) physcon(3)
61  if(istat.gt.0) call inputerror(inpc,ipoinpc,iline,
62  &"*PHYSICAL CONSTANTS%")
63  else
64  write(*,*)
65  & '*WARNING in physicalconstants: parameter not recognized:'
66  write(*,*) ' ',
67  & textpart(i)(1:index(textpart(i),' ')-1)
68  call inputwarning(inpc,ipoinpc,iline,
69  &"*PHYSICAL CONSTANTS%")
70  endif
71  enddo
72 !
73  call getnewline(inpc,textpart,istat,n,key,iline,ipol,inl,
74  & ipoinp,inp,ipoinpc)
75 !
76  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)