Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PERI_SourceTerms.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: collect source terms pertinent to periodic flows rocperi
26 !
27 ! Description: Depending on flow kind, different source terms are added to
28 ! the right hand side.
29 !
30 ! Input: regions = data of all regions
31 ! iReg = index of current region.
32 !
33 ! Output: rhs updated by PERI source terms
34 !
35 ! Notes: none.
36 !
37 !******************************************************************************
38 !
39 ! $Id: PERI_SourceTerms.F90,v 1.5 2008/12/06 08:44:36 mtcampbe Exp $
40 !
41 ! Copyright: (c) 2001 by the University of Illinois
42 !
43 !******************************************************************************
44 
45 SUBROUTINE peri_sourceterms( region ) ! PUBLIC
46 
47  USE moddatatypes
48  USE modglobal, ONLY : t_global
49  USE moddatastruct, ONLY : t_region
51  USE moderror
53  IMPLICIT NONE
54 
55 ! ... parameters
56  TYPE(t_region) :: region
57  INTEGER :: ireg
58 
59 ! ... local variables
60  CHARACTER(CHRLEN) :: rcsidentstring
61  TYPE(t_global), POINTER :: global
62 
63 !******************************************************************************
64 
65  rcsidentstring = '$RCSfile: PERI_SourceTerms.F90,v $ $Revision: 1.5 $'
66 
67  global => region%global
68  CALL registerfunction( global,'PERI_SourceTerms',&
69  'PERI_SourceTerms.F90' )
70 
71 ! collect PERI source terms -------- -----------------------------------------
72 
73  IF (region%periInput%flowKind == peri_flow_cpr) THEN
74  CALL peri_cocprslowterms( region )
75  ELSEIF (region%periInput%flowKind == peri_flow_channel) THEN
76  CALL peri_cnlforceterm( region )
77  ENDIF
78 
79 ! finalize -------------------------------------------------------------------
80 
81  CALL deregisterfunction( global )
82 
83 END SUBROUTINE peri_sourceterms
84 
85 !******************************************************************************
86 !
87 ! RCS Revision history:
88 !
89 ! $Log: PERI_SourceTerms.F90,v $
90 ! Revision 1.5 2008/12/06 08:44:36 mtcampbe
91 ! Updated license.
92 !
93 ! Revision 1.4 2008/11/19 22:17:49 mtcampbe
94 ! Added Illinois Open Source License/Copyright
95 !
96 ! Revision 1.3 2004/06/11 21:49:40 wasistho
97 ! prepared for RFLU
98 !
99 ! Revision 1.2 2004/06/09 01:21:41 wasistho
100 ! prepared for RFLU
101 !
102 ! Revision 1.1 2004/06/08 23:56:56 wasistho
103 ! changed nomenclature
104 !
105 ! Revision 1.1.1.1 2003/03/29 03:36:30 wasistho
106 ! install ROCPERI
107 !
108 !
109 !******************************************************************************
110 
111 
112 
113 
114 
115 
116 
subroutine peri_cocprslowterms(region)
subroutine peri_sourceterms(region)
subroutine peri_cnlforceterm(region)
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
subroutine deregisterfunction(global)
Definition: ModError.F90:469