Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RFLU_InitFlowHardCodeLimWrapper.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: Wrapper for initialize part of flow field in a region using
26 ! hard-coded values.
27 !
28 ! Description: None.
29 !
30 ! Input:
31 ! pRegion Pointer to region
32 !
33 ! Output: None.
34 !
35 ! Notes: None.
36 !
37 ! ******************************************************************************
38 !
39 ! $Id: RFLU_InitFlowHardCodeLimWrapper.F90,v 1.3 2008/12/06 08:44:56 mtcampbe Exp $
40 !
41 ! Copyright: (c) 2005 by the University of Illinois
42 !
43 ! ******************************************************************************
44 
46 
47  USE moddatatypes
48  USE moderror
49  USE moddatastruct, ONLY: t_region
50  USE modglobal, ONLY: t_global
51  USE modgrid, ONLY: t_grid
52  USE modparameters
53 
56 
59 
60  IMPLICIT NONE
61 
62 ! ******************************************************************************
63 ! Declarations and definitions
64 ! ******************************************************************************
65 
66 ! ==============================================================================
67 ! Arguments
68 ! ==============================================================================
69 
70  TYPE(t_region), POINTER :: pregion
71 
72 ! ==============================================================================
73 ! Locals
74 ! ==============================================================================
75 
76  CHARACTER(CHRLEN) :: rcsidentstring
77  TYPE(t_global), POINTER :: global
78  TYPE(t_grid), POINTER :: pgrid
79 
80 ! ******************************************************************************
81 ! Start
82 ! ******************************************************************************
83 
84  rcsidentstring = '$RCSfile: RFLU_InitFlowHardCodeLimWrapper.F90,v $ $Revision: 1.3 $'
85 
86  global => pregion%global
87 
88  CALL registerfunction(global,'RFLU_InitFlowHardCodeLimWrapper', &
89  'RFLU_InitFlowHardCodeLimWrapper.F90')
90 
91 #ifdef SPEC
92 ! ******************************************************************************
93 ! Species. NOTE needs to be done first so can define gas properties when these
94 ! are influenced by species. NOTE initialize species state vector in primitive
95 ! state, so need to convert species state vector, which was already read in, to
96 ! conservative form.
97 ! ******************************************************************************
98 
99  IF ( global%specUsed .EQV. .true. ) THEN
100  CALL rflu_scalarconvertcvcons2prim(pregion,pregion%spec%cv, &
101  pregion%spec%cvState)
102 ! TEMPORARY
103  CALL errorstop(global,err_reached_default,__line__)
104 ! END TEMPORARY
105  END IF ! global%specUsed
106 #endif
107 
108 ! ******************************************************************************
109 ! Mixture
110 ! ******************************************************************************
111 
112  CALL rflu_setgasvars(pregion,1,pregion%grid%nCellsTot)
113  CALL rflu_initflowhardcodelim(pregion)
114 
115 ! ******************************************************************************
116 ! Physical modules
117 ! ******************************************************************************
118 
119 ! TO BE DONE
120 
121 ! END TO BE DONE
122 
123 #ifdef SPEC
124 ! ******************************************************************************
125 ! Convert species state vector to conservative state
126 ! ******************************************************************************
127 
128  IF ( global%specUsed .EQV. .true. ) THEN
129  CALL rflu_scalarconvertcvprim2cons(pregion,pregion%spec%cv, &
130  pregion%spec%cvState)
131  END IF ! global%specUsed
132 #endif
133 
134 ! ******************************************************************************
135 ! End
136 ! ******************************************************************************
137 
138  CALL deregisterfunction(global)
139 
140 END SUBROUTINE rflu_initflowhardcodelimwrapper
141 
142 ! ******************************************************************************
143 !
144 ! RCS Revision history:
145 !
146 ! $Log: RFLU_InitFlowHardCodeLimWrapper.F90,v $
147 ! Revision 1.3 2008/12/06 08:44:56 mtcampbe
148 ! Updated license.
149 !
150 ! Revision 1.2 2008/11/19 22:18:06 mtcampbe
151 ! Added Illinois Open Source License/Copyright
152 !
153 ! Revision 1.1 2005/11/10 02:54:32 haselbac
154 ! Initial revision
155 !
156 ! ******************************************************************************
157 
158 
159 
160 
161 
162 
163 
subroutine rflu_initflowhardcodelim(pRegion)
subroutine rflu_initflowhardcodelimwrapper(pRegion)
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
subroutine, public rflu_scalarconvertcvprim2cons(pRegion, cvScal, cvScalStateCurrent)
subroutine rflu_setgasvars(pRegion, icgBeg, icgEnd)
subroutine errorstop(global, errorCode, errorLine, addMessage)
Definition: ModError.F90:483
subroutine deregisterfunction(global)
Definition: ModError.F90:469
subroutine, public rflu_scalarconvertcvcons2prim(pRegion, cvScal, cvScalStateCurrent)