Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RFLU_EquilibriumEulerian.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: Add Equilibrium Eulerian corrections
26 !
27 ! Description: None.
28 !
29 ! Input:
30 ! pRegion Pointer to region
31 !
32 ! Output: None.
33 !
34 ! Notes: None.
35 !
36 ! ******************************************************************************
37 !
38 ! $Id: RFLU_EquilibriumEulerian.F90,v 1.5 2008/12/06 08:44:12 mtcampbe Exp $
39 !
40 ! Copyright: (c) 2004-2005 by the University of Illinois
41 !
42 ! ******************************************************************************
43 
44 SUBROUTINE rflu_equilibriumeulerian(pRegion)
45 
46  USE moddatatypes
47  USE moderror
48  USE modparameters
49  USE moddatastruct, ONLY: t_region
50  USE modglobal, ONLY: t_global
51 #ifdef SPEC
52  USE modspecies, ONLY: t_spec_type
53 #endif
54 
55  USE modinterfaces, ONLY: rflu_finishsd
56 #ifdef SPEC
59 #endif
60 
61  IMPLICIT NONE
62 
63 ! ******************************************************************************
64 ! Definitions and declarations
65 ! ******************************************************************************
66 
67 ! ==============================================================================
68 ! Arguments
69 ! ==============================================================================
70 
71  TYPE(t_region), POINTER :: pregion
72 
73 ! ==============================================================================
74 ! Locals
75 ! ==============================================================================
76 
77  INTEGER :: ispec
78  TYPE(t_global), POINTER :: global
79 #ifdef SPEC
80  TYPE(t_spec_type), POINTER :: pspectype
81 #endif
82 
83 ! ******************************************************************************
84 ! Start
85 ! ******************************************************************************
86 
87  global => pregion%global
88 
89  CALL registerfunction(global,'RFLU_EquilibriumEulerian',&
90  'RFLU_EquilibriumEulerian.F90')
91 
92 ! ******************************************************************************
93 ! Call various subroutines to finish computation, if necessary
94 ! ******************************************************************************
95 
96 #ifdef SPEC
97  IF ( pregion%mixtInput%indSd == 1 ) THEN
98  CALL rflu_finishsd(pregion)
99 
100  DO ispec = 1,pregion%specInput%nSpecies
101  pspectype => pregion%specInput%specType(ispec)
102 
103  IF ( pspectype%velocityMethod == spec_methv_eqeul ) THEN
104  CALL spec_rflu_seteev(pregion,ispec)
105  CALL spec_eqeulcorr(pregion,ispec)
106  END IF ! pRegion%specInput
107  END DO ! iSpec
108  END IF ! pRegion%mixtInput%indSd
109 #endif
110 
111 ! ******************************************************************************
112 ! End
113 ! ******************************************************************************
114 
115  CALL deregisterfunction(global)
116 
117 END SUBROUTINE rflu_equilibriumeulerian
118 
119 ! ******************************************************************************
120 !
121 ! RCS Revision history:
122 !
123 ! $Log: RFLU_EquilibriumEulerian.F90,v $
124 ! Revision 1.5 2008/12/06 08:44:12 mtcampbe
125 ! Updated license.
126 !
127 ! Revision 1.4 2008/11/19 22:17:25 mtcampbe
128 ! Added Illinois Open Source License/Copyright
129 !
130 ! Revision 1.3 2005/11/27 01:48:31 haselbac
131 ! Adapted to changes in EE implementation
132 !
133 ! Revision 1.2 2004/08/02 13:57:28 haselbac
134 ! Bug fix: Missing ifdefs, cosmetics
135 !
136 ! Revision 1.1 2004/07/30 22:47:35 jferry
137 ! Implemented Equilibrium Eulerian method for Rocflu
138 !
139 ! ******************************************************************************
140 
141 
142 
143 
144 
145 
146 
subroutine spec_eqeulcorr(pRegion, iSpec)
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
subroutine spec_rflu_seteev(pRegion, iSpec)
subroutine rflu_equilibriumeulerian(pRegion)
subroutine deregisterfunction(global)
Definition: ModError.F90:469
subroutine rflu_finishsd(region)