~gabriel1984sibiu/calculix/ccx

« back to all changes in this revision

Viewing changes to CalculiX/ccx_2.11/src/radresult.f

  • Committer: Grevutiu Gabriel
  • Date: 2016-12-30 12:06:41 UTC
  • Revision ID: gabriel1984sibiu@gmail.com-20161230120641-kzmhfy8mn00w3mhg
New upstream version

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
!     
 
2
!     CalculiX - A 3-dimensional finite element program
 
3
!     Copyright (C) 1998-2015 Guido Dhondt
 
4
!     
 
5
!     This program is free software; you can redistribute it and/or
 
6
!     modify it under the terms of the GNU General Public License as
 
7
!     published by the Free Software Foundation(version 2);
 
8
!     
 
9
!     
 
10
!     This program is distributed in the hope that it will be useful,
 
11
!     but WITHOUT ANY WARRANTY; without even the implied warranty of 
 
12
!     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 
 
13
!     GNU General Public License for more details.
 
14
!     
 
15
!     You should have received a copy of the GNU General Public License
 
16
!     along with this program; if not, write to the Free Software
 
17
!     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
18
!     
 
19
      subroutine radresult(ntr,xloadact,bcr,nloadtr,tarea,
 
20
     &     tenv,physcon,erad,auview,fenv,irowrad,jqrad,
 
21
     &     nzsrad,q)
 
22
!     
 
23
      implicit none
 
24
!     
 
25
      integer i,j,k,ntr,nloadtr(*),irowrad(*),jqrad(*),nzsrad
 
26
!     
 
27
      real*8 xloadact(2,*), tarea(*),tenv(*),auview(*),
 
28
     &     erad(*),fenv(*),physcon(*),bcr(ntr),q(*)
 
29
!     
 
30
!     calculating the flux and transforming the flux into an
 
31
!     equivalent temperature
 
32
!     
 
33
      write(*,*) ''
 
34
!      
 
35
      do i=1,ntr
 
36
         q(i)=bcr(i)
 
37
      enddo
 
38
!
 
39
!        lower triangle
 
40
!
 
41
      do i=1,ntr
 
42
         do j=jqrad(i),jqrad(i+1)-1
 
43
            k=irowrad(j)
 
44
            q(k)=q(k)-auview(j)*bcr(i)
 
45
!     
 
46
!        upper triangle
 
47
!
 
48
            q(i)=q(i)-auview(nzsrad+j)*bcr(k)
 
49
         enddo
 
50
      enddo
 
51
!
 
52
      do i=1,ntr
 
53
         j=nloadtr(i)
 
54
         q(i)=q(i)-fenv(i)*physcon(2)*tenv(i)**4
 
55
         xloadact(2,j)=
 
56
     &        max(tarea(i)**4-q(i)/(erad(i)*physcon(2)),0.d0)
 
57
         xloadact(2,j)=(xloadact(2,j))**0.25+physcon(1)
 
58
      enddo
 
59
!     
 
60
      return
 
61
      end