Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RADI_SolutionUpdate.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: update solution/quantities pertinent to radiation if desired
26 !
27 ! Description: Depending user input parameters, different quantities are
28 ! updated, such as vorticity components.
29 !
30 ! Input: region = data of current region
31 !
32 ! Output: specified RADI variables updated
33 !
34 ! Notes: none.
35 !
36 !******************************************************************************
37 !
38 ! $Id: RADI_SolutionUpdate.F90,v 1.3 2008/12/06 08:44:38 mtcampbe Exp $
39 !
40 ! Copyright: (c) 2001 by the University of Illinois
41 !
42 !******************************************************************************
43 
44 SUBROUTINE radi_solutionupdate( region ) ! PUBLIC
45 
46  USE moddatatypes
47  USE modglobal, ONLY : t_global
48  USE moddatastruct, ONLY : t_region
50  USE moderror
51  USE modparameters
53  IMPLICIT NONE
54 
55 ! ... parameters
56  TYPE(t_region) :: region
57 
58 ! ... local variables
59  TYPE(t_global), POINTER :: global
60 
61 !******************************************************************************
62 
63  global => region%global
64  CALL registerfunction( global,'RADI_SolutionUpdate',&
65  'RADI_SolutionUpdate.F90' )
66 
67 ! update FLD radiation solution -----------------------------------------------
68 
69  IF (region%radiInput%radiModel == radi_model_fldtran) THEN
70  IF (global%flowType == flow_unsteady .AND. &
71  global%solverType == solv_explicit) THEN
72  CALL radi_flimrkupdate( region )
73  ELSE
74  CALL radi_flimemsupdate( region )
75  ENDIF
76  ENDIF
77 
78 ! finalize -------------------------------------------------------------------
79 
80  CALL deregisterfunction( global )
81 
82 END SUBROUTINE radi_solutionupdate
83 
84 !******************************************************************************
85 !
86 ! RCS Revision history:
87 !
88 ! $Log: RADI_SolutionUpdate.F90,v $
89 ! Revision 1.3 2008/12/06 08:44:38 mtcampbe
90 ! Updated license.
91 !
92 ! Revision 1.2 2008/11/19 22:17:50 mtcampbe
93 ! Added Illinois Open Source License/Copyright
94 !
95 ! Revision 1.1 2004/09/30 17:49:10 wasistho
96 ! prepared for full FLD radiation model
97 !
98 !
99 !
100 !******************************************************************************
101 
102 
103 
104 
105 
106 
107 
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
subroutine radi_solutionupdate(region)
subroutine radi_flimrkupdate(region)
subroutine radi_flimemsupdate(region)
subroutine deregisterfunction(global)
Definition: ModError.F90:469