Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TURB_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 RaNS or LES 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%turb or global% = new solution or parameters at
33 ! beginning of each time step.
34 !
35 ! Notes: none.
36 !
37 !******************************************************************************
38 !
39 ! $Id: TURB_EmsInit.F90,v 1.4 2008/12/06 08:44:41 mtcampbe Exp $
40 !
41 ! Copyright: (c) 2003 by the University of Illinois
42 !
43 !******************************************************************************
44 
45 SUBROUTINE turb_emsinit( 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_EmsInit',&
68  'TURB_EmsInit.F90' )
69 
70 ! which class of model --------------------------------------------------------
71 
72  IF (region%turbInput%modelClass == model_rans) THEN
73  CALL turb_ransemsinit( region, istage )
74  ENDIF
75 
76 ! finalize --------------------------------------------------------------------
77 
78  CALL deregisterfunction( global )
79 
80 END SUBROUTINE turb_emsinit
81 
82 !******************************************************************************
83 !
84 ! RCS Revision history:
85 !
86 ! $Log: TURB_EmsInit.F90,v $
87 ! Revision 1.4 2008/12/06 08:44:41 mtcampbe
88 ! Updated license.
89 !
90 ! Revision 1.3 2008/11/19 22:17:53 mtcampbe
91 ! Added Illinois Open Source License/Copyright
92 !
93 ! Revision 1.2 2004/12/09 22:17:28 wasistho
94 ! removed LES rkInit
95 !
96 ! Revision 1.1 2004/03/05 04:37:00 wasistho
97 ! changed nomenclature
98 !
99 ! Revision 1.1 2004/02/26 21:31:17 wasistho
100 ! install TURB_emsInit
101 !
102 !
103 !******************************************************************************
104 
105 
106 
107 
108 
109 
110 
subroutine turb_emsinit(region, istage)
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
subroutine turb_ransemsinit(region, istage)
subroutine deregisterfunction(global)
Definition: ModError.F90:469