Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TURB_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 RaNS or LES solution field or parameters at 1st RKstage.
26 !
27 ! Description: none.
28 !
29 ! Input: region = data of current region,
30 ! iStage = current RK stage.
31 !
32 ! Output: region%levels%turb or global% = new solution or parameters at
33 ! beginning of each time step.
34 !
35 ! Notes: none.
36 !
37 !******************************************************************************
38 !
39 ! $Id: TURB_RkInit.F90,v 1.4 2008/12/06 08:44:42 mtcampbe Exp $
40 !
41 ! Copyright: (c) 2003 by the University of Illinois
42 !
43 !******************************************************************************
44 
45 SUBROUTINE turb_rkinit( region, istage ) ! PUBLIC
46 
47  USE moddatatypes
48  USE moddatastruct, ONLY : t_region
49  USE modglobal, ONLY : t_global
50  USE moderror
53 
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,'TURB_RkInit',&
68  'TURB_RkInit.F90' )
69 
70 ! global values ---------------------------------------------------------------
71 
72 #ifdef RFLO
73  IF (region%localNumber == 1) THEN
74 #endif
75  global%esg1Psum = global%esg1Sum
76  global%esg4Psum = global%esg4Sum
77  global%esg1Sum = 0._rfreal
78  global%esg4Sum = 0._rfreal
79 #ifdef RFLO
80  ENDIF
81 #endif
82 
83 ! which class of model --------------------------------------------------------
84 
85  IF (region%turbInput%modelClass == model_rans) THEN
86  CALL turb_ransrkinit( region, istage )
87  ELSEIF (region%turbInput%modelClass == model_les) THEN
88  CALL turb_lesrkinit( region, istage )
89  ENDIF
90 
91 ! finalize --------------------------------------------------------------------
92 
93  CALL deregisterfunction( global )
94 
95 END SUBROUTINE turb_rkinit
96 
97 !******************************************************************************
98 !
99 ! RCS Revision history:
100 !
101 ! $Log: TURB_RkInit.F90,v $
102 ! Revision 1.4 2008/12/06 08:44:42 mtcampbe
103 ! Updated license.
104 !
105 ! Revision 1.3 2008/11/19 22:17:54 mtcampbe
106 ! Added Illinois Open Source License/Copyright
107 !
108 ! Revision 1.2 2004/05/12 20:08:50 wasistho
109 ! moved RK-initialisation of global variables from LesRKinit to RkInit
110 !
111 ! Revision 1.1 2004/03/05 04:37:00 wasistho
112 ! changed nomenclature
113 !
114 ! Revision 1.1 2004/02/26 21:31:46 wasistho
115 ! install TURB_rkInit
116 !
117 !
118 !******************************************************************************
119 
120 
121 
122 
123 
124 
125 
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
subroutine turb_ransrkinit(region, istage)
subroutine deregisterfunction(global)
Definition: ModError.F90:469
subroutine turb_rkinit(region, istage)
Definition: TURB_RkInit.F90:45
subroutine turb_lesrkinit(region, istage)