Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
POST_PrintPostInput.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: print on screen post input for checking purposes.
26 !
27 ! Description: none.
28 !
29 ! Input: regions = user input.
30 !
31 ! Output: to standard output.
32 !
33 ! Notes: none.
34 !
35 !******************************************************************************
36 !
37 ! $Id: POST_PrintPostInput.F90,v 1.3 2008/12/06 08:44:49 mtcampbe Exp $
38 !
39 ! Copyright: (c) 2001 by the University of Illinois
40 !
41 !******************************************************************************
42 
43 SUBROUTINE printpostinput( region )
44 
45  USE moddatatypes
46  USE moddatastruct, ONLY : t_region
47  USE modglobal, ONLY : t_global
48  USE moderror
49  USE modparameters
50  IMPLICIT NONE
51 
52 ! ... parameters
53  TYPE(t_region) :: region
54 
55 ! ... loop variables
56 
57 ! ... local variables
58  TYPE(t_global), POINTER :: global
59  INTEGER :: ireg, ilev, l, h
60 
61 !******************************************************************************
62 
63  global => region%global
64 
65  CALL registerfunction( global,'PrintPostInput',&
66  'POST_PrintPostInput.F90' )
67 
68 ! obtain parameters -----------------------------------------------------------
69 
70  ireg = region%iRegionGlobal
71  ilev = region%currLevel
72 
73 ! start screen output ---------------------------------------------------------
74 
75  IF (ireg == 1) THEN
76 
77  WRITE(stdout,1000) solver_name
78  WRITE(stdout,1005) solver_name//' Actual rocflo-post input selected:'
79  WRITE(stdout,1030) solver_name//' '
80  WRITE(stdout,1015) solver_name//' Grid level ',global%startLevel
81 
82  IF (global%flowType == flow_steady) THEN
83  WRITE(stdout,1030) solver_name//' Flow type = steady'
84  ELSE
85  WRITE(stdout,1030) solver_name//' Flow type = unsteady'
86  ENDIF
87 
88  IF (global%postPlotType == plot_grid_only) THEN
89  WRITE(stdout,1030) solver_name//' Plot type = grid only'
90  ELSE
91  WRITE(stdout,1030) solver_name//' Plot type = grid+solution'
92  ENDIF
93 
94  IF (global%flowType == flow_steady) THEN
95  WRITE(stdout,1015) solver_name//' At iteration ',global%postIter
96  ELSE
97  WRITE(stdout,1020) solver_name//' At time ',global%postTime
98  ENDIF
99 
100  IF (global%postOutFmt == plot_fmt_generic) THEN
101  WRITE(stdout,1030) solver_name//' Output plot format = generic'
102  ELSEIF (global%postOutFmt == plot_fmt_tecplot) THEN
103  WRITE(stdout,1030) solver_name//' Output plot format = Tecplot binary'
104  ELSEIF (global%postOutFmt == plot_fmt_tecascii) THEN
105  WRITE(stdout,1030) solver_name//' Output plot format = Tecplot ASCII'
106  ENDIF
107 
108  WRITE(stdout,1030) solver_name// &
109  ' Gas properties = see Ref., Visc. and Material Section in .inp'
110 
111  IF ((global%postStatsFlag .EQV. .false.) .AND. &
112  (global%postTurbFlag .EQV. .false.) .AND. &
113  (global%postPlagFlag .EQV. .false.) .AND. &
114  (global%postRadiFlag .EQV. .false.) .AND. &
115  (global%postSpecFlag .EQV. .false.)) THEN
116  WRITE(stdout,1005) solver_name//' Additional modules postprocessed: none'
117  ELSE
118  WRITE(stdout,1005) solver_name//' Additional modules postprocessed:'
119  IF (global%postStatsFlag) &
120  WRITE(stdout,1030) solver_name//' Statistics solution'
121  IF (global%postTurbFlag) &
122  WRITE(stdout,1030) solver_name//' Turbulence solution'
123  IF (global%postPlagFlag) &
124  WRITE(stdout,1030) solver_name//' Particles solution'
125  IF (global%postRadiFlag) &
126  WRITE(stdout,1030) solver_name//' Radiation solution'
127  IF (global%postSpecFlag) &
128  WRITE(stdout,1030) solver_name//' Species solution'
129  ENDIF ! module flag
130  ENDIF ! iReg=1
131 
132 ! grid and solution ----------------------------------------------------------
133 
134  IF (global%verbLevel < verbose_high) goto 888
135 
136  WRITE(stdout,1025) solver_name,ireg
137 
138 ! dimensions
139 
140  WRITE(stdout,1005) solver_name//' Dimensions:'
141  WRITE(stdout,1015) solver_name//' icells ',region%levels(ilev)%grid%ipc
142  WRITE(stdout,1015) solver_name//' jcells ',region%levels(ilev)%grid%jpc
143  WRITE(stdout,1015) solver_name//' kcells ',region%levels(ilev)%grid%kpc
144  WRITE(stdout,1015) solver_name//' dummy cells ',region%nDumCells
145 
146 ! minmax solution
147 
148  IF (global%postPlotType == plot_grid_flow) THEN
149 
150  l = lbound( region%levels(ilev)%mixt%cv,2 )
151  h = ubound( region%levels(ilev)%mixt%cv,2 )
152 
153  WRITE(stdout,1005) solver_name//' Minmax solution, dummy layers included:'
154  WRITE(stdout,1022) solver_name//' density ', &
155  minval( region%levels(ilev)%mixt%cv(cv_mixt_dens,l:h) ), &
156  maxval( region%levels(ilev)%mixt%cv(cv_mixt_dens,l:h) )
157  WRITE(stdout,1022) solver_name//' x-velocity ', &
158  minval( region%levels(ilev)%mixt%dv(dv_mixt_uvel,l:h) ), &
159  maxval( region%levels(ilev)%mixt%dv(dv_mixt_uvel,l:h) )
160  WRITE(stdout,1022) solver_name//' y-velocity ', &
161  minval( region%levels(ilev)%mixt%dv(dv_mixt_vvel,l:h) ), &
162  maxval( region%levels(ilev)%mixt%dv(dv_mixt_vvel,l:h) )
163  WRITE(stdout,1022) solver_name//' z-velocity ', &
164  minval( region%levels(ilev)%mixt%dv(dv_mixt_wvel,l:h) ), &
165  maxval( region%levels(ilev)%mixt%dv(dv_mixt_wvel,l:h) )
166  WRITE(stdout,1022) solver_name//' pressure ', &
167  minval( region%levels(ilev)%mixt%dv(dv_mixt_pres,l:h) ), &
168  maxval( region%levels(ilev)%mixt%dv(dv_mixt_pres,l:h) )
169  ENDIF ! pltType
170 
171 ! finish ----------------------------------------------------------------------
172 
173 888 CONTINUE
174 
175  IF (global%verblevel >= verbose_high .OR. ireg == 1) &
176  WRITE(stdout,1035) solver_name
177 
178  CALL deregisterfunction( global )
179 
180 1000 FORMAT(/,a,1x,80('-'))
181 1005 FORMAT(/,a)
182 1010 FORMAT(a,' = ',i2)
183 1015 FORMAT(a,' = ',i8)
184 1020 FORMAT(a,' = ',e12.5)
185 1022 FORMAT(a,' = ',2e12.5)
186 1025 FORMAT(/,a,' Region ',i6,':')
187 1030 FORMAT(a)
188 1035 FORMAT(/,a,1x,80('-'))
189 
190 END SUBROUTINE printpostinput
191 
192 !******************************************************************************
193 !
194 ! RCS Revision history:
195 !
196 ! $Log: POST_PrintPostInput.F90,v $
197 ! Revision 1.3 2008/12/06 08:44:49 mtcampbe
198 ! Updated license.
199 !
200 ! Revision 1.2 2008/11/19 22:17:59 mtcampbe
201 ! Added Illinois Open Source License/Copyright
202 !
203 ! Revision 1.1 2004/12/03 02:03:16 wasistho
204 ! added prefix
205 !
206 ! Revision 1.1 2004/12/03 00:32:01 wasistho
207 ! lower to upper case
208 !
209 ! Revision 1.2 2004/08/27 04:01:29 wasistho
210 ! improved (cosmetics) screen output
211 !
212 ! Revision 1.1 2004/07/28 01:51:28 wasistho
213 ! initial import printPostInput
214 !
215 !
216 !******************************************************************************
217 
218 
219 
220 
221 
222 
223 
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
void int int REAL * x
Definition: read.cpp:74
subroutine printpostinput(region)
subroutine deregisterfunction(global)
Definition: ModError.F90:469
RT a() const
Definition: Line_2.h:140