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

Go to the source code of this file.

Functions/Subroutines

subroutine equationcheck (ac, nteq, nactdog, itg, ntg, nacteq, network)
 

Function/Subroutine Documentation

◆ equationcheck()

subroutine equationcheck ( real*8, dimension(nteq,*)  ac,
integer  nteq,
integer, dimension(0:3,*)  nactdog,
integer, dimension(*)  itg,
integer  ntg,
integer, dimension(0:3,*)  nacteq,
integer  network 
)
23 !
24  implicit none
25 !
26  integer nactdog(0:3,*),nteq,itg(*),ntg,i,j,k,l,node,
27  & nacteq(0:3,*),network
28 !
29  real*8 ac(nteq,*)
30 !
31 ! checking the columns
32 !
33  loop1: do j=1,nteq
34  do i=1,nteq
35  if(dabs(ac(i,j)).gt.0.d0) cycle loop1
36  enddo
37  do k=1,ntg
38  node=itg(k)
39  do l=0,2
40  if(nactdog(l,node).eq.j) then
41  if(l.eq.0) then
42  write(*,*) '*INFO in equationcheck: temperatur
43  &e in node ',node, ' cannot be determined: probably no incoming
44  & mass flow'
45  elseif(l.eq.2) then
46  write(*,*) '*INFO in equationcheck: pressure i
47  &n node ',node, ' cannot be determined: all incoming elements a
48  &re probably critical'
49  endif
50  cycle loop1
51  endif
52  enddo
53  enddo
54  enddo loop1
55 !
56 ! checking the rows
57 !
58  loop2: do i=1,nteq
59  do j=1,nteq
60  if(dabs(ac(i,j)).gt.0.d0) cycle loop2
61  enddo
62  do k=1,ntg
63  node=itg(k)
64  do l=0,2
65  if(nacteq(l,node).eq.i) then
66  if(l.eq.0) then
67  write(*,*) '*INFO in equationcheck: energy equ
68  &ation in node ',node, ' is identically zero: probably no incom
69  &ing mass flow'
70  elseif(l.eq.2) then
71  write(*,*) '*INFO in equationcheck: element eq
72  &uation in node',node, ' is identically zero: the element is probab
73  &ly critical'
74  endif
75  cycle loop2
76  endif
77  enddo
78  enddo
79  enddo loop2
80 !
81  if(network.le.2) then
82  write(*,*) '*ERROR in equationcheck: singular system in'
83  write(*,*) ' thermal network'
84  call exit(201)
85  endif
86 !
87  return
Hosted by OpenAircraft.com, (Michigan UAV, LLC)