Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SPEC_InitInputValuesSpecType.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 for species to default values.
26 !
27 ! Description: None.
28 !
29 ! Input:
30 ! regions Region data
31 ! iSpecType Species type
32 !
33 ! Output: None.
34 !
35 ! Notes: None.
36 !
37 !******************************************************************************
38 !
39 ! $Id: SPEC_InitInputValuesSpecType.F90,v 1.8 2008/12/06 08:44:40 mtcampbe Exp $
40 !
41 ! Copyright: (c) 2003-2004 by the University of Illinois
42 !
43 !******************************************************************************
44 
45 SUBROUTINE spec_initinputvaluesspectype(region,iSpecType)
46 
47  USE moddatatypes
48  USE modglobal, ONLY: t_global
49  USE modspecies, ONLY: t_spec_input
50  USE moddatastruct, ONLY: t_region
51  USE moderror
52  USE modparameters
53  USE modmpi
54 
55  IMPLICIT NONE
56 
57 ! *****************************************************************************
58 ! Declarations and definitions
59 ! *****************************************************************************
60 
61 ! =============================================================================
62 ! Arguments
63 ! =============================================================================
64 
65  INTEGER, INTENT(IN) :: ispectype
66  TYPE(t_region) :: region
67 
68 ! =============================================================================
69 ! Locals
70 ! =============================================================================
71 
72  CHARACTER(CHRLEN) :: rcsidentstring
73  TYPE(t_global), POINTER :: global
74 
75 ! *****************************************************************************
76 ! Start
77 ! *****************************************************************************
78 
79  rcsidentstring = &
80  '$RCSfile: SPEC_InitInputValuesSpecType.F90,v $ $Revision: 1.8 $'
81 
82  global => region%global
83 
84  CALL registerfunction(global,'SPEC_InitInputValuesSpecType',&
85  'SPEC_InitInputValuesSpecType.F90')
86 
87 ! ******************************************************************************
88 ! Initialize
89 ! ******************************************************************************
90 
91 ! ==============================================================================
92 ! Common to all species
93 ! ==============================================================================
94 
95  region%specInput%specType(ispectype)%frozenFlag = .false.
96  region%specInput%specType(ispectype)%initVal = 1.0_rfreal
97  region%specInput%specType(ispectype)%sourceType = spec_source_type_none
98  region%specInput%specType(ispectype)%schmidtNumber = 1.0_rfreal
99 
100 ! ==============================================================================
101 ! Specific to species representing particles
102 ! ==============================================================================
103 
104  region%specInput%specType(ispectype)%iSpec2iSpecEEv = crazy_value_int
105  region%specInput%specType(ispectype)%iSpecEEv2iSpec = crazy_value_int
106  region%specInput%specType(ispectype)%diameter = 0.0_rfreal
107  region%specInput%specType(ispectype)%puffFactor = 1.0_rfreal
108  region%specInput%specType(ispectype)%velocityMethod = spec_methv_fluidvel
109  region%specInput%specType(ispectype)%settlingFlag = .false.
110 
111 ! ******************************************************************************
112 ! End
113 ! ******************************************************************************
114 
115  CALL deregisterfunction(global)
116 
117 END SUBROUTINE spec_initinputvaluesspectype
118 
119 !******************************************************************************
120 !
121 ! RCS Revision history:
122 !
123 ! $Log: SPEC_InitInputValuesSpecType.F90,v $
124 ! Revision 1.8 2008/12/06 08:44:40 mtcampbe
125 ! Updated license.
126 !
127 ! Revision 1.7 2008/11/19 22:17:52 mtcampbe
128 ! Added Illinois Open Source License/Copyright
129 !
130 ! Revision 1.6 2005/11/27 01:54:46 haselbac
131 ! Added init for EEv variables, cosmetics
132 !
133 ! Revision 1.5 2005/11/10 02:35:13 haselbac
134 ! Added init for settlingFlag
135 !
136 ! Revision 1.4 2004/07/30 22:47:37 jferry
137 ! Implemented Equilibrium Eulerian method for Rocflu
138 !
139 ! Revision 1.3 2004/07/23 22:43:17 jferry
140 ! Integrated rocspecies into rocinteract
141 !
142 ! Revision 1.2 2004/01/29 22:59:34 haselbac
143 ! Added Schmidt number
144 !
145 ! Revision 1.1 2003/11/25 21:08:37 haselbac
146 ! Initial revision
147 !
148 !******************************************************************************
149 
150 
151 
152 
153 
154 
155 
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
subroutine spec_initinputvaluesspectype(region, iSpecType)
subroutine deregisterfunction(global)
Definition: ModError.F90:469