Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SPEC_UpdateDependentVars.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 ! pRegion Pointer to region data
31 !
32 ! Output: None.
33 !
34 ! Notes:
35 ! 1. This body of this routine may eventually be split up into separate
36 ! parts like the routine MixtureProperties.
37 !
38 ! ******************************************************************************
39 !
40 ! $Id: SPEC_UpdateDependentVars.F90,v 1.6 2008/12/06 08:44:41 mtcampbe Exp $
41 !
42 ! Copyright: (c) 2004 by the University of Illinois
43 !
44 ! ******************************************************************************
45 
46 SUBROUTINE spec_updatedependentvars(pRegion)
47 
48  USE moddatatypes
49  USE modparameters
50  USE moderror
51  USE modglobal, ONLY: t_global
52  USE moddatastruct, ONLY: t_region
53 
54  IMPLICIT NONE
55 
56 ! ******************************************************************************
57 ! Declarations
58 ! ******************************************************************************
59 
60 ! ==============================================================================
61 ! Arguments
62 ! ==============================================================================
63 
64  TYPE(t_region), POINTER :: pregion
65 
66 ! ==============================================================================
67 ! Locals
68 ! ==============================================================================
69 
70  CHARACTER(CHRLEN) :: rcsidentstring
71  INTEGER :: icg,ispec
72  REAL(RFREAL) :: mum
73  REAL(RFREAL), DIMENSION(:,:), POINTER :: tvm,tvs
74  TYPE(t_global), POINTER :: global
75 
76 ! ******************************************************************************
77 ! Start
78 ! ******************************************************************************
79 
80  rcsidentstring = '$RCSfile: SPEC_UpdateDependentVars.F90,v $ $Revision: 1.6 $'
81 
82  global => pregion%global
83 
84  CALL registerfunction(global,'SPEC_UpdateDependentVars',&
85  'SPEC_UpdateDependentVars.F90')
86 
87 ! ******************************************************************************
88 ! Update transport variables
89 ! ******************************************************************************
90 
91  IF ( pregion%mixtInput%flowModel == flow_navst ) THEN
92  tvm => pregion%mixt%tv
93  tvs => pregion%spec%tv
94 
95  DO icg = 1,pregion%grid%nCellsTot
96  mum = tvm(tv_mixt_muel,icg)
97 
98  DO ispec = 1,pregion%specInput%nSpecies
99  tvs(ispec,icg) = mum/pregion%specInput%specType(ispec)%schmidtNumber
100  END DO ! iSpec
101  END DO ! icg
102  END IF ! pRegion%mixtInput%flowModel
103 
104 ! ******************************************************************************
105 ! End
106 ! ******************************************************************************
107 
108  CALL deregisterfunction(global)
109 
110 END SUBROUTINE spec_updatedependentvars
111 
112 ! ******************************************************************************
113 !
114 ! RCS Revision history:
115 !
116 ! $Log: SPEC_UpdateDependentVars.F90,v $
117 ! Revision 1.6 2008/12/06 08:44:41 mtcampbe
118 ! Updated license.
119 !
120 ! Revision 1.5 2008/11/19 22:17:53 mtcampbe
121 ! Added Illinois Open Source License/Copyright
122 !
123 ! Revision 1.4 2006/04/07 15:19:25 haselbac
124 ! Removed tabs
125 !
126 ! Revision 1.3 2004/12/22 00:40:18 haselbac
127 ! Bug fix: Added missing POINTER statement
128 !
129 ! Revision 1.2 2004/11/14 19:48:46 haselbac
130 ! Changed interface, clean-up
131 !
132 ! Revision 1.1 2004/01/29 22:59:32 haselbac
133 ! Initial revision
134 !
135 ! ******************************************************************************
136 
137 
138 
139 
140 
141 
142 
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
subroutine spec_updatedependentvars(pRegion)
subroutine deregisterfunction(global)
Definition: ModError.F90:469