Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PREP_InitInputValues.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: initialize user input parameters to default values.
26 !
27 ! Description: none.
28 !
29 ! Input: global, regions
30 !
31 ! Output: global, regions
32 !
33 ! Notes: none.
34 !
35 !******************************************************************************
36 !
37 ! $Id: PREP_InitInputValues.F90,v 1.5 2008/12/06 08:44:50 mtcampbe Exp $
38 !
39 ! Copyright: (c) 2001 by the University of Illinois
40 !
41 !******************************************************************************
42 
43 SUBROUTINE initinputvalues( regions )
44 
45  USE moddatatypes
46  USE moddatastruct, ONLY : t_region
47  USE modglobal, ONLY : t_global
48  USE modmixture, ONLY : t_mixt_input
49  USE moderror
50  USE modparameters
52  IMPLICIT NONE
53 
54 ! ... parameters
55  TYPE(t_region), POINTER :: regions(:)
56 
57 ! ... loop variables
58  INTEGER :: ireg
59 
60 ! ... local variables
61  TYPE(t_mixt_input), POINTER :: input
62  TYPE(t_global), POINTER :: global
63 
64 !******************************************************************************
65 
66  global => regions(1)%global
67 
68  CALL registerfunction( global,'InitInputValues',&
69  'PREP_InitInputValues.F90' )
70 
71 ! global values ---------------------------------------------------------------
72 ! level, formats and flow-type
73 
74  global%startLevel = 1
75  global%gridFormat = format_ascii
76  global%solutFormat = format_ascii
77  global%flowType = flow_unsteady
78 
79 ! reference values
80 
81  global%refVelocity = 100.
82  global%refPressure = 1.e+5
83  global%refDensity = 1.2
84  global%refCp = 1004.5
85  global%refGamma = 1.4
86  global%refLength = 1.0
87  global%refREnum = 100.
88  global%prLam = 0.72
89  global%prTurb = 0.9
90  global%scnLam = 0.22
91  global%scnTurb = 0.9
92 
93 ! multiphysics modules
94 
95  global%peulUsed = .false.
96  global%plagUsed = .false.
97  global%inrtUsed = .false.
98 
99 ! region related values -------------------------------------------------------
100 
101  DO ireg=1,global%nRegions
102 
103  regions(ireg)%procid = global%myProcid
104  regions(ireg)%nDumCells = 2
105 
106 ! - input parameters
107 
108  input => regions(ireg)%mixtInput
109 
110  input%flowModel = flow_euler
111  input%turbModel = turb_model_none
112  input%moveGrid = .false.
113  input%computeTv = .false.
114 
115  input%prepIniCase = initflo_uniform
116  input%gasModel = gas_model_tcperf
117 
118  input%radiUsed = .false. ! no radiation
119 
120  input%iniVelX = 100._rfreal
121  input%iniVelY = 0._rfreal
122  input%iniVelZ = 0._rfreal
123  input%iniPress = 1.e+5_rfreal
124  input%iniDens = 1.2_rfreal
125  input%iniXsplit = 0._rfreal
126 
127  ENDDO ! iReg
128 
129 ! finalize --------------------------------------------------------------------
130 
131  CALL deregisterfunction( global )
132 
133 END SUBROUTINE initinputvalues
134 
135 !******************************************************************************
136 !
137 ! RCS Revision history:
138 !
139 ! $Log: PREP_InitInputValues.F90,v $
140 ! Revision 1.5 2008/12/06 08:44:50 mtcampbe
141 ! Updated license.
142 !
143 ! Revision 1.4 2008/11/19 22:18:00 mtcampbe
144 ! Added Illinois Open Source License/Copyright
145 !
146 ! Revision 1.3 2005/10/31 21:09:38 haselbac
147 ! Changed specModel and SPEC_MODEL_NONE
148 !
149 ! Revision 1.2 2005/09/21 20:35:54 wasistho
150 ! initialize iniCase and iniXsplit
151 !
152 ! Revision 1.1 2004/12/03 02:20:08 wasistho
153 ! added prefix
154 !
155 ! Revision 1.1 2004/12/03 00:40:49 wasistho
156 ! lower to upper case
157 !
158 ! Revision 1.8 2004/07/27 03:34:30 wasistho
159 ! add additional default input variables
160 !
161 ! Revision 1.7 2004/03/05 22:09:04 jferry
162 ! created global variables for peul, plag, and inrt use
163 !
164 ! Revision 1.6 2004/03/03 23:55:41 jferry
165 ! Allowed particles to be run with Euler case
166 !
167 ! Revision 1.5 2003/05/15 02:57:07 jblazek
168 ! Inlined index function.
169 !
170 ! Revision 1.4 2003/03/20 19:35:43 haselbac
171 ! Modified RegFun call to avoid probs with long 'PREP_InitInputValues.F90' names
172 !
173 ! Revision 1.3 2002/09/05 17:40:22 jblazek
174 ! Variable global moved into regions().
175 !
176 ! Revision 1.2 2002/02/21 23:25:07 jblazek
177 ! Blocks renamed as regions.
178 !
179 ! Revision 1.1 2002/01/02 15:57:08 jblazek
180 ! Added flow initialization.
181 !
182 !******************************************************************************
183 
184 
185 
186 
187 
188 
189 
190 
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
subroutine initinputvalues(regions)
subroutine input(X, NNODE, NDC, NCELL, NFCE, NBPTS, NBFACE, ITYP, NPROP, XBNDY, XFAR, YFAR, ZFAR)
subroutine deregisterfunction(global)
Definition: ModError.F90:469