Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UpdateDependentVarsMP.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: Update dependent variables.
26 !
27 ! Description: None.
28 !
29 ! Input:
30 ! region Region data
31 !
32 ! Output: None.
33 !
34 ! Notes: None.
35 !
36 !******************************************************************************
37 !
38 ! $Id: UpdateDependentVarsMP.F90,v 1.4 2008/12/06 08:44:10 mtcampbe Exp $
39 !
40 ! Copyright: (c) 2004-2005 by the University of Illinois
41 !
42 !******************************************************************************
43 
44 SUBROUTINE updatedependentvarsmp(region)
45 
46  USE moddatatypes
47  USE modparameters
48  USE moderror
49  USE modglobal, ONLY: t_global
50  USE moddatastruct, ONLY: t_region
51 #ifdef RFLU
54 #endif
55 
56 #ifdef RFLO
58 
59 #include "Indexing.h"
60 #endif
61 
63 
64 #ifdef PLAG
66 #endif
67 
68 #ifdef SPEC
70 #endif
71 
72  IMPLICIT NONE
73 
74 ! *****************************************************************************
75 ! Declarations
76 ! *****************************************************************************
77 
78 ! =============================================================================
79 ! Arguments
80 ! =============================================================================
81 
82  TYPE(t_region) :: region
83 
84 ! =============================================================================
85 ! Locals
86 ! =============================================================================
87 
88  CHARACTER(CHRLEN) :: rcsidentstring
89  INTEGER :: ibc,iec
90 #ifdef RFLO
91  INTEGER :: icoff,idcbeg,idcend,ijcoff,ilev,jdcbeg,jdcend,kdcbeg,kdcend
92 #endif
93  TYPE(t_global), POINTER :: global
94 #ifdef RFLU
95  TYPE(t_region), POINTER :: pregion
96 #endif
97 
98 ! *****************************************************************************
99 ! Start
100 ! *****************************************************************************
101 
102  rcsidentstring = '$RCSfile: UpdateDependentVarsMP.F90,v $ $Revision: 1.4 $'
103 
104  global => region%global
105 
106  CALL registerfunction(global,'UpdateDependentVarsMP',&
107  'UpdateDependentVarsMP.F90')
108 
109 ! *****************************************************************************
110 ! Set variables
111 ! *****************************************************************************
112 
113 #ifdef RFLO
114  ilev = region%currLevel
115 
117  kdcend)
118  CALL rflo_getcelloffset(region,ilev,icoff,ijcoff)
119  ibc = indijk(idcbeg,jdcbeg,kdcbeg,icoff,ijcoff)
120  iec = indijk(idcend,jdcend,kdcend,icoff,ijcoff)
121 #endif
122 
123 #ifdef RFLU
124  ibc = 1
125  iec = region%grid%nCellsTot
126 #endif
127 
128 ! *****************************************************************************
129 ! Update dependent variables
130 ! *****************************************************************************
131 
132 ! =============================================================================
133 ! Mixture. NOTE here the last parameter MUST be TRUE, otherwise the gas
134 ! properties do not get initialized correctly.
135 ! =============================================================================
136 
137  CALL mixtureproperties(region,ibc,iec,.true.)
138 
139 #ifdef RFLU
140 #ifdef PLAG
141 ! =============================================================================
142 ! Particles
143 ! =============================================================================
144 
145  IF ( global%plagUsed .EQV. .true. ) THEN
146  pregion => region%pRegion
147  CALL rflu_convertcvcons2prim(pregion,cv_mixt_state_duvwp)
148  CALL plag_noncvupdate(pregion)
149  CALL rflu_convertcvprim2cons(pregion,cv_mixt_state_cons)
150  END IF ! plagUsed
151 #endif
152 #endif
153 
154 #ifdef SPEC
155 ! =============================================================================
156 ! Species
157 ! =============================================================================
158 
159  IF ( global%specUsed .EQV. .true. ) THEN
160  pregion => region%pRegion
161  CALL spec_updatedependentvars(pregion,ibc,iec)
162  END IF ! global%specUsed
163 #endif
164 
165 ! *****************************************************************************
166 ! End
167 ! *****************************************************************************
168 
169  CALL deregisterfunction(global)
170 
171 END SUBROUTINE updatedependentvarsmp
172 
173 !******************************************************************************
174 !
175 ! RCS Revision history:
176 !
177 ! $Log: UpdateDependentVarsMP.F90,v $
178 ! Revision 1.4 2008/12/06 08:44:10 mtcampbe
179 ! Updated license.
180 !
181 ! Revision 1.3 2008/11/19 22:17:24 mtcampbe
182 ! Added Illinois Open Source License/Copyright
183 !
184 ! Revision 1.2 2005/04/15 15:06:04 haselbac
185 ! Adapted interface to SPEC_UpdateDependentVars
186 !
187 ! Revision 1.1 2004/12/01 16:51:59 haselbac
188 ! Initial revision after changing case
189 !
190 ! Revision 1.6 2004/11/29 17:15:20 wasistho
191 ! use ModInterfacesSpecies
192 !
193 ! Revision 1.5 2004/11/14 19:37:18 haselbac
194 ! Changed interfaces to PLAG_nonCvUpdate and SPEC_UpdateDependentVars
195 !
196 ! Revision 1.4 2004/07/28 15:29:18 jferry
197 ! created global variable for spec use
198 !
199 ! Revision 1.3 2004/03/05 22:09:00 jferry
200 ! created global variables for peul, plag, and inrt use
201 !
202 ! Revision 1.2 2004/02/26 21:01:50 haselbac
203 ! Added PLAG support
204 !
205 ! Revision 1.1 2004/01/29 22:52:33 haselbac
206 ! Initial revision
207 !
208 !******************************************************************************
209 
210 
211 
212 
213 
214 
215 
**********************************************************************Rocstar Simulation Suite Illinois Rocstar LLC All rights reserved ****Illinois Rocstar LLC IL **www illinoisrocstar com **sales illinoisrocstar com WITHOUT WARRANTY OF ANY **EXPRESS OR INCLUDING BUT NOT LIMITED TO THE WARRANTIES **OF FITNESS FOR A PARTICULAR PURPOSE AND **NONINFRINGEMENT IN NO EVENT SHALL THE CONTRIBUTORS OR **COPYRIGHT HOLDERS BE LIABLE FOR ANY DAMAGES OR OTHER WHETHER IN AN ACTION OF TORT OR **Arising OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE **USE OR OTHER DEALINGS WITH THE SOFTWARE **********************************************************************INTERFACE SUBROUTINE idcend
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
subroutine, public rflu_convertcvcons2prim(pRegion, cvStateFuture)
subroutine rflo_getdimensdummy(region, iLev, idcbeg, idcend, jdcbeg, jdcend, kdcbeg, kdcend)
**********************************************************************Rocstar Simulation Suite Illinois Rocstar LLC All rights reserved ****Illinois Rocstar LLC IL **www illinoisrocstar com **sales illinoisrocstar com WITHOUT WARRANTY OF ANY **EXPRESS OR INCLUDING BUT NOT LIMITED TO THE WARRANTIES **OF FITNESS FOR A PARTICULAR PURPOSE AND **NONINFRINGEMENT IN NO EVENT SHALL THE CONTRIBUTORS OR **COPYRIGHT HOLDERS BE LIABLE FOR ANY DAMAGES OR OTHER WHETHER IN AN ACTION OF TORT OR **Arising OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE **USE OR OTHER DEALINGS WITH THE SOFTWARE **********************************************************************INTERFACE SUBROUTINE kdcbeg
subroutine plag_noncvupdate(region)
subroutine, public rflu_convertcvprim2cons(pRegion, cvStateFuture)
subroutine rflo_getcelloffset(region, iLev, iCellOffset, ijCellOffset)
**********************************************************************Rocstar Simulation Suite Illinois Rocstar LLC All rights reserved ****Illinois Rocstar LLC IL **www illinoisrocstar com **sales illinoisrocstar com WITHOUT WARRANTY OF ANY **EXPRESS OR INCLUDING BUT NOT LIMITED TO THE WARRANTIES **OF FITNESS FOR A PARTICULAR PURPOSE AND **NONINFRINGEMENT IN NO EVENT SHALL THE CONTRIBUTORS OR **COPYRIGHT HOLDERS BE LIABLE FOR ANY DAMAGES OR OTHER WHETHER IN AN ACTION OF TORT OR **Arising OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE **USE OR OTHER DEALINGS WITH THE SOFTWARE **********************************************************************INTERFACE SUBROUTINE idcbeg
**********************************************************************Rocstar Simulation Suite Illinois Rocstar LLC All rights reserved ****Illinois Rocstar LLC IL **www illinoisrocstar com **sales illinoisrocstar com WITHOUT WARRANTY OF ANY **EXPRESS OR INCLUDING BUT NOT LIMITED TO THE WARRANTIES **OF FITNESS FOR A PARTICULAR PURPOSE AND **NONINFRINGEMENT IN NO EVENT SHALL THE CONTRIBUTORS OR **COPYRIGHT HOLDERS BE LIABLE FOR ANY DAMAGES OR OTHER WHETHER IN AN ACTION OF TORT OR **Arising OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE **USE OR OTHER DEALINGS WITH THE SOFTWARE **********************************************************************INTERFACE SUBROUTINE jdcend
**********************************************************************Rocstar Simulation Suite Illinois Rocstar LLC All rights reserved ****Illinois Rocstar LLC IL **www illinoisrocstar com **sales illinoisrocstar com WITHOUT WARRANTY OF ANY **EXPRESS OR INCLUDING BUT NOT LIMITED TO THE WARRANTIES **OF FITNESS FOR A PARTICULAR PURPOSE AND **NONINFRINGEMENT IN NO EVENT SHALL THE CONTRIBUTORS OR **COPYRIGHT HOLDERS BE LIABLE FOR ANY DAMAGES OR OTHER WHETHER IN AN ACTION OF TORT OR **Arising OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE **USE OR OTHER DEALINGS WITH THE SOFTWARE **********************************************************************INTERFACE SUBROUTINE jdcbeg
subroutine spec_updatedependentvars(pRegion)
subroutine mixtureproperties(region, inBeg, inEnd, gasUpdate)
subroutine deregisterfunction(global)
Definition: ModError.F90:469
subroutine updatedependentvarsmp(region)