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

Go to the source code of this file.

Functions/Subroutines

subroutine cd_preswirlnozzle (ps2, pt1, number, curve, x_tab, y_tab, cd)
 

Function/Subroutine Documentation

◆ cd_preswirlnozzle()

subroutine cd_preswirlnozzle ( real*8  ps2,
real*8  pt1,
integer  number,
integer  curve,
real*8, dimension(15)  x_tab,
real*8, dimension(15)  y_tab,
real*8  cd 
)
25 !
26 !
27 ! in : SImultation of the secondary air system of aero engines
28 ! K.J.KUTZ T.M. SPEER
29 ! Transactions of the ASME vol.116 April 1994
30 !
31  implicit none
32 !
33  integer id,number,curve,n11
34 !
35  real*8 x_tab(15),y_tab(15)
36 !
37  real*8 cdxp(11)
38  data cdxp
39  & /0.4d0,0.45d0,0.50d0,0.55d0,0.60d0,0.65d0,0.70d0,0.75d0,
40  & 0.80d0,0.85d0,0.90d0/
41 !
42  real*8 cdyp(11)
43  data cdyp
44  & /0.942d0,0.939d0,0.932d0,0.929d0,0.925d0,0.921d0,0.917d0,
45  & 0.910d0,0.899d0,0.881d0,0.873d0/
46 !
47  data n11 /11/
48 !
49 ! determination of cd with the caracteristics by interpolation
50 !
51  real*8 ps2,pt1,ps2vpt1,cd
52 !
53  ps2vpt1=ps2/pt1
54  if(number.eq.0) then
55  call ident(cdxp,ps2vpt1,n11,id)
56  if(id.eq.0.6d0) then
57  cd=cdyp(1)
58  elseif(id.ge.1) then
59  cd=cdyp(11)
60  else
61  cd=cdyp(id)+(cdyp(id+1)-cdyp(id))
62  & *(ps2vpt1-cdxp(id))/(cdxp(id+1)-cdxp(id))
63  endif
64  else
65  call ident(x_tab,ps2vpt1,number,id)
66  if(id.le.1d0) then
67  cd=y_tab(1)
68  elseif(id.ge.15) then
69  cd=y_tab(15)
70  else
71  cd=y_tab(id)+(y_tab(id+1)-y_tab(id))
72  & *(ps2vpt1-x_tab(id))/(x_tab(id+1)-x_tab(id))
73  endif
74  endif
75 !
76  return
subroutine ident(x, px, n, id)
Definition: ident.f:26
Hosted by OpenAircraft.com, (Michigan UAV, LLC)