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

Go to the source code of this file.

Functions/Subroutines

subroutine materialdata_cp (imat, ntmat_, t1l, shcon, nshcon, cp)
 

Function/Subroutine Documentation

◆ materialdata_cp()

subroutine materialdata_cp ( integer  imat,
integer  ntmat_,
real*8  t1l,
real*8, dimension(0:3,ntmat_,*)  shcon,
integer, dimension(*)  nshcon,
real*8  cp 
)
19 !
20  implicit none
21 !
22 ! determines the specific heat
23 !
24  integer imat,ntmat_,id,nshcon(*),four
25 !
26  real*8 t1l,shcon(0:3,ntmat_,*),cp
27 !
28  four=4
29 !
30 ! calculating the specific heat
31 !
32  call ident2(shcon(0,1,imat),t1l,nshcon(imat),four,id)
33  if(nshcon(imat).eq.0) then
34  continue
35  elseif(nshcon(imat).eq.1) then
36  cp=shcon(1,1,imat)
37  elseif(id.eq.0) then
38  cp=shcon(1,1,imat)
39  elseif(id.eq.nshcon(imat)) then
40  cp=shcon(1,id,imat)
41  else
42  cp=shcon(1,id,imat)+
43  & (shcon(1,id+1,imat)-shcon(1,id,imat))*
44  & (t1l-shcon(0,id,imat))/
45  & (shcon(0,id+1,imat)-shcon(0,id,imat))
46  endif
47 !
48  return
subroutine ident2(x, px, n, ninc, id)
Definition: ident2.f:27
Hosted by OpenAircraft.com, (Michigan UAV, LLC)