Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TURB_WlmUpdate.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: Call routines that update wall stresses and wall heat flux,
26 ! depending on wall layer model selected.
27 !
28 ! Description: If log-layer model is selected then call to TURB_UpdateLogLay
29 ! followed by TURB_ReyAnalogy for the heat transfer, while if
30 ! boundary-layer model is chosen also call to TURB_UpdateBndLay
31 ! in between to add the pressure gradient and usteady terms.
32 !
33 ! Input: region = data of current region.
34 ! patch = current patch.
35 !
36 ! Output: wall stresses and wall heat flux in body fitted coordinate updated.
37 !
38 ! Notes: none.
39 !
40 !******************************************************************************
41 !
42 ! $Id: TURB_WlmUpdate.F90,v 1.5 2008/12/06 08:44:42 mtcampbe Exp $
43 !
44 ! Copyright: (c) 2001 by the University of Illinois
45 !
46 !******************************************************************************
47 
48 SUBROUTINE turb_wlmupdate( region,patch )
49 
50  USE moddatatypes
51  USE modbndpatch, ONLY : t_patch
52  USE moddatastruct, ONLY : t_region
53  USE modglobal, ONLY : t_global
55 #ifdef RFLO
57 #endif
58  USE moderror
60  IMPLICIT NONE
61 
62 ! ... parameters
63  TYPE(t_region) :: region
64  TYPE(t_patch) :: patch
65 
66 ! ... local variables
67  CHARACTER(CHRLEN) :: rcsidentstring
68  TYPE(t_global), POINTER :: global
69 
70 !******************************************************************************
71 
72  rcsidentstring = '$RCSfile: TURB_WlmUpdate.F90,v $ $Revision: 1.5 $'
73 
74  global => region%global
75  CALL registerfunction( global,'TURB_WlmUpdate',&
76  'TURB_WlmUpdate.F90' )
77 
78 #ifdef RFLO
79  CALL turb_flowlmupdateloglay( region,patch )
80 #endif
81 #ifdef RFLU
82 ! CALL TURB_FluWlmUpdateLoglay( region,patch )
83 #endif
84 
85  IF (patch%valBola%switches(wlm_input_model) == wlm_model_bndlay) THEN
86  CALL turb_wlmupdatebndlay( region,patch )
87  ENDIF
88 
89  CALL turb_wlmreyanalogy( region,patch )
90 
91 ! finalize --------------------------------------------------------------------
92 
93  CALL deregisterfunction( global )
94 
95 END SUBROUTINE turb_wlmupdate
96 
97 !******************************************************************************
98 !
99 ! RCS Revision history:
100 !
101 ! $Log: TURB_WlmUpdate.F90,v $
102 ! Revision 1.5 2008/12/06 08:44:42 mtcampbe
103 ! Updated license.
104 !
105 ! Revision 1.4 2008/11/19 22:17:55 mtcampbe
106 ! Added Illinois Open Source License/Copyright
107 !
108 ! Revision 1.3 2004/03/24 03:37:03 wasistho
109 ! prepared for RFLU
110 !
111 ! Revision 1.2 2004/03/12 02:55:35 wasistho
112 ! changed rocturb routine names
113 !
114 ! Revision 1.1 2004/03/05 04:37:01 wasistho
115 ! changed nomenclature
116 !
117 ! Revision 1.3 2004/03/02 03:51:18 wasistho
118 ! forgot colon after Id and Log
119 !
120 !
121 !******************************************************************************
122 
123 
124 
125 
126 
127 
128 
subroutine turb_wlmupdatebndlay(region, patch)
subroutine turb_wlmreyanalogy(region, patch)
subroutine turb_flowlmupdateloglay(region, patch)
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
subroutine turb_wlmupdate(region, patch)
Definition: patch.h:74
subroutine deregisterfunction(global)
Definition: ModError.F90:469