Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RFLO_FlowSolverDummy.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: dummy flow solver for GenX.
26 !
27 ! Description: none.
28 !
29 ! Input: globalGenx = pointer to global data
30 ! dTimeSystem = system time step
31 ! genxHandleBc = handle for BC update
32 ! genxHandleGm = handle for geometry update.
33 !
34 ! Output: nothing useful.
35 !
36 ! Notes: none.
37 !
38 !******************************************************************************
39 !
40 ! $Id: RFLO_FlowSolverDummy.F90,v 1.3 2008/12/06 08:44:00 mtcampbe Exp $
41 !
42 ! Copyright: (c) 2001 by the University of Illinois
43 !
44 !******************************************************************************
45 
46 SUBROUTINE rflo_flowsolverdummy( globalGenx,timeSystem,dTimeSystem, &
47  genxhandlebc,genxhandlegm )
48 
49  USE moddatatypes
50  USE modrocstar, ONLY : t_globalgenx
51  USE moddatastruct, ONLY : t_region
52  USE modglobal, ONLY : t_global
53  USE moderror
54  USE modparameters
55  IMPLICIT NONE
56  include 'roccomf90.h'
57 
58 ! ... parameters
59  INTEGER, INTENT(in) :: genxhandlebc, genxhandlegm
60 
61  DOUBLE PRECISION, INTENT(in) :: dtimesystem, timesystem
62 
63  TYPE(t_globalgenx), POINTER :: globalgenx
64 
65 ! ... loop variables
66  INTEGER :: ireg, ipatch
67 
68 ! ... local variables
69  INTEGER :: ilev
70 
71  REAL(RFREAL), PARAMETER :: pressure=1.e+6 ! ### set ASAP ###
72 
73  TYPE(t_global), POINTER :: global
74  TYPE (t_region), POINTER :: regions(:)
75 
76 !******************************************************************************
77 ! initialize some global variables
78 
79  global => globalgenx%global
80  regions => globalgenx%regions
81 
82  global%genxHandleBc = genxhandlebc
83  global%genxHandleGm = genxhandlegm
84  global%dTimeSystem = dtimesystem
85  global%currentTime = timesystem
86 
87  CALL registerfunction( global,'RFLO_FlowSolverDummy',&
88  'RFLO_FlowSolverDummy.F90' )
89 
90 ! fill outgoing buffers
91 
92  DO ireg=1,global%nRegions
93  IF (regions(ireg)%procid==global%myProcid .AND. & ! region active and
94  regions(ireg)%active==active) THEN ! on my processor
95 
96  ilev = regions(ireg)%currLevel
97  regions(ireg)%levels(ilev)%mixt%dv(dv_mixt_pres,:) = pressure
98 
99  CALL rflo_sendboundaryvalues( regions(ireg),.false. )
100  ENDIF
101  ENDDO
102 
103 ! finalize
104 
105  CALL deregisterfunction( global )
106 
107 END SUBROUTINE rflo_flowsolverdummy
108 
109 !******************************************************************************
110 !
111 ! RCS Revision history:
112 !
113 ! $Log: RFLO_FlowSolverDummy.F90,v $
114 ! Revision 1.3 2008/12/06 08:44:00 mtcampbe
115 ! Updated license.
116 !
117 ! Revision 1.2 2008/11/19 22:17:14 mtcampbe
118 ! Added Illinois Open Source License/Copyright
119 !
120 ! Revision 1.1 2004/12/01 21:23:48 haselbac
121 ! Initial revision after changing case
122 !
123 ! Revision 1.3 2003/05/15 02:57:00 jblazek
124 ! Inlined index function.
125 !
126 ! Revision 1.2 2002/10/25 19:09:32 jblazek
127 ! Provided possibility to set pressure in dummy flow solver.
128 !
129 ! Revision 1.1 2002/09/20 22:22:34 jblazek
130 ! Finalized integration into GenX.
131 !
132 !******************************************************************************
133 
134 
135 
136 
137 
138 
139 
subroutine rflo_flowsolverdummy(globalGenx, timeSystem, dTimeSystem, genxHandleBc, genxHandleGm)
subroutine registerfunction(global, funName, fileName)
Definition: ModError.F90:449
subroutine rflo_sendboundaryvalues(region, initialize)
subroutine deregisterfunction(global)
Definition: ModError.F90:469