Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RFLU_ModFlowHardCode.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: Suite of routines to support hard-coded flow solutions.
26 !
27 ! Description: None.
28 !
29 ! Notes:
30 ! 1. Collected routines in single module because setting of parameters is
31 ! needed in at least three places: initialization of solution, setting
32 ! of boundary profiles, and computation of errors.
33 !
34 ! ******************************************************************************
35 !
36 ! $Id: RFLU_ModFlowHardCode.F90,v 1.6 2008/12/06 08:44:21 mtcampbe Exp $
37 !
38 ! Copyright: (c) 2004-2005 by the University of Illinois
39 !
40 ! ******************************************************************************
41 
43 
44  USE modparameters
45  USE moddatatypes
46 
47  IMPLICIT NONE
48 
49  PRIVATE
50  PUBLIC :: rflu_getparamshardcodepacoust, &
54 
55 ! ******************************************************************************
56 ! Declarations and definitions
57 ! ******************************************************************************
58 
59  CHARACTER(CHRLEN) :: RCSIdentString = &
60  '$RCSfile: RFLU_ModFlowHardCode.F90,v $ $Revision: 1.6 $'
61 
62 ! ******************************************************************************
63 ! Routines
64 ! ******************************************************************************
65 
66  CONTAINS
67 
68 
69 
70 ! ******************************************************************************
71 !
72 ! Purpose: Get parameters for pipe acoustics.
73 !
74 ! Description: None.
75 !
76 ! Input: None.
77 !
78 ! Output:
79 ! pTot Total pressure
80 ! aTot Total speed of sound
81 !
82 ! Notes: None.
83 !
84 ! ******************************************************************************
85 
86  SUBROUTINE rflu_getparamshardcodepacoust(pTot,aTot)
87 
88  REAL(RFREAL), INTENT(OUT) :: atot,ptot
89 
90  atot = 340.0_rfreal
91  ptot = 1.0e+5_rfreal
92 
93  END SUBROUTINE rflu_getparamshardcodepacoust
94 
95 
96 
97 ! ******************************************************************************
98 !
99 ! Purpose: Get parameters for Proudman-Culick flow.
100 !
101 ! Description: None.
102 !
103 ! Input: None.
104 !
105 ! Output:
106 ! dInc Density
107 ! mInj Injection mass flux
108 ! vInj Injection velocity
109 ! pTot Total pressure
110 !
111 ! Notes: None.
112 !
113 ! ******************************************************************************
114 
115  SUBROUTINE rflu_getparamshardcodeproudman(dInc,mInj,vInj,pTot)
116 
117  REAL(RFREAL), INTENT(OUT) :: dinc,minj,ptot,vinj
118 
119  dinc = 1.0_rfreal
120  minj = 2.42_rfreal
121  vinj = minj/dinc
122  ptot = 1.0e+5_rfreal
123 
124  END SUBROUTINE rflu_getparamshardcodeproudman
125 
126 
127 
128 ! ******************************************************************************
129 !
130 ! Purpose: Get parameters for Ringleb flow.
131 !
132 ! Description: None.
133 !
134 ! Input: None.
135 !
136 ! Output:
137 ! pTot Total pressure
138 ! tTot Total temperature
139 !
140 ! Notes: None.
141 !
142 ! ******************************************************************************
143 
144  SUBROUTINE rflu_getparamshardcoderingleb(pTot,tTot)
145 
146  REAL(RFREAL), INTENT(OUT) :: ptot,ttot
147 
148  ptot = 1.0e+5_rfreal
149  ttot = 288.15_rfreal
150 
151  END SUBROUTINE rflu_getparamshardcoderingleb
152 
153 
154 
155 ! ******************************************************************************
156 !
157 ! Purpose: Get parameters for supersonic vortex flow.
158 !
159 ! Description: None.
160 !
161 ! Input: None.
162 !
163 ! Output:
164 ! ri Inner radius
165 ! Mi Mach number at inner radius
166 ! pTot Total pressure
167 ! tTot Total temperature
168 !
169 ! Notes: None.
170 !
171 ! ******************************************************************************
172 
173  SUBROUTINE rflu_getparamshardcodessvortex(ri,Mi,pTot,tTot)
174 
175  REAL(RFREAL), INTENT(OUT) :: mi,ptot,ri,ttot
176 
177  ri = 1.0_rfreal
178  mi = 2.25_rfreal
179  ptot = 1.0e+5_rfreal
180  ttot = 288.15_rfreal
181 
182  END SUBROUTINE rflu_getparamshardcodessvortex
183 
184 
185 
186 
187 ! ******************************************************************************
188 ! End
189 ! ******************************************************************************
190 
191 END MODULE rflu_modflowhardcode
192 
193 
194 ! ******************************************************************************
195 !
196 ! RCS Revision history:
197 !
198 ! $Log: RFLU_ModFlowHardCode.F90,v $
199 ! Revision 1.6 2008/12/06 08:44:21 mtcampbe
200 ! Updated license.
201 !
202 ! Revision 1.5 2008/11/19 22:17:32 mtcampbe
203 ! Added Illinois Open Source License/Copyright
204 !
205 ! Revision 1.4 2006/04/07 15:19:19 haselbac
206 ! Removed tabs
207 !
208 ! Revision 1.3 2005/03/15 20:45:06 haselbac
209 ! Added routine to get parameters for pipe acoustics
210 !
211 ! Revision 1.2 2004/07/06 15:14:39 haselbac
212 ! Cosmetics only
213 !
214 ! Revision 1.1 2004/02/23 23:01:49 haselbac
215 ! Initial revision
216 !
217 ! ******************************************************************************
218 
219 
220 
221 
222 
223 
subroutine, public rflu_getparamshardcodessvortex(ri, Mi, pTot, tTot)
subroutine, public rflu_getparamshardcoderingleb(pTot, tTot)
subroutine, public rflu_getparamshardcodeproudman(dInc, mInj, vInj, pTot)
subroutine, public rflu_getparamshardcodepacoust(pTot, aTot)