2
! CalculiX - A 3-dimensional finite element program
3
! Copyright (C) 1998-2015 Guido Dhondt
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);
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.
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.
19
subroutine radresult(ntr,xloadact,bcr,nloadtr,tarea,
20
& tenv,physcon,erad,auview,fenv,irowrad,jqrad,
25
integer i,j,k,ntr,nloadtr(*),irowrad(*),jqrad(*),nzsrad
27
real*8 xloadact(2,*), tarea(*),tenv(*),auview(*),
28
& erad(*),fenv(*),physcon(*),bcr(ntr),q(*)
30
! calculating the flux and transforming the flux into an
31
! equivalent temperature
42
do j=jqrad(i),jqrad(i+1)-1
44
q(k)=q(k)-auview(j)*bcr(i)
48
q(i)=q(i)-auview(nzsrad+j)*bcr(k)
54
q(i)=q(i)-fenv(i)*physcon(2)*tenv(i)**4
56
& max(tarea(i)**4-q(i)/(erad(i)*physcon(2)),0.d0)
57
xloadact(2,j)=(xloadact(2,j))**0.25+physcon(1)