Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RFLO_LimiterReference.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 reference values for the limiter (upwind scheme).
26 !
27 ! Description: none.
28 !
29 ! Input: regions = all regions
30 !
31 ! Output: regions = limiter reference values.
32 !
33 ! Notes: none.
34 !
35 !******************************************************************************
36 !
37 ! $Id: RFLO_LimiterReference.F90,v 1.3 2008/12/06 08:44:27 mtcampbe Exp $
38 !
39 ! Copyright: (c) 2001 by the University of Illinois
40 !
41 !******************************************************************************
42 
43 SUBROUTINE rflo_limiterreference( regions )
44 
45  USE moddatatypes
46  USE moddatastruct, ONLY : t_region
47  USE modglobal, ONLY : t_global
48  USE moderror
49  IMPLICIT NONE
50 
51 ! ... parameters
52  TYPE(t_region), POINTER :: regions(:)
53 
54 ! ... local variables
55  TYPE(t_global), POINTER :: global
56 
57 !******************************************************************************
58 
59  global => regions(1)%global
60 
61  CALL registerfunction( global,'RFLO_LimiterReference',&
62  'RFLO_LimiterReference.F90' )
63 
64  global%limRef(1) = global%refDensity
65  global%limRef(2) = global%refVelocity
66  global%limRef(3) = global%refPressure
67  global%limVolRef = global%refLength**3
68 
69  CALL deregisterfunction( global )
70 
71 END SUBROUTINE rflo_limiterreference
72 
73 !******************************************************************************
74 !
75 ! RCS Revision history:
76 !
77 ! $Log: RFLO_LimiterReference.F90,v $
78 ! Revision 1.3 2008/12/06 08:44:27 mtcampbe
79 ! Updated license.
80 !
81 ! Revision 1.2 2008/11/19 22:17:38 mtcampbe
82 ! Added Illinois Open Source License/Copyright
83 !
84 ! Revision 1.1 2004/11/29 20:51:39 wasistho
85 ! lower to upper case
86 !
87 ! Revision 1.9 2003/05/29 17:28:43 jblazek
88 ! Implemented Roe scheme.
89 !
90 ! Revision 1.8 2003/05/15 02:57:04 jblazek
91 ! Inlined index function.
92 !
93 ! Revision 1.7 2002/09/05 17:40:21 jblazek
94 ! Variable global moved into regions().
95 !
96 ! Revision 1.6 2002/06/07 16:40:37 jblazek
97 ! Grid & solution for all regions in one file.
98 !
99 ! Revision 1.5 2002/02/21 23:25:06 jblazek
100 ! Blocks renamed as regions.
101 !
102 ! Revision 1.4 2002/01/23 03:51:25 jblazek
103 ! Added low-level time-stepping routines.
104 !
105 ! Revision 1.3 2002/01/11 17:20:19 jblazek
106 ! Added time stamp or iteration number to file names.
107 !
108 ! Revision 1.2 2002/01/08 22:09:17 jblazek
109 ! Added calculation of face vectors and volumes.
110 !
111 ! Revision 1.1 2001/12/19 23:09:22 jblazek
112 ! Added routines to read grid and solution.
113 !
114 !******************************************************************************
115 
116 
117 
118 
119 
120 
121 
subroutine rflo_limiterreference(regions)
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
subroutine deregisterfunction(global)
Definition: ModError.F90:469