Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TURB_RansNumericalDissipation.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: compute numerical dissipation for RaNS equations model.
26 !
27 ! Description: none.
28 !
29 ! Input: region = data of current region.
30 !
31 ! Output: region%levels%turb%diss = turb dissipation.
32 !
33 ! Notes: none.
34 !
35 !******************************************************************************
36 !
37 ! $Id: TURB_RansNumericalDissipation.F90,v 1.3 2008/12/06 08:44:42 mtcampbe Exp $
38 !
39 ! Copyright: (c) 2003 by the University of Illinois
40 !
41 !******************************************************************************
42 
43 SUBROUTINE turb_ransnumericaldissipation( region ) ! PUBLIC
44 
45  USE moddatastruct, ONLY : t_region
46  USE moderror
48 #ifdef RFLO
50 #endif
51  IMPLICIT NONE
52 
53 ! ... parameters
54  TYPE(t_region) :: region
55 
56 ! ... local variables
57  INTEGER :: discrtype, discrorder
58 
59 !******************************************************************************
60 
61  CALL registerfunction( region%global,'TURB_RansNumericalDissipation', &
62  'TURB_RansNumericalDissipation.F90' )
63 
64  IF (region%turbInput%modelClass /= model_rans) goto 999
65 
66 ! get parameters --------------------------------------------------------------
67 
68  discrtype = region%turbInput%spaceDiscr
69  discrorder = region%turbInput%spaceOrder
70 
71 ! dissipation schemes ---------------------------------------------------------
72 
73 #ifdef RFLO
74  IF ( discrtype ==rans_discr_cen .AND. &
75  (discrorder==rans_discr_ord1 .OR. discrorder==rans_discr_ord2)) THEN
76  CALL turb_floranscentraldissipation( region )
77  ENDIF
78 #endif
79 
80 ! finalize --------------------------------------------------------------------
81 
82 999 CONTINUE
83 
84  CALL deregisterfunction( region%global )
85 
86 END SUBROUTINE turb_ransnumericaldissipation
87 
88 !******************************************************************************
89 !
90 ! RCS Revision history:
91 !
92 ! $Log: TURB_RansNumericalDissipation.F90,v $
93 ! Revision 1.3 2008/12/06 08:44:42 mtcampbe
94 ! Updated license.
95 !
96 ! Revision 1.2 2008/11/19 22:17:54 mtcampbe
97 ! Added Illinois Open Source License/Copyright
98 !
99 ! Revision 1.1 2004/03/20 00:29:17 wasistho
100 ! set turb_rflo_ransNumericalDiss to turb_ransNumerical..
101 !
102 ! Revision 1.2 2004/03/12 02:55:36 wasistho
103 ! changed rocturb routine names
104 !
105 ! Revision 1.1 2004/03/11 03:26:33 wasistho
106 ! changed rocturb nomenclature
107 !
108 ! Revision 1.1 2004/03/08 23:35:45 wasistho
109 ! changed turb nomenclature
110 !
111 ! Revision 1.2 2003/12/23 21:16:46 wasistho
112 ! split call registerfunction in 2 lines
113 !
114 ! Revision 1.1 2003/10/27 04:54:38 wasistho
115 ! added RaNS upwind schemes
116 !
117 !
118 !******************************************************************************
119 
120 
121 
122 
123 
124 
125 
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
subroutine turb_ransnumericaldissipation(region)
subroutine deregisterfunction(global)
Definition: ModError.F90:469
subroutine turb_floranscentraldissipation(region)