Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TURB_LesFluxFixSmag.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: Obtain viscous fluxes based the fixed Smagorinsky model.
26 !
27 ! Description: Get eddy viscosity from the fixed Smagorinsky model then
28 ! add the viscous fluxes to the dissipation residual, mixt%diss.
29 ! The eddy viscosity is obtained by calling LesCalcEddyVis then
30 ! the viscous fluxes by calling VisFluxEddy.
31 !
32 ! Input: region = data of current region
33 ! ibn,ien = begin and end node index
34 !
35 ! Output: eddy viscosity (mueT) and viscous fluxes.
36 !
37 ! Notes: none.
38 !
39 !******************************************************************************
40 !
41 ! $Id: TURB_LesFluxFixSmag.F90,v 1.6 2008/12/06 08:44:41 mtcampbe Exp $
42 !
43 ! Copyright: (c) 2001 by the University of Illinois
44 !
45 !******************************************************************************
46 
47 SUBROUTINE turb_lesfluxfixsmag( region,ibn,ien )
48 
49  USE moddatatypes
50  USE moddatastruct, ONLY : t_region
51  USE modglobal, ONLY : t_global
53 
54  USE moderror
56  IMPLICIT NONE
57 
58 ! ... parameters
59 #ifdef RFLO
60  TYPE(t_region) :: region
61 #endif
62 #ifdef RFLU
63  TYPE(t_region), POINTER :: region
64 #endif
65  INTEGER :: ibn, ien
66 
67 ! ... local variables
68  CHARACTER(CHRLEN) :: rcsidentstring
69  TYPE(t_global), POINTER :: global
70 
71 !******************************************************************************
72 
73  rcsidentstring = '$RCSfile: TURB_LesFluxFixSmag.F90,v $'
74 
75  global => region%global
76  CALL registerfunction( global,'TURB_LesFluxFixSmag',&
77  'TURB_LesFluxFixSmag.F90' )
78 
79 ! obtain eddy viscosity in i, j and k faces ----------------------------------
80  CALL turb_lescalceddyvis( region,ibn,ien,diri )
81 #ifdef RFLO
82  CALL turb_lescalceddyvis( region,ibn,ien,dirj )
83  CALL turb_lescalceddyvis( region,ibn,ien,dirk )
84 #endif
85 
86 #ifdef RFLU
87 ! apply boundary conditions for LES variables
88 ! CALL TURB_FluLesBndConditions( targetFlag )
89 #endif
90 
91 ! get viscous fluxes
92  CALL turb_visfluxeddy( region )
93 
94 ! finalize --------------------------------------------------------------------
95 
96  CALL deregisterfunction( global )
97 
98 END SUBROUTINE turb_lesfluxfixsmag
99 
100 !******************************************************************************
101 !
102 ! RCS Revision history:
103 !
104 ! $Log: TURB_LesFluxFixSmag.F90,v $
105 ! Revision 1.6 2008/12/06 08:44:41 mtcampbe
106 ! Updated license.
107 !
108 ! Revision 1.5 2008/11/19 22:17:54 mtcampbe
109 ! Added Illinois Open Source License/Copyright
110 !
111 ! Revision 1.4 2004/05/28 02:03:58 wasistho
112 ! update unstructured grid LES
113 !
114 ! Revision 1.3 2004/03/25 04:40:41 wasistho
115 ! prepared for RFLU
116 !
117 ! Revision 1.2 2004/03/19 02:49:56 wasistho
118 ! prepared for RFLU
119 !
120 ! Revision 1.1 2004/03/05 04:37:00 wasistho
121 ! changed nomenclature
122 !
123 ! Revision 1.2 2003/10/09 23:07:34 wasistho
124 ! renamed CalcEddyVis to LesCalcEddyVis
125 !
126 ! Revision 1.1 2002/10/14 23:55:29 wasistho
127 ! Install Rocturb
128 !
129 !
130 !******************************************************************************
131 
132 
133 
134 
135 
136 
137 
subroutine turb_visfluxeddy(region)
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
subroutine turb_lesfluxfixsmag(region, ibn, ien)
subroutine turb_lescalceddyvis(region, ibn, ien, ijk)
subroutine deregisterfunction(global)
Definition: ModError.F90:469