Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RADI_EmsInit.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 Radiation solution field or parameters at 1st EMSstg.
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_EmsInit.F90,v 1.3 2008/12/06 08:44:37 mtcampbe Exp $
40 !
41 ! Copyright: (c) 2003 by the University of Illinois
42 !
43 !******************************************************************************
44 
45 SUBROUTINE radi_emsinit( 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_EmsInit',&
68  'RADI_EmsInit.F90' )
69 
70 ! extinction (emission, absorbsion, scattering) coefficients ------------------
71 
72  CALL radi_extinctioncoef( region )
73 
74 ! radiation effective temperature
75 
76  CALL radi_calcefftemp( region )
77 
78 ! which model -----------------------------------------------------------------
79 
80  IF ((region%radiInput%radiModel == radi_model_ross) .OR. &
81  (region%radiInput%radiModel == radi_model_fldsrc) .OR. &
82  (region%radiInput%radiModel == radi_model_fldtran)) THEN
83  CALL radi_fluxlimiter( region )
84  ENDIF ! radiModel
85 
86  IF (region%radiInput%radiModel == radi_model_fldtran) THEN
87  CALL radi_flimemsinit( region, istage )
88  ENDIF
89 
90 ! finalize --------------------------------------------------------------------
91 
92  CALL deregisterfunction( global )
93 
94 END SUBROUTINE radi_emsinit
95 
96 !******************************************************************************
97 !
98 ! RCS Revision history:
99 !
100 ! $Log: RADI_EmsInit.F90,v $
101 ! Revision 1.3 2008/12/06 08:44:37 mtcampbe
102 ! Updated license.
103 !
104 ! Revision 1.2 2008/11/19 22:17:49 mtcampbe
105 ! Added Illinois Open Source License/Copyright
106 !
107 ! Revision 1.1 2004/09/30 17:49:10 wasistho
108 ! prepared for full FLD radiation model
109 !
110 !
111 !******************************************************************************
112 
113 
114 
115 
116 
117 
118 
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
subroutine radi_fluxlimiter(region)
subroutine radi_flimemsinit(region, istage)
subroutine radi_extinctioncoef(region)
subroutine radi_calcefftemp(region)
subroutine deregisterfunction(global)
Definition: ModError.F90:469
subroutine radi_emsinit(region, istage)