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

Go to the source code of this file.

Functions/Subroutines

subroutine materialdata_dvi (shcon, nshcon, imat, dvi, t1l, ntmat_, ithermal)
 

Function/Subroutine Documentation

◆ materialdata_dvi()

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