69 TYPE(t_region
),
POINTER :: pregion
75 CHARACTER(CHRLEN) :: rcsidentstring
76 INTEGER :: ibv,ipatch,ivg
78 TYPE(t_grid),
POINTER :: pgrid
79 TYPE(t_patch),
POINTER :: ppatch
85 rcsidentstring =
'$RCSfile: RFLU_USER_EnforcePatchCoords.F90,v $ $Revision: 1.3 $'
87 global => pregion%global
90 'RFLU_USER_EnforcePatchCoords.F90')
92 IF ( global%verbLevel > verbose_none )
THEN
93 WRITE(stdout,
'(A,1X,A)') solver_name,
'Enforcing patch coordinates...'
100 pgrid => pregion%grid
106 SELECT CASE ( trim(global%casename) )
112 CASE (
"endburner3pt",
"endburner5pt",
"endburner9pt" )
113 DO ipatch=1,pgrid%nPatches
114 ppatch => pregion%patches(ipatch)
116 IF ( global%verbLevel > verbose_low )
THEN
117 WRITE(stdout,
'(A,3X,A,1X,I3)') solver_name,
'Patch:',ipatch
120 DO ibv = 1,ppatch%nBVert
123 IF ( ipatch == 1 )
THEN
124 pgrid%xyz(zcoord,ivg) = 0.0_rfreal
125 ELSE IF ( ipatch == 2 )
THEN
126 pgrid%xyz(xcoord,ivg) = 0.0_rfreal
127 ELSE IF ( ipatch == 3 )
THEN
128 pgrid%xyz(ycoord,ivg) = 0.0_rfreal
129 ELSE IF ( ipatch == 4 )
THEN
130 pgrid%xyz(ycoord,ivg) = 0.1_rfreal
131 ELSE IF ( ipatch == 5 )
THEN
132 pgrid%xyz(zcoord,ivg) = 0.1_rfreal
133 ELSE IF ( ipatch == 6 )
THEN
134 pgrid%xyz(xcoord,ivg) = 0.1_rfreal
136 CALL
errorstop(global,err_reached_default,__line__)
145 CASE (
"endburner3ptnew" )
146 DO ipatch=1,pgrid%nPatches
147 ppatch => pregion%patches(ipatch)
149 IF ( global%verbLevel > verbose_low )
THEN
150 WRITE(stdout,
'(A,3X,A,1X,I3)') solver_name,
'Patch:',ipatch
153 DO ibv = 1,ppatch%nBVert
156 IF ( ipatch == 1 )
THEN
157 pgrid%xyz(zcoord,ivg) = 1.0_rfreal
158 ELSE IF ( ipatch == 2 )
THEN
159 pgrid%xyz(ycoord,ivg) = 0.0_rfreal
160 ELSE IF ( ipatch == 3 )
THEN
161 pgrid%xyz(xcoord,ivg) = 1.0_rfreal
162 ELSE IF ( ipatch == 4 )
THEN
163 pgrid%xyz(xcoord,ivg) = 0.0_rfreal
164 ELSE IF ( ipatch == 5 )
THEN
165 pgrid%xyz(ycoord,ivg) = 1.0_rfreal
166 ELSE IF ( ipatch == 6 )
THEN
167 pgrid%xyz(zcoord,ivg) = 0.0_rfreal
169 CALL
errorstop(global,err_reached_default,__line__)
178 CASE (
"endburner3pt_angled" )
179 DO ipatch=1,pgrid%nPatches
180 ppatch => pregion%patches(ipatch)
182 IF ( global%verbLevel > verbose_low )
THEN
183 WRITE(stdout,
'(A,3X,A,1X,I3)') solver_name,
'Patch:',ipatch
186 DO ibv = 1,ppatch%nBVert
189 IF ( ipatch == 1 )
THEN
190 pgrid%xyz(zcoord,ivg) = 0.0_rfreal
191 ELSE IF ( ipatch == 2 )
THEN
192 pgrid%xyz(xcoord,ivg) = 0.0_rfreal
193 ELSE IF ( ipatch == 3 )
THEN
194 pgrid%xyz(ycoord,ivg) = 0.0_rfreal
195 ELSE IF ( ipatch == 4 )
THEN
196 pgrid%xyz(ycoord,ivg) = 0.1_rfreal
197 ELSE IF ( ipatch == 5 )
THEN
198 pgrid%xyz(zcoord,ivg) = 0.1_rfreal
199 ELSE IF ( ipatch == 6 )
THEN
200 pgrid%xyz(xcoord,ivg) = 0.1_rfreal
202 CALL
errorstop(global,err_reached_default,__line__)
212 IF ( global%verbLevel > verbose_low )
THEN
213 WRITE(stdout,
'(A,3X,A)') solver_name,
'Nothing to be done.'
217 IF ( global%verbLevel > verbose_none )
THEN
218 WRITE(stdout,
'(A,1X,A,1X,A)') solver_name,
'Enforcing patch coordinates', &
subroutine registerfunction(global, funName, fileName)
subroutine rflu_user_enforcepatchcoords(pRegion)
subroutine errorstop(global, errorCode, errorLine, addMessage)
subroutine deregisterfunction(global)