Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
INRT_DefineBoilingRegulation.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: Defines the interaction Boiling Regulation
26 !
27 ! Description: none.
28 !
29 ! Input: region = data of current region.
30 !
31 ! Output: modifies region%inrtInput%inrts
32 !
33 ! Notes:
34 !
35 ! Whereas INRT_Initialize sets up everything generic to all interactions,
36 ! this routine sets up things specific to this interaction.
37 !
38 ! In particular, this is where the designer
39 !
40 ! (a) gives values for all the interactions parameters (or leaves them
41 ! as default values given in INRT_Initialize). These parameters are
42 ! described in ModInteract.
43 !
44 ! (b) defines the Edges of the interaction. Here the type of an Edge is
45 ! given (i.e., whether it transports mass, momentum, or energy), as well
46 ! as the indices of the Nodes at either end. For each momentum Edge
47 ! he must call the routine INRT_FinishMomentumEdge.
48 !
49 !******************************************************************************
50 !
51 ! $Id: INRT_DefineBoilingRegulation.F90,v 1.3 2008/12/06 08:44:31 mtcampbe Exp $
52 !
53 ! Copyright: (c) 2003 by the University of Illinois
54 !
55 !******************************************************************************
56 
57 SUBROUTINE inrt_defineboilingregulation( region )
58 
59  USE moddatatypes
60  USE moddatastruct, ONLY : t_region
61  USE modglobal, ONLY : t_global
62  USE modinteract
63  USE moderror
65 
67  IMPLICIT NONE
68 
69 ! ... parameters
70  TYPE(t_region), INTENT(INOUT) :: region
71 
72 ! ... local variables
73  CHARACTER(CHRLEN) :: rcsidentstring
74 
75  INTEGER :: nedges
76 
77  TYPE(t_inrt_input), POINTER :: input
78  TYPE(t_inrt_interact), POINTER :: inrt
79  TYPE(t_global), POINTER :: global
80 
81 !******************************************************************************
82 
83  rcsidentstring = '$RCSfile: INRT_DefineBoilingRegulation.F90,v $ $Revision: 1.3 $'
84 
85  global => region%global
86 
87  CALL registerfunction( global,'INRT_DefineBoilingRegulation',&
88  'INRT_DefineBoilingRegulation.F90' )
89 
90 ! begin -----------------------------------------------------------------------
91 
92 ! allocate memory for edges, switches and data
93 
94  input => region%inrtInput
95  inrt => input%inrts(inrt_type_boilrgn)
96 
97  inrt%name = "Boiling_Regulation"
98 
99  nedges = inrt_boilrgn_nedges
100 
101  CALL inrt_allocateauxillary(global,inrt,nedges, &
102  inrt_swi_boilrgn_total,inrt_dat_boilrgn_total)
103 
104 ! set parameters for this interaction: see comment in ModInteract
105 
106  inrt%pclsUsed = .false. ! no particles involved in this interaction
107  inrt%order = 200 ! special interaction: performed late
108 
109 ! define Edges
110 
111 ! ** this interaction has no Edges **
112 
113 ! finalize --------------------------------------------------------------------
114 
115  CALL deregisterfunction( global )
116 
117 END SUBROUTINE inrt_defineboilingregulation
118 
119 !******************************************************************************
120 !
121 ! RCS Revision history:
122 !
123 ! $Log: INRT_DefineBoilingRegulation.F90,v $
124 ! Revision 1.3 2008/12/06 08:44:31 mtcampbe
125 ! Updated license.
126 !
127 ! Revision 1.2 2008/11/19 22:17:44 mtcampbe
128 ! Added Illinois Open Source License/Copyright
129 !
130 ! Revision 1.1 2004/12/01 21:56:20 fnajjar
131 ! Initial revision after changing case
132 !
133 ! Revision 1.2 2004/03/05 22:09:03 jferry
134 ! created global variables for peul, plag, and inrt use
135 !
136 ! Revision 1.1 2003/09/25 15:48:43 jferry
137 ! implemented Boiling Regulation interaction
138 !
139 !
140 !******************************************************************************
141 
142 
143 
144 
145 
146 
147 
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
IndexType nedges() const
Definition: Mesh.H:564
subroutine inrt_allocateauxillary(global, inrt, nEdges, nSwitches, nData)
subroutine input(X, NNODE, NDC, NCELL, NFCE, NBPTS, NBFACE, ITYP, NPROP, XBNDY, XFAR, YFAR, ZFAR)
subroutine inrt_defineboilingregulation(region)
subroutine deregisterfunction(global)
Definition: ModError.F90:469