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

Go to the source code of this file.

Functions/Subroutines

subroutine materialdata_rho (rhcon, nrhcon, imat, rho, t1l, ntmat_, ithermal)
 

Function/Subroutine Documentation

◆ materialdata_rho()

subroutine materialdata_rho ( real*8, dimension(0:1,ntmat_,*)  rhcon,
integer, dimension(*)  nrhcon,
integer  imat,
real*8  rho,
real*8  t1l,
integer  ntmat_,
integer  ithermal 
)
20 !
21  implicit none
22 !
23 ! determines the density of the material
24 !
25  integer nrhcon(*),imat,two,ntmat_,id,ithermal
26 !
27  real*8 rhcon(0:1,ntmat_,*),rho,t1l
28 !
29  two=2
30 !
31  if(ithermal.eq.0) then
32  rho=rhcon(1,1,imat)
33  else
34  call ident2(rhcon(0,1,imat),t1l,nrhcon(imat),two,id)
35  if(nrhcon(imat).eq.0) then
36  continue
37  elseif(nrhcon(imat).eq.1) then
38  rho=rhcon(1,1,imat)
39  elseif(id.eq.0) then
40  rho=rhcon(1,1,imat)
41  elseif(id.eq.nrhcon(imat)) then
42  rho=rhcon(1,id,imat)
43  else
44  rho=rhcon(1,id,imat)+
45  & (rhcon(1,id+1,imat)-rhcon(1,id,imat))*
46  & (t1l-rhcon(0,id,imat))/
47  & (rhcon(0,id+1,imat)-rhcon(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)