Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
NumericalDissipationMP.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: calculate numerical dissipation for RocfluidMP framework.
26 !
27 ! Description: none.
28 !
29 ! Input: region = data of current region.
30 !
31 ! Output: regions%levels%mixt = new solution after one time step.
32 !
33 ! Notes: none.
34 !
35 !******************************************************************************
36 !
37 ! $Id: NumericalDissipationMP.F90,v 1.3 2008/12/06 08:44:09 mtcampbe Exp $
38 !
39 ! Copyright: (c) 2003-2004 by the University of Illinois
40 !
41 !******************************************************************************
42 
43 SUBROUTINE numericaldissipationmp( region )
44 
45  USE moddatatypes
46  USE moddatastruct, ONLY : t_region
47  USE modglobal, ONLY : t_global
48  USE moderror
49  USE modparameters
51 
52 #ifdef PEUL
54 #endif
55 #ifdef TURB
57 #endif
58 
59  IMPLICIT NONE
60 
61 ! ... parameters
62  TYPE(t_region) :: region
63 
64 ! ... local variables
65  INTEGER :: spacediscr,spaceorder
66  TYPE(t_global), POINTER :: global
67 
68 #ifdef RFLU
69  TYPE(t_region), POINTER :: pregion
70 #endif
71 
72 !******************************************************************************
73 
74  global => region%global
75 
76  CALL registerfunction( global,'NumericalDissipationMP',&
77  'NumericalDissipationMP.F90' )
78 
79 ! get parameters --------------------------------------------------------------
80 
81  spacediscr = region%mixtInput%spaceDiscr
82  spaceorder = region%mixtInput%spaceOrder
83 
84 ! compute numerical dissipation -----------------------------------------------
85 
86  CALL numericaldissipation( region )
87 
88 #ifdef PEUL
89 ! IF (global%peulUsed) CALL PEUL_NumericalDissipation( region )
90  IF (global%peulUsed) CALL peul_centraldissipation( region )
91 #endif
92 
93 #ifdef TURB
94  IF (region%mixtInput%flowModel == flow_navst .AND. &
95  region%mixtInput%turbModel /= turb_model_none) &
96  CALL turb_ransnumericaldissipation( region )
97 #endif
98 
99 ! finalize ====================================================================
100 
101  CALL deregisterfunction( global )
102 
103 END SUBROUTINE numericaldissipationmp
104 
105 !******************************************************************************
106 !
107 ! RCS Revision history:
108 !
109 ! $Log: NumericalDissipationMP.F90,v $
110 ! Revision 1.3 2008/12/06 08:44:09 mtcampbe
111 ! Updated license.
112 !
113 ! Revision 1.2 2008/11/19 22:17:23 mtcampbe
114 ! Added Illinois Open Source License/Copyright
115 !
116 ! Revision 1.1 2004/12/01 16:49:50 haselbac
117 ! Initial revision after changing case
118 !
119 ! Revision 1.14 2004/03/20 00:26:22 wasistho
120 ! set turb_rflo_ransNumericalDiss to turb_ransNumerical..
121 !
122 ! Revision 1.13 2004/03/11 03:32:55 wasistho
123 ! changed rocturb nomenclature
124 !
125 ! Revision 1.12 2004/03/05 22:09:00 jferry
126 ! created global variables for peul, plag, and inrt use
127 !
128 ! Revision 1.11 2004/01/29 22:52:43 haselbac
129 ! Removed scalar dissipation routines
130 !
131 ! Revision 1.10 2003/11/25 21:01:42 haselbac
132 ! Added rocspecies support
133 !
134 ! Revision 1.9 2003/11/20 16:40:35 mdbrandy
135 ! Backing out RocfluidMP changes from 11-17-03
136 !
137 ! Revision 1.6 2003/10/27 04:49:19 wasistho
138 ! replace ransCentralDiss by ransNumericalDiss.
139 !
140 ! Revision 1.5 2003/10/03 20:12:43 wasistho
141 ! initial installation of turbModel SA and DES
142 !
143 ! Revision 1.4 2003/10/01 23:52:09 jblazek
144 ! Corrected bug in moving noslip wall BC and grid speeds.
145 !
146 ! Revision 1.3 2003/09/26 21:45:34 fnajjar
147 ! Modified ModInterfaces calls to proper physical modules
148 !
149 ! Revision 1.2 2003/05/15 02:57:02 jblazek
150 ! Inlined index function.
151 !
152 ! Revision 1.1 2003/03/28 19:46:30 fnajjar
153 ! Initial import for RocfluidMP
154 !
155 !******************************************************************************
156 
157 
158 
159 
160 
161 
162 
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
subroutine peul_centraldissipation(region)
subroutine numericaldissipationmp(region)
subroutine turb_ransnumericaldissipation(region)
subroutine deregisterfunction(global)
Definition: ModError.F90:469
subroutine numericaldissipation(region)