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

Go to the source code of this file.

Functions/Subroutines

subroutine fsub (time, t, a, b, dd, h1, h2, h3, h4, func, funcp)
 

Function/Subroutine Documentation

◆ fsub()

subroutine fsub ( real*8  time,
real*8  t,
real*8  a,
real*8  b,
real*8  dd,
real*8  h1,
real*8  h2,
real*8  h3,
real*8  h4,
real*8  func,
real*8  funcp 
)
20 !
21  implicit none
22 !
23  real*8 time,t,a,b,dd,h1,h2,h3,h4,fexp,fsin,fcos,func,funcp,
24  & h8,h9,h10,h11,h12,h13
25 !
26  fexp=dexp(-h1*t)
27  fsin=dsin(dd*t)
28  fcos=dcos(dd*t)
29  h8=(a+b*time)*fexp/h2
30  h9=-b*fexp/h2
31  h10=-h8*h1
32  h11=h8*dd
33  h12=h9*(-h1*t-h3/h2)
34  h13=h9*(dd*t+h4)
35 !
36 ! function
37 !
38 c fsub=(a+b*time)*fexp*(-h1*fsin-dd*fcos)/h2-b*fexp/h2*((-h1*t-h3/h2)*
39 c & fsin-(dd*t+h4)*fcos)
40  func=h10*fsin-h11*fcos+h12*fsin-h13*fcos
41 !
42 ! derivative of the function
43 !
44  funcp=-h1*func+dd*(h10*fcos+h11*fsin+h12*fcos+h13*fsin)
45 !
46  return
Hosted by OpenAircraft.com, (Michigan UAV, LLC)