Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RADI_CalcEffTemp.F90
Go to the documentation of this file.
1 ! *********************************************************************
2 ! * Rocstar Simulation Suite *
3 ! * Copyright@2015, Illinois Rocstar LLC. All rights reserved. *
4 ! * *
5 ! * Illinois Rocstar LLC *
6 ! * Champaign, IL *
7 ! * www.illinoisrocstar.com *
8 ! * sales@illinoisrocstar.com *
9 ! * *
10 ! * License: See LICENSE file in top level of distribution package or *
11 ! * http://opensource.org/licenses/NCSA *
12 ! *********************************************************************
13 ! *********************************************************************
14 ! * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, *
15 ! * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES *
16 ! * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND *
17 ! * NONINFRINGEMENT. IN NO EVENT SHALL THE CONTRIBUTORS OR *
18 ! * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
19 ! * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, *
20 ! * Arising FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE *
21 ! * USE OR OTHER DEALINGS WITH THE SOFTWARE. *
22 ! *********************************************************************
23 !******************************************************************************
24 !
25 ! Purpose: compute the effective temperature as a compossite temperature of
26 ! participating components (gas, particles, smoke, etc).
27 !
28 ! Description: none.
29 !
30 ! Input: region = data of current region.
31 !
32 ! Output: region%levels%radi%dv = radiation effective temperature as dv comp.
33 !
34 ! Notes: none.
35 !
36 !******************************************************************************
37 !
38 ! $Id: RADI_CalcEffTemp.F90,v 1.3 2008/12/06 08:44:37 mtcampbe Exp $
39 !
40 ! Copyright: (c) 2001 by the University of Illinois
41 !
42 !******************************************************************************
43 
44 SUBROUTINE radi_calcefftemp( region )
45 
46  USE moddatatypes
47  USE moddatastruct, ONLY : t_region
49  USE moderror
50  USE modparameters
52  IMPLICIT NONE
53 
54 #include "Indexing.h"
55 
56 ! ... parameters
57  TYPE(t_region) :: region
58 
59 ! ... loop variables
60  INTEGER :: i, j, k
61 
62 ! ... local variables
63  INTEGER :: idcbeg, idcend, jdcbeg, jdcend, kdcbeg, kdcend
64  INTEGER :: ilev, icoff, ijcoff, ijkc
65 
66  REAL(RFREAL), POINTER :: dv(:,:), rdv(:,:)
67 
68 !******************************************************************************
69 
70  CALL registerfunction( region%global,'RADI_CalcEffTemp',&
71  'RADI_CalcEffTemp.F90' )
72 
73 ! get dimensions and pointers -------------------------------------------------
74 
75  ilev = region%currLevel
76 
77  CALL rflo_getdimensdummy( region,ilev,idcbeg,idcend, &
78  jdcbeg,jdcend,kdcbeg,kdcend )
79  CALL rflo_getcelloffset( region,ilev,icoff,ijcoff )
80 
81  dv => region%levels(ilev)%mixt%dv
82  rdv => region%levels(ilev)%radi%dv
83 
84 ! get effective temperature --------------------------------------------------
85 
86  IF (region%radiInput%media == radi_media_artif) THEN
87  DO k=kdcbeg,kdcend
88  DO j=jdcbeg,jdcend
89  DO i=idcbeg,idcend
90  ijkc = indijk(i ,j,k,icoff,ijcoff)
91  rdv(dv_radi_teff,ijkc) = dv(dv_mixt_temp,ijkc)
92  ENDDO ! i
93  ENDDO ! j
94  ENDDO ! k
95  ELSE ! real media
96  DO k=kdcbeg,kdcend
97  DO j=jdcbeg,jdcend
98  DO i=idcbeg,idcend
99  ijkc = indijk(i ,j,k,icoff,ijcoff)
100  rdv(dv_radi_teff,ijkc) = dv(dv_mixt_temp,ijkc)
101  ENDDO ! i
102  ENDDO ! j
103  ENDDO ! k
104  ENDIF
105 
106 ! finalize --------------------------------------------------------------------
107 
108  CALL deregisterfunction( region%global )
109 
110 END SUBROUTINE radi_calcefftemp
111 
112 !******************************************************************************
113 !
114 ! RCS Revision history:
115 !
116 ! $Log: RADI_CalcEffTemp.F90,v $
117 ! Revision 1.3 2008/12/06 08:44:37 mtcampbe
118 ! Updated license.
119 !
120 ! Revision 1.2 2008/11/19 22:17:49 mtcampbe
121 ! Added Illinois Open Source License/Copyright
122 !
123 ! Revision 1.1 2004/09/22 02:35:49 wasistho
124 ! changed file nomenclature from lower to upper case
125 !
126 ! Revision 1.1 2004/09/18 18:02:07 wasistho
127 ! initial import for Limited Flux Diffusion radiation
128 !
129 !
130 !
131 !******************************************************************************
132 
133 
134 
135 
136 
137 
138 
**********************************************************************Rocstar Simulation Suite Illinois Rocstar LLC All rights reserved ****Illinois Rocstar LLC IL **www illinoisrocstar com **sales illinoisrocstar com WITHOUT WARRANTY OF ANY **EXPRESS OR INCLUDING BUT NOT LIMITED TO THE WARRANTIES **OF FITNESS FOR A PARTICULAR PURPOSE AND **NONINFRINGEMENT IN NO EVENT SHALL THE CONTRIBUTORS OR **COPYRIGHT HOLDERS BE LIABLE FOR ANY DAMAGES OR OTHER WHETHER IN AN ACTION OF TORT OR **Arising OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE **USE OR OTHER DEALINGS WITH THE SOFTWARE **********************************************************************INTERFACE SUBROUTINE idcend
j indices k indices k
Definition: Indexing.h:6
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
subroutine rflo_getdimensdummy(region, iLev, idcbeg, idcend, jdcbeg, jdcend, kdcbeg, kdcend)
**********************************************************************Rocstar Simulation Suite Illinois Rocstar LLC All rights reserved ****Illinois Rocstar LLC IL **www illinoisrocstar com **sales illinoisrocstar com WITHOUT WARRANTY OF ANY **EXPRESS OR INCLUDING BUT NOT LIMITED TO THE WARRANTIES **OF FITNESS FOR A PARTICULAR PURPOSE AND **NONINFRINGEMENT IN NO EVENT SHALL THE CONTRIBUTORS OR **COPYRIGHT HOLDERS BE LIABLE FOR ANY DAMAGES OR OTHER WHETHER IN AN ACTION OF TORT OR **Arising OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE **USE OR OTHER DEALINGS WITH THE SOFTWARE **********************************************************************INTERFACE SUBROUTINE kdcbeg
blockLoc i
Definition: read.cpp:79
subroutine rflo_getcelloffset(region, iLev, iCellOffset, ijCellOffset)
**********************************************************************Rocstar Simulation Suite Illinois Rocstar LLC All rights reserved ****Illinois Rocstar LLC IL **www illinoisrocstar com **sales illinoisrocstar com WITHOUT WARRANTY OF ANY **EXPRESS OR INCLUDING BUT NOT LIMITED TO THE WARRANTIES **OF FITNESS FOR A PARTICULAR PURPOSE AND **NONINFRINGEMENT IN NO EVENT SHALL THE CONTRIBUTORS OR **COPYRIGHT HOLDERS BE LIABLE FOR ANY DAMAGES OR OTHER WHETHER IN AN ACTION OF TORT OR **Arising OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE **USE OR OTHER DEALINGS WITH THE SOFTWARE **********************************************************************INTERFACE SUBROUTINE idcbeg
**********************************************************************Rocstar Simulation Suite Illinois Rocstar LLC All rights reserved ****Illinois Rocstar LLC IL **www illinoisrocstar com **sales illinoisrocstar com WITHOUT WARRANTY OF ANY **EXPRESS OR INCLUDING BUT NOT LIMITED TO THE WARRANTIES **OF FITNESS FOR A PARTICULAR PURPOSE AND **NONINFRINGEMENT IN NO EVENT SHALL THE CONTRIBUTORS OR **COPYRIGHT HOLDERS BE LIABLE FOR ANY DAMAGES OR OTHER WHETHER IN AN ACTION OF TORT OR **Arising OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE **USE OR OTHER DEALINGS WITH THE SOFTWARE **********************************************************************INTERFACE SUBROUTINE jdcend
j indices j
Definition: Indexing.h:6
**********************************************************************Rocstar Simulation Suite Illinois Rocstar LLC All rights reserved ****Illinois Rocstar LLC IL **www illinoisrocstar com **sales illinoisrocstar com WITHOUT WARRANTY OF ANY **EXPRESS OR INCLUDING BUT NOT LIMITED TO THE WARRANTIES **OF FITNESS FOR A PARTICULAR PURPOSE AND **NONINFRINGEMENT IN NO EVENT SHALL THE CONTRIBUTORS OR **COPYRIGHT HOLDERS BE LIABLE FOR ANY DAMAGES OR OTHER WHETHER IN AN ACTION OF TORT OR **Arising OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE **USE OR OTHER DEALINGS WITH THE SOFTWARE **********************************************************************INTERFACE SUBROUTINE jdcbeg
subroutine radi_calcefftemp(region)
subroutine deregisterfunction(global)
Definition: ModError.F90:469