Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RVAV_ReadFileStream2.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 File for Stream 2 Data.
26 !
27 ! Description: none.
28 !
29 ! Input:
30 !
31 ! Output: Memory location with data for Stream 2
32 !
33 ! ISSUE: Where do you read the Analytical and Experimental Data on Nodes or Cells
34 !
35 ! Notes: none.
36 !
37 !******************************************************************************
38 !
39 ! $Id: RVAV_ReadFileStream2.F90,v 1.3 2008/12/06 08:45:08 mtcampbe Exp $
40 !
41 ! Copyright: (c) 2002 by the University of Illinois
42 !
43 !******************************************************************************
44 
45 SUBROUTINE rvav_readfilestream2 ( regionsS1, regionsS2 )
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 modmixture, ONLY : t_mixt
57  USE modmpi
58  USE modparameters
60  USE rvav_modglobal
64  IMPLICIT NONE
65 
66 ! ... parameter variables
67  TYPE (t_region), POINTER :: regionss1(:), regionss2(:)
68 
69 ! ... local variables
70  CHARACTER(CHRLEN) :: msg
71 
72  TYPE(t_global), POINTER :: global
73 
74 !******************************************************************************
75 
76  global => regionss1(1)%global
77 
78  CALL registerfunction( global, 'RVAV_ReadFileStream2',&
79  'RVAV_ReadFileStream2.F90' )
80 
81 ! modify all global data pertinent to Rocflo for code reuse
82 
83  global%flowType = globalrvav%flowTypeS2
84  global%gridFormat = globalrvav%gridFormatS2
85  global%solutFormat = globalrvav%solutFormatS2
86 
87  IF (global%verbLevel /= verbose_none) THEN
88  WRITE(stdout,'(/,A,I5)') 'FileTypeS2 = ', globalrvav%fileTypeS2
89  WRITE(stdout,'(A,I5)') 'FlowTypeS2 = ', globalrvav%flowTypeS2
90  WRITE(stdout,'(A,I5)') 'gridFormatS2 = ', globalrvav%gridFormatS2
91  WRITE(stdout,'(A,I5)') 'solutFormatS2 = ', globalrvav%solutFormatS2
92  ENDIF ! verbLevel
93 
94  SELECT CASE ( globalrvav%fileTypeS2 )
95  CASE (file_computed)
96  IF (global%verbLevel /= verbose_none) &
97  WRITE(stdout,'(/,A)') 'Entering Stream2 Computed Solution...'
98  CALL rvav_readfilestream2comput( regionss1,regionss2 )
99 
100  CASE (file_analytical)
101  IF (global%verbLevel /= verbose_none) &
102  WRITE(stdout,'(/,A)') 'Entering Stream2 Analytical Solution...'
103  CALL rvav_readfilestream2analyt( global, regionss2 )
104 
105  CASE (file_experimental)
106  IF (global%verbLevel /= verbose_none) &
107  WRITE(stdout,'(/,A)') 'Entering Stream2 Experimental Solution...'
108  CALL rvav_readfilestream2experm( global, regionss2 )
109 
110  CASE default
111  WRITE(stdout,'(/,A,/)') 'Current Data Structure for Stream 2 Only supports Computed, Analytical or Experimental Results.'
112  stop
113  END SELECT ! fileTypeS2
114 
115 ! finalize --------------------------------------------------------------------
116 
117  CALL deregisterfunction( global )
118 
119 END SUBROUTINE rvav_readfilestream2
120 
121 !******************************************************************************
122 !
123 ! RCS Revision history:
124 !
125 ! $Log: RVAV_ReadFileStream2.F90,v $
126 ! Revision 1.3 2008/12/06 08:45:08 mtcampbe
127 ! Updated license.
128 !
129 ! Revision 1.2 2008/11/19 22:18:19 mtcampbe
130 ! Added Illinois Open Source License/Copyright
131 !
132 ! Revision 1.1 2004/12/01 22:43:28 fnajjar
133 ! Initial revision after changing case
134 !
135 ! Revision 1.11 2003/11/20 16:40:41 mdbrandy
136 ! Backing out RocfluidMP changes from 11-17-03
137 !
138 ! Revision 1.7 2003/05/15 02:57:08 jblazek
139 ! Inlined index function.
140 !
141 ! Revision 1.6 2002/09/10 00:01:45 f-najjar
142 ! Variable global moved into regions()
143 !
144 ! Revision 1.5 2002/08/16 21:33:48 jblazek
145 ! Changed interface to MixtureProperties.
146 !
147 ! Revision 1.4 2002/07/16 22:32:51 f-najjar
148 ! Cleanup of ReadFileStream2
149 !
150 ! Revision 1.3 2002/06/24 15:51:37 f-najjar
151 ! Added IO for high Verbosity
152 !
153 ! Revision 1.2 2002/06/15 17:43:44 f-najjar
154 ! Grid & Solution for all regions in one file
155 !
156 ! Revision 1.1.1.1 2002/06/03 21:41:29 f-najjar
157 ! Initial Import of RocVaV
158 !
159 !******************************************************************************
160 
161 
162 
163 
164 
165 
166 
subroutine rvav_readfilestream2analyt(global, regionsS2)
subroutine rvav_readfilestream2(regionsS1, regionsS2)
subroutine rvav_readfilestream2experm(global, regionsS2)
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
subroutine rflo_readsolutionregion(iReg, regions)
subroutine rvav_readfilestream2comput(regionsS1, regionsS2)
subroutine rflo_getnodeoffset(region, iLev, iNodeOffset, ijNodeOffset)
subroutine rflo_readgridregion(iReg, regions)
subroutine rflo_getdimensdummy(region, iLev, idcbeg, idcend, jdcbeg, jdcend, kdcbeg, kdcend)
subroutine rflo_getcelloffset(region, iLev, iCellOffset, ijCellOffset)
subroutine readinputfile(regions)
subroutine rflo_derivedinputvalues(regions)
subroutine rflo_getdimensdummynodes(region, iLev, idnbeg, idnend, jdnbeg, jdnend, kdnbeg, kdnend)
subroutine rflo_readregiontopology(global, regions)
subroutine deregisterfunction(global)
Definition: ModError.F90:469
subroutine rflo_initinputvalues(regions)