Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RADI_RkInit.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: set initial FLD radiation solution field or parameters at 1st RKstg.
26 !
27 ! Description: none.
28 !
29 ! Input: region = data of current region,
30 ! iStage = current RK stage.
31 !
32 ! Output: region%levels%radi or global% = new solution or parameters at
33 ! beginning of each time step.
34 !
35 ! Notes: none.
36 !
37 !******************************************************************************
38 !
39 ! $Id: RADI_RkInit.F90,v 1.3 2008/12/06 08:44:38 mtcampbe Exp $
40 !
41 ! Copyright: (c) 2003 by the University of Illinois
42 !
43 !******************************************************************************
44 
45 SUBROUTINE radi_rkinit( region, istage ) ! PUBLIC
46 
47  USE moddatatypes
48  USE moddatastruct, ONLY : t_region
49  USE modglobal, ONLY : t_global
50  USE moderror
54  IMPLICIT NONE
55 
56 ! ... parameters
57  TYPE(t_region) :: region
58 
59  INTEGER, INTENT(IN) :: istage
60 
61  TYPE(t_global), POINTER :: global
62 
63 !******************************************************************************
64 
65  global => region%global
66 
67  CALL registerfunction( global,'RADI_RkInit',&
68  'RADI_RkInit.F90' )
69 
70 ! global values (currently none) ----------------------------------------------
71 
72 ! extinction (emission, absorbsion, scattering) coefficients ------------------
73 
74  CALL radi_extinctioncoef( region )
75 
76 ! radiation effective temperature
77 
78  CALL radi_calcefftemp( region )
79 
80 ! which model -----------------------------------------------------------------
81 
82  IF ((region%radiInput%radiModel == radi_model_ross) .OR. &
83  (region%radiInput%radiModel == radi_model_fldsrc) .OR. &
84  (region%radiInput%radiModel == radi_model_fldtran)) THEN
85  CALL radi_fluxlimiter( region )
86  ENDIF ! radiModel
87 
88  IF (region%radiInput%radiModel == radi_model_fldtran) THEN
89  CALL radi_flimrkinit( region, istage )
90  ENDIF ! radiModel
91 
92 ! finalize --------------------------------------------------------------------
93 
94  CALL deregisterfunction( global )
95 
96 END SUBROUTINE radi_rkinit
97 
98 !******************************************************************************
99 !
100 ! RCS Revision history:
101 !
102 ! $Log: RADI_RkInit.F90,v $
103 ! Revision 1.3 2008/12/06 08:44:38 mtcampbe
104 ! Updated license.
105 !
106 ! Revision 1.2 2008/11/19 22:17:50 mtcampbe
107 ! Added Illinois Open Source License/Copyright
108 !
109 ! Revision 1.1 2004/09/30 17:49:10 wasistho
110 ! prepared for full FLD radiation model
111 !
112 !
113 !
114 !******************************************************************************
115 
116 
117 
118 
119 
120 
121 
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
subroutine radi_fluxlimiter(region)
subroutine radi_extinctioncoef(region)
subroutine radi_flimrkinit(region, istage)
subroutine radi_rkinit(region, istage)
Definition: RADI_RkInit.F90:45
subroutine radi_calcefftemp(region)
subroutine deregisterfunction(global)
Definition: ModError.F90:469