Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
INRT_DefineHeatTransferNonBurn.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 HeatTransferNonBurn
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_DefineHeatTransferNonBurn.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_defineheattransfernonburn( 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,nplag01
76 
77  TYPE(t_inrt_input), POINTER :: input
78  TYPE(t_inrt_interact), POINTER :: inrt
79  TYPE(t_inrt_edge), POINTER :: edge
80  TYPE(t_global), POINTER :: global
81 
82 !******************************************************************************
83 
84  rcsidentstring = &
85  '$RCSfile: INRT_DefineHeatTransferNonBurn.F90,v $ $Revision: 1.3 $'
86 
87  global => region%global
88 
89  CALL registerfunction( global,'INRT_DefineHeatTransferNonBurn',&
90  'INRT_DefineHeatTransferNonBurn.F90' )
91 
92 ! begin -----------------------------------------------------------------------
93 
94 ! allocate memory for edges, switches and data
95 
96  input => region%inrtInput
97  inrt => input%inrts(inrt_type_htransnb)
98 
99  inrt%name = "Heat_Transfer_Non_Burn"
100 
101  nplag01 = 1
102  IF (input%nPlag == 0) nplag01 = 0
103 
104  nedges = nplag01 * inrt_htransnb_nedges
105 
106  CALL inrt_allocateauxillary(global,inrt,nedges, &
107  inrt_swi_htransnb_total,inrt_dat_htransnb_total)
108 
109 ! set parameters for this interaction: see comment in ModInteract
110 
111 ! ** for this interaction, all parameters keep their default values **
112 
113 ! define Edges
114 
115  IF (nedges > 0) THEN
116 
117  edge => inrt%edges(inrt_htransnb_l_ener_g)
118 
119  edge%tEdge = inrt_edge_ener
120  edge%iNode(1) = input%indPlagJoint
121  edge%iNode(2) = input%indMixt
122 
123  END IF ! nEdges
124 
125 ! finalize --------------------------------------------------------------------
126 
127  CALL deregisterfunction( global )
128 
129 END SUBROUTINE inrt_defineheattransfernonburn
130 
131 !******************************************************************************
132 !
133 ! RCS Revision history:
134 !
135 ! $Log: INRT_DefineHeatTransferNonBurn.F90,v $
136 ! Revision 1.3 2008/12/06 08:44:31 mtcampbe
137 ! Updated license.
138 !
139 ! Revision 1.2 2008/11/19 22:17:44 mtcampbe
140 ! Added Illinois Open Source License/Copyright
141 !
142 ! Revision 1.1 2004/12/01 21:56:23 fnajjar
143 ! Initial revision after changing case
144 !
145 ! Revision 1.4 2003/04/02 22:32:03 jferry
146 ! codified Activeness and Permission structures for rocinteract
147 !
148 ! Revision 1.3 2003/03/24 23:30:52 jferry
149 ! overhauled rocinteract to allow interaction design to use user input
150 !
151 ! Revision 1.2 2003/03/11 16:09:39 jferry
152 ! Added comments
153 !
154 ! Revision 1.1 2003/03/04 22:12:35 jferry
155 ! Initial import of Rocinteract
156 !
157 !******************************************************************************
158 
159 
160 
161 
162 
163 
164 
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 inrt_defineheattransfernonburn(region)
subroutine input(X, NNODE, NDC, NCELL, NFCE, NBPTS, NBFACE, ITYP, NPROP, XBNDY, XFAR, YFAR, ZFAR)
subroutine deregisterfunction(global)
Definition: ModError.F90:469