Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PEUL_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: compute source terms for smoke and add them to the residual
26 !
27 ! Description: none.
28 !
29 ! Input: region = data of current region.
30 !
31 ! Output: region%levels%peul%rhs = source terms.
32 !
33 ! Notes: none.
34 !
35 !******************************************************************************
36 !
37 ! $Id: PEUL_SourceTerms.F90,v 1.3 2008/12/06 08:44:39 mtcampbe Exp $
38 !
39 ! Copyright: (c) 2004 by the University of Illinois
40 !
41 !******************************************************************************
42 
43 SUBROUTINE peul_sourceterms( region ) ! PUBLIC
44 
45  USE moddatatypes
46  USE moddatastruct, ONLY : t_region
47  USE modglobal, ONLY : t_global
48  USE moderror
49  USE modparameters
51 
53 
54  IMPLICIT NONE
55 
56 ! ... parameters
57  TYPE(t_region), INTENT(INOUT) :: region
58 
59 ! ... loop variables
60  INTEGER :: ipt
61 
62 ! ... local variables
63  CHARACTER(CHRLEN) :: rcsidentstring
64 
65  INTEGER :: nptypes
66 
67  TYPE(t_global), POINTER :: global
68 
69 !******************************************************************************
70 
71  rcsidentstring = '$RCSfile: PEUL_SourceTerms.F90,v $ $Revision: 1.3 $'
72 
73  global => region%global
74 
75  CALL registerfunction( global,'PEUL_SourceTerms',&
76  'PEUL_SourceTerms.F90' )
77 
78 ! begin -----------------------------------------------------------------------
79 
80  nptypes = region%peulInput%nPtypes
81 
82  DO ipt = 1,nptypes
83 
84  SELECT CASE (region%peulInput%ptypes(ipt)%methodV)
85 
86  CASE (peul_methv_eqeul)
87  CALL peul_sourceeqeul(region,ipt)
88 
89  END SELECT ! methodV
90 
91  END DO ! ipt
92 
93 ! finalize --------------------------------------------------------------------
94 
95  CALL deregisterfunction( global )
96 
97 END SUBROUTINE peul_sourceterms
98 
99 !******************************************************************************
100 !
101 ! RCS Revision history:
102 !
103 ! $Log: PEUL_SourceTerms.F90,v $
104 ! Revision 1.3 2008/12/06 08:44:39 mtcampbe
105 ! Updated license.
106 !
107 ! Revision 1.2 2008/11/19 22:17:52 mtcampbe
108 ! Added Illinois Open Source License/Copyright
109 !
110 ! Revision 1.1 2004/12/01 21:10:00 haselbac
111 ! Initial revision after changing case
112 !
113 ! Revision 1.1 2004/05/04 20:27:37 jferry
114 ! Implemented equilibrium Eulerian method
115 !
116 !******************************************************************************
117 
118 
119 
120 
121 
122 
123 
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
subroutine deregisterfunction(global)
Definition: ModError.F90:469
subroutine peul_sourceeqeul(region, ipt)
subroutine peul_sourceterms(region)