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

Go to the source code of this file.

Functions/Subroutines

subroutine checktemp (t0, t1, lakon, ne, ipkon, kon)
 

Function/Subroutine Documentation

◆ checktemp()

subroutine checktemp ( real*8, dimension(*)  t0,
real*8, dimension(*)  t1,
character*8, dimension(*)  lakon,
integer  ne,
integer, dimension(*)  ipkon,
integer, dimension(*)  kon 
)
20 !
21 ! check whether for mechanical calculations with temperature
22 ! conditions an initial and final temperature value was assigned
23 ! to each node belonging to an element
24 !
25  implicit none
26 !
27  character*8 lakon(*)
28 !
29  integer ne,ipkon(*),kon(*),i,j,nope,index,node
30 !
31  real*8 t0(*),t1(*)
32 !
33  do i=1,ne
34 !
35  if(lakon(i)(4:4).eq.'2') then
36  nope=20
37  elseif(lakon(i)(4:4).eq.'8') then
38  nope=8
39  elseif(lakon(i)(4:5).eq.'10') then
40  nope=10
41  elseif(lakon(i)(4:4).eq.'4') then
42  nope=4
43  elseif(lakon(i)(4:5).eq.'15') then
44  nope=15
45  elseif(lakon(i)(4:4).eq.'6') then
46  nope=6
47  elseif(lakon(i)(1:2).eq.'ES') then
48  read(lakon(i)(8:8),'(i1)') nope
49  nope=nope+1
50  else
51  cycle
52  endif
53 !
54  index=ipkon(i)
55  if(index.lt.0) cycle
56 !
57  do j=1,nope
58  node=kon(index+j)
59  if(dabs(t0(node)-1.2357111317).lt.1.d-10) then
60  write(*,*) '*ERROR in checktemp: no initial temperature'
61  write(*,*) ' defined in node ',node
62  call exit(201)
63  elseif(dabs(t1(node)-1.2357111317).lt.1.d-10) then
64  write(*,*) '*ERROR in checktemp: no final temperature'
65  write(*,*) ' defined in node ',node
66  call exit(201)
67  endif
68  enddo
69  enddo
70 !
71  return
Hosted by OpenAircraft.com, (Michigan UAV, LLC)