Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PREP_ReadInitflowSection.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: read in user input related to flow initialization.
26 !
27 ! Description: none.
28 !
29 ! Input: regions
30 !
31 ! Output: regions
32 !
33 ! Notes: none.
34 !
35 !******************************************************************************
36 !
37 ! $Id: PREP_ReadInitflowSection.F90,v 1.7 2008/12/06 08:44:50 mtcampbe Exp $
38 !
39 ! Copyright: (c) 2001 by the University of Illinois
40 !
41 !******************************************************************************
42 
43 SUBROUTINE readinitflowsection( regions )
44 
45  USE moddatatypes
46  USE moddatastruct, ONLY : t_region
48  USE moderror
49  USE modparameters
50  IMPLICIT NONE
51 
52 ! ... parameters
53  TYPE(t_region), POINTER :: regions(:)
54 
55 ! ... local variables
56  CHARACTER(10) :: keys(13)
57 
58  INTEGER :: brbeg, brend
59 
60  LOGICAL :: defined(13)
61 
62  REAL(RFREAL) :: vals(13)
63 
64 !******************************************************************************
65 
66  CALL registerfunction( regions(1)%global,'ReadInitflowSection', &
67  'PREP_ReadInitflowSection.F90' )
68 
69 ! specify keywords and search for them
70 
71  keys(1) = 'NDUMMY'
72  keys(2) = 'VELX'
73  keys(3) = 'VELY'
74  keys(4) = 'VELZ'
75  keys(5) = 'PRESS'
76  keys(6) = 'DENS'
77  keys(7) = 'XSPLIT'
78  keys(8) = 'DSVELX'
79  keys(9) = 'DSVELY'
80  keys(10) = 'DSVELZ'
81  keys(11) = 'DSPRESS'
82  keys(12) = 'DSDENS'
83  keys(13) = 'FLOWCASE'
84 
85  CALL readregionsection( regions(1)%global,if_input,13,keys,vals, &
86  brbeg,brend,defined )
87 
88  regions(brbeg:brend)%mixtInput%iniXsplit = huge(1._rfreal)
89 
90  IF (defined(1)) regions(brbeg:brend)%nDumCells = abs(vals(1)+0.5_rfreal)
91  IF (defined(2)) regions(brbeg:brend)%mixtInput%iniVelX = vals(2)
92  IF (defined(3)) regions(brbeg:brend)%mixtInput%iniVelY = vals(3)
93  IF (defined(4)) regions(brbeg:brend)%mixtInput%iniVelZ = vals(4)
94  IF (defined(5)) regions(brbeg:brend)%mixtInput%iniPress = vals(5)
95  IF (defined(6)) regions(brbeg:brend)%mixtInput%iniDens = vals(6)
96  IF (defined(7)) regions(brbeg:brend)%mixtInput%iniXsplit = vals(7)
97  IF (defined(8)) regions(brbeg:brend)%mixtInput%iniVelX2 = vals(8)
98  IF (defined(9)) regions(brbeg:brend)%mixtInput%iniVelY2 = vals(9)
99  IF (defined(10)) regions(brbeg:brend)%mixtInput%iniVelZ2 = vals(10)
100  IF (defined(11)) regions(brbeg:brend)%mixtInput%iniPress2= vals(11)
101  IF (defined(12)) regions(brbeg:brend)%mixtInput%iniDens2 = vals(12)
102  IF (defined(13)) regions(brbeg:brend)%mixtInput%prepIniCase = &
103  abs(vals(13)+0.5_rfreal)
104 
105 ! finalize
106 
107  CALL deregisterfunction( regions(1)%global )
108 
109 END SUBROUTINE readinitflowsection
110 
111 !******************************************************************************
112 !
113 ! RCS Revision history:
114 !
115 ! $Log: PREP_ReadInitflowSection.F90,v $
116 ! Revision 1.7 2008/12/06 08:44:50 mtcampbe
117 ! Updated license.
118 !
119 ! Revision 1.6 2008/11/19 22:18:00 mtcampbe
120 ! Added Illinois Open Source License/Copyright
121 !
122 ! Revision 1.5 2005/09/09 03:28:52 wasistho
123 ! added FLOWCASE
124 !
125 ! Revision 1.4 2005/08/17 21:57:28 wasistho
126 ! changed velx2,etc to dsvelx,etc for safety
127 !
128 ! Revision 1.3 2005/08/03 17:51:48 wasistho
129 ! added domain-splitting feature to initial condition
130 !
131 ! Revision 1.2 2004/12/03 03:30:14 wasistho
132 ! rflo_modinterfacesprep to prep_modinterfaces
133 !
134 ! Revision 1.1 2004/12/03 02:20:08 wasistho
135 ! added prefix
136 !
137 ! Revision 1.1 2004/12/03 00:40:49 wasistho
138 ! lower to upper case
139 !
140 ! Revision 1.7 2003/05/15 02:57:07 jblazek
141 ! Inlined index function.
142 !
143 ! Revision 1.6 2003/03/20 22:27:56 haselbac
144 ! Renamed ModInterfaces
145 !
146 ! Revision 1.5 2003/03/20 19:44:22 haselbac
147 ! Corrected mistake in phased check-in
148 !
149 ! Revision 1.4 2003/03/20 19:35:43 haselbac
150 ! Modified RegFun call to avoid probs with long 'PREP_ReadInitflowSection.F90' names
151 !
152 ! Revision 1.3 2002/09/05 17:40:22 jblazek
153 ! Variable global moved into regions().
154 !
155 ! Revision 1.2 2002/02/21 23:25:07 jblazek
156 ! Blocks renamed as regions.
157 !
158 ! Revision 1.1 2002/01/02 15:57:08 jblazek
159 ! Added flow initialization.
160 !
161 !******************************************************************************
162 
163 
164 
165 
166 
167 
168 
169 
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
**********************************************************************Rocstar Simulation Suite Illinois Rocstar LLC All rights reserved ****Illinois Rocstar LLC IL **www illinoisrocstar com **sales illinoisrocstar com WITHOUT WARRANTY OF ANY **EXPRESS OR INCLUDING BUT NOT LIMITED TO THE WARRANTIES **OF FITNESS FOR A PARTICULAR PURPOSE AND **NONINFRINGEMENT IN NO EVENT SHALL THE CONTRIBUTORS OR **COPYRIGHT HOLDERS BE LIABLE FOR ANY DAMAGES OR OTHER WHETHER IN AN ACTION OF TORT OR **Arising OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE **USE OR OTHER DEALINGS WITH THE SOFTWARE **********************************************************************INTERFACE SUBROUTINE brbeg
subroutine readinitflowsection(regions)
subroutine readregionsection(global, fileID, nvals, keys, vals, brbeg, brend, defined)
subroutine deregisterfunction(global)
Definition: ModError.F90:469