Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PERI_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 for PERI to default values.
26 !
27 ! Description: User input parameters are set to default before overruled by
28 ! user input
29 !
30 ! Input: regions data
31 !
32 ! Output: regions = initial/default values.
33 !
34 ! Notes: none.
35 !
36 !******************************************************************************
37 !
38 ! $Id: PERI_InitInputValues.F90,v 1.4 2008/12/06 08:44:36 mtcampbe Exp $
39 !
40 ! Copyright: (c) 2001 by the University of Illinois
41 !
42 !******************************************************************************
43 
44 SUBROUTINE peri_initinputvalues( regions )
45 
46  USE moddatatypes
47  USE modglobal, ONLY : t_global
48  USE moddatastruct, ONLY : t_region
49  USE modperiodic, ONLY : t_peri_input
50  USE moderror
52  IMPLICIT NONE
53 
54 ! ... parameters
55  TYPE(t_region), POINTER :: regions(:)
56 
57 ! ... loop variables
58  INTEGER :: ireg
59 
60 ! ... local variables
61  CHARACTER(CHRLEN) :: rcsidentstring
62  TYPE(t_global), POINTER :: global
63  TYPE(t_peri_input), POINTER :: input
64 
65 !******************************************************************************
66 
67  rcsidentstring = '$RCSfile: PERI_InitInputValues.F90,v $'
68 
69  global => regions(1)%global
70  CALL registerfunction( global,'PERI_InitInputValues',&
71  'PERI_InitInputValues.F90' )
72 
73 ! region related values -------------------------------------------------------
74 
75 #ifdef RFLO
76  DO ireg=1,global%nRegions
77 #endif
78 #ifdef RFLU
79  DO ireg = lbound(regions,1),ubound(regions,1)
80 #endif
81 
82  input => regions(ireg)%periInput
83 
84  input%flowKind = peri_flow_none
85  input%nVar = 0
86  input%split(:) = 0
87  input%pgradType = 0
88  input%meanPgrad = 0._rfreal
89  input%minjRate = 0._rfreal
90  input%bulkmFlux = 0._rfreal
91  input%cprEpsilon = 0._rfreal
92  input%headPres = 0._rfreal
93  input%headTemp = 0._rfreal
94 
95  ENDDO ! iReg
96 
97 ! finalize --------------------------------------------------------------------
98 
99  CALL deregisterfunction( global )
100 
101 END SUBROUTINE peri_initinputvalues
102 
103 !******************************************************************************
104 !
105 ! RCS Revision history:
106 !
107 ! $Log: PERI_InitInputValues.F90,v $
108 ! Revision 1.4 2008/12/06 08:44:36 mtcampbe
109 ! Updated license.
110 !
111 ! Revision 1.3 2008/11/19 22:17:49 mtcampbe
112 ! Added Illinois Open Source License/Copyright
113 !
114 ! Revision 1.2 2004/06/11 21:49:40 wasistho
115 ! prepared for RFLU
116 !
117 ! Revision 1.1 2004/06/08 23:56:56 wasistho
118 ! changed nomenclature
119 !
120 ! Revision 1.3 2003/09/18 01:56:54 wasistho
121 ! added ijksplit and pgradType in PERI_PgradUpdate
122 !
123 ! Revision 1.2 2003/07/17 01:20:08 wasistho
124 ! RFLU, USE ModTurbulence to USE ModPeriodic
125 !
126 ! Revision 1.1.1.1 2003/03/29 03:36:30 wasistho
127 ! install ROCPERI
128 !
129 !
130 !
131 !******************************************************************************
132 
133 
134 
135 
136 
137 
138 
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
subroutine input(X, NNODE, NDC, NCELL, NFCE, NBPTS, NBFACE, ITYP, NPROP, XBNDY, XFAR, YFAR, ZFAR)
subroutine peri_initinputvalues(regions)
subroutine deregisterfunction(global)
Definition: ModError.F90:469