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

Go to the source code of this file.

Functions/Subroutines

subroutine calc_ider_wye (df, pt1, Tt1, xflow1, xflow2, pt2, Tt2, ichan_num, A1, A2, A_s, dh1, dh2, alpha, zeta_fac, kappa, R, ider, iflag)
 

Function/Subroutine Documentation

◆ calc_ider_wye()

subroutine calc_ider_wye ( real*8, dimension(6)  df,
real*8  pt1,
real*8  Tt1,
real*8  xflow1,
real*8  xflow2,
real*8  pt2,
real*8  Tt2,
integer  ichan_num,
real*8  A1,
real*8  A2,
real*8  A_s,
real*8  dh1,
real*8  dh2,
real*8  alpha,
real*8  zeta_fac,
real*8  kappa,
real*8  R,
integer  ider,
integer  iflag 
)
22 !
23  implicit none
24 !
25  integer ichan_num,ider,iflag
26 !
27  real*8
28  &df(6),
29  &pt1,
30  &pt2,
31  &tt1,
32  &tt2,
33  &xflow1,
34  &xflow2,
35  &a1,
36  &a2,
37  &a_s,
38  &kappa,
39  &r,
40  &dh1,
41  &dh2,
42  &alpha,
44  &eps,
45  &h,
46  &f0,
47  &zeta_fac
48 !
49  eps = 1.0e-4
50 !
51  f0 = calc_residual_wye(pt1,tt1,xflow1,xflow2,pt2,
52  &tt2,ichan_num,a1,a2,a_s,dh1,dh2,alpha,zeta_fac,kappa,
53  &r,ider,iflag)
54 !
55  h = eps*dabs(pt1)
56  if(h.eq.0)then
57  h = eps
58  endif
59  df(1) = (calc_residual_wye(pt1+h,tt1,xflow1,xflow2,pt2,
60  &tt2,ichan_num,a1,a2,a_s,dh1,dh2,alpha,zeta_fac,kappa,r,ider,
61  &iflag)-f0)/h
62 !
63  h = eps*dabs(tt1)
64  if(h.eq.0)then
65  h = eps
66  endif
67  df(2) = (calc_residual_wye(pt1,tt1+h,xflow1,xflow2,pt2,
68  &tt2,ichan_num,a1,a2,a_s,dh1,dh2,alpha,zeta_fac,kappa,r,ider,
69  &iflag)-f0)/h
70 !
71  h = eps*dabs(xflow1)
72  if(h.eq.0)then
73  h = eps
74  endif
75  df(3) = (calc_residual_wye(pt1,tt1,xflow1+h,xflow2,pt2,
76  &tt2,ichan_num,a1,a2,a_s,dh1,dh2,alpha,zeta_fac,kappa,r,ider,
77  &iflag)-f0)/h
78 !
79  h = eps*dabs(xflow2)
80  if(h.eq.0)then
81  h = eps
82  endif
83  df(4) = (calc_residual_wye(pt1,tt1,xflow1,xflow2+h,pt2,
84  &tt2,ichan_num,a1,a2,a_s,dh1,dh2,alpha,zeta_fac,kappa,r,ider,
85  &iflag)-f0)/h
86 !
87  h = eps*dabs(pt2)
88  if(h.eq.0)then
89  h = eps
90  endif
91  df(5) = (calc_residual_wye(pt1,tt1,xflow1,xflow2,pt2+h,
92  &tt2,ichan_num,a1,a2,a_s,dh1,dh2,alpha,zeta_fac,kappa,r,ider,
93  &iflag)-f0)/h
94 !
95  h = eps*dabs(tt2)
96  if(h.eq.0)then
97  h = eps
98  endif
99  df(6) = (calc_residual_wye(pt1,tt1,xflow1,xflow2,pt2,
100  &tt2+h,ichan_num,a1,a2,a_s,dh1,dh2,alpha,zeta_fac,kappa,r,ider,
101  &iflag)-f0)/h
102 !
103  return
subroutine df(x, u, uprime, rpar, nev)
Definition: subspace.f:133
real *8 function calc_residual_wye(pt1, Tt1, xflow1, xflow2, pt2, Tt2, ichan_num, A1, A2, A_s, dh1, dh2, alpha, zeta_fac, kappa, R, ider, iflag)
Definition: calc_residual_wye.f:23
Hosted by OpenAircraft.com, (Michigan UAV, LLC)