63 CHARACTER(CHRLEN),
PARAMETER,
PRIVATE :: &
64 RCSIdentString =
'$RCSfile: RFLU_ModPlottingVars.F90,v $ $Revision: 1.15 $'
125 TYPE(t_region
),
POINTER :: pregion
131 INTEGER :: errorflag,ipv,ipv2,npv
138 global => pregion%global
141 'RFLU_ModPlottingVars.F90')
143 IF ( global%verbLevel > verbose_low )
THEN
144 WRITE(stdout,
'(A,1X,A)') solver_name,
'Building plotting variable maps...'
153 DO ipv = 1,pv_xxxx_nvar
154 ipv2 = pregion%plot%pv2pvi(ipv)
156 IF ( ipv2 /= crazy_value_int )
THEN
159 pregion%plot%pvi2pv(ipv2) = ipv
163 IF ( npv /= pregion%plot%nPv )
THEN
165 WRITE(*,*)
'ERROR!!!'
174 IF ( global%verbLevel > verbose_low )
THEN
175 WRITE(stdout,
'(A,1X,A)') solver_name,
'Building plotting variable maps done.'
217 TYPE(t_region
),
POINTER :: pregion
223 INTEGER :: errorflag,ivar
230 global => pregion%global
233 'RFLU_ModPlottingVars.F90')
247 pregion%plot%pvNameShort(pv_mixt_schl) =
"schl"
248 pregion%plot%pvNameShort(pv_mixt_shad) =
"shad"
249 pregion%plot%pvNameShort(pv_mixt_intf) =
"intf"
251 pregion%plot%pvNameLong(pv_mixt_schl) =
"Schlieren variable"
252 pregion%plot%pvNameLong(pv_mixt_shad) =
"Shadowgraph variable"
253 pregion%plot%pvNameLong(pv_mixt_intf) =
"Interferogram variable"
259 pregion%plot%pvNameShort(pv_mixt_xvor) =
"vorx"
260 pregion%plot%pvNameShort(pv_mixt_yvor) =
"vory"
261 pregion%plot%pvNameShort(pv_mixt_zvor) =
"vorz"
263 pregion%plot%pvNameLong(pv_mixt_xvor) =
"Vorticity x-component"
264 pregion%plot%pvNameLong(pv_mixt_yvor) =
"Vorticity y-component"
265 pregion%plot%pvNameLong(pv_mixt_zvor) =
"Vorticity z-component"
271 pregion%plot%pvNameShort(pv_mixt_vci2) =
"vci2"
272 pregion%plot%pvNameShort(pv_mixt_vcl2) =
"vcl2"
273 pregion%plot%pvNameShort(pv_mixt_vcli) =
"vcli"
274 pregion%plot%pvNameShort(pv_mixt_vclr) =
"vclr"
276 pregion%plot%pvNameLong(pv_mixt_vci2) =
"TBD"
277 pregion%plot%pvNameLong(pv_mixt_vcl2) =
"TBD"
278 pregion%plot%pvNameLong(pv_mixt_vcli) =
"TBD"
279 pregion%plot%pvNameLong(pv_mixt_vclr) =
"TBD"
285 pregion%plot%pvNameShort(pv_mixt_grex) =
"grex"
286 pregion%plot%pvNameShort(pv_mixt_grey) =
"grey"
287 pregion%plot%pvNameShort(pv_mixt_grez) =
"grez"
289 pregion%plot%pvNameLong(pv_mixt_grex) =
"Gradient error x-component"
290 pregion%plot%pvNameLong(pv_mixt_grey) =
"Gradient error y-component"
291 pregion%plot%pvNameLong(pv_mixt_grez) =
"Gradient error z-component"
302 pregion%plot%pvNameShort(pv_plag_dia3) =
"dp3"
303 pregion%plot%pvNameShort(pv_plag_dia4) =
"dp4"
304 pregion%plot%pvNameShort(pv_plag_ndns) =
"ndp"
305 pregion%plot%pvNameShort(pv_plag_xvel) =
"up"
306 pregion%plot%pvNameShort(pv_plag_yvel) =
"vp"
307 pregion%plot%pvNameShort(pv_plag_zvel) =
"wp"
308 pregion%plot%pvNameShort(pv_plag_temp) =
"Tp"
309 pregion%plot%pvNameShort(pv_plag_mass) =
"mp"
311 pregion%plot%pvNameLong(pv_plag_dia3) =
"Particle mean diameter (3)"
312 pregion%plot%pvNameLong(pv_plag_dia4) =
"Particle mean diameter (4)"
313 pregion%plot%pvNameLong(pv_plag_ndns) =
"Particle number density"
314 pregion%plot%pvNameLong(pv_plag_xvel) =
"Particle mean x-velocity"
315 pregion%plot%pvNameLong(pv_plag_yvel) =
"Particle mean y-velocity"
316 pregion%plot%pvNameLong(pv_plag_zvel) =
"Particle mean z-velocity"
317 pregion%plot%pvNameLong(pv_plag_temp) =
"Particle mean temperature"
318 pregion%plot%pvNameLong(pv_plag_mass) =
"Particle mean mass"
362 TYPE(t_region
),
POINTER :: pregion
368 INTEGER :: errorflag,icg,ilocvci2,ilocvcli,ilocvclr,ilocvcl2,info,lwork,ndim
369 INTEGER,
DIMENSION(:),
ALLOCATABLE :: varinfo
370 REAL(RFREAL) :: dudx,dudy,dudz,dvdx,dvdy,dvdz,dwdx,dwdy,dwdz
371 REAL(RFREAL),
DIMENSION(:),
ALLOCATABLE :: wi,work,wr
372 REAL(RFREAL),
DIMENSION(:,:),
ALLOCATABLE ::
a,o,
s,vl,vr
373 REAL(RFREAL),
DIMENSION(:,:),
POINTER :: pcv,ppv
374 REAL(RFREAL),
DIMENSION(:,:,:),
POINTER :: grad
376 TYPE(t_grid),
POINTER :: pgrid
382 global => pregion%global
385 'RFLU_ModPlottingVars.F90')
387 IF ( global%verbLevel > verbose_none )
THEN
388 WRITE(stdout,
'(A,1X,A)') solver_name, &
389 'Computing vortex-core plotting variables...'
396 pgrid => pregion%grid
398 pcv => pregion%mixt%cv
399 ppv => pregion%plot%pv
401 ndim = pregion%mixtInput%dimens
408 ilocvci2 = pregion%plot%pv2pvi(pv_mixt_vci2)
409 ilocvcl2 = pregion%plot%pv2pvi(pv_mixt_vcl2)
410 ilocvcli = pregion%plot%pv2pvi(pv_mixt_vcli)
411 ilocvclr = pregion%plot%pv2pvi(pv_mixt_vclr)
417 ALLOCATE(grad(xcoord:zcoord,3,pgrid%nCellsTot),stat=errorflag)
418 global%error = errorflag
419 IF (global%error /= err_none)
THEN
420 CALL
errorstop(global,err_allocate,__line__,
'grad')
423 ALLOCATE(
a(ndim,ndim),stat=errorflag)
424 global%error = errorflag
425 IF (global%error /= err_none)
THEN
426 CALL
errorstop(global,err_allocate,__line__,
'a')
429 ALLOCATE(o(ndim,ndim),stat=errorflag)
430 global%error = errorflag
431 IF (global%error /= err_none)
THEN
432 CALL
errorstop(global,err_allocate,__line__,
'o')
435 ALLOCATE(
s(ndim,ndim),stat=errorflag)
436 global%error = errorflag
437 IF (global%error /= err_none)
THEN
438 CALL
errorstop(global,err_allocate,__line__,
's')
441 ALLOCATE(wr(ndim),stat=errorflag)
442 global%error = errorflag
443 IF (global%error /= err_none)
THEN
444 CALL
errorstop(global,err_allocate,__line__,
'wr')
447 ALLOCATE(wi(ndim),stat=errorflag)
448 global%error = errorflag
449 IF (global%error /= err_none)
THEN
450 CALL
errorstop(global,err_allocate,__line__,
'wi')
453 ALLOCATE(vl(ndim,ndim),stat=errorflag)
454 global%error = errorflag
455 IF (global%error /= err_none)
THEN
456 CALL
errorstop(global,err_allocate,__line__,
'vl')
459 ALLOCATE(vr(ndim,ndim),stat=errorflag)
460 global%error = errorflag
461 IF (global%error /= err_none)
THEN
462 CALL
errorstop(global,err_allocate,__line__,
'vr')
465 ALLOCATE(work(lwork),stat=errorflag)
466 global%error = errorflag
467 IF (global%error /= err_none)
THEN
468 CALL
errorstop(global,err_allocate,__line__,
'work')
479 ALLOCATE(varinfo(cv_mixt_xvel:cv_mixt_zvel),stat=errorflag)
480 global%error = errorflag
481 IF (global%error /= err_none)
THEN
482 CALL
errorstop(global,err_allocate,__line__,
'varInfo')
485 varinfo(cv_mixt_xvel) = cv_mixt_xvel
486 varinfo(cv_mixt_yvel) = cv_mixt_yvel
487 varinfo(cv_mixt_zvel) = cv_mixt_zvel
492 DEALLOCATE(varinfo,stat=errorflag)
493 global%error = errorflag
494 IF (global%error /= err_none)
THEN
495 CALL
errorstop(global,err_deallocate,__line__,
'varInfo')
502 SELECT CASE ( pregion%mixtInput%dimens )
504 DO icg = 1,pgrid%nCellsTot
505 dudx = grad(xcoord,1,icg)
506 dudy = grad(ycoord,1,icg)
508 dvdx = grad(xcoord,2,icg)
509 dvdy = grad(ycoord,2,icg)
517 CALL dgeev(
'N',
'N',ndim,
a,ndim,wr,wi,vl,ndim,vr,ndim,work,lwork,info)
519 ppv(ilocvci2,icg) = wr(1)*wr(2)
520 ppv(ilocvcli,icg) = wi(1)
521 ppv(ilocvclr,icg) = wr(1)/(wi(1)+1.0e-12_rfreal)
524 s(1,2) = 0.5_rfreal*(dudy + dvdx)
530 o(1,2) = 0.5_rfreal*(dudy - dvdx)
535 a = matmul(
s,
s) + matmul(o,o)
537 CALL dgeev(
'N',
'N',ndim,
a,ndim,wr,wi,vl,ndim,vr,ndim,work,lwork,info)
539 ppv(ilocvcl2,icg) = wr(1)
542 DO icg = 1,pgrid%nCellsTot
543 dudx = grad(xcoord,1,icg)
544 dudy = grad(ycoord,1,icg)
545 dudz = grad(zcoord,1,icg)
547 dvdx = grad(xcoord,2,icg)
548 dvdy = grad(ycoord,2,icg)
549 dvdz = grad(zcoord,2,icg)
551 dwdx = grad(xcoord,3,icg)
552 dwdy = grad(ycoord,3,icg)
553 dwdz = grad(zcoord,3,icg)
567 CALL dgeev(
'N',
'N',ndim,
a,ndim,wr,wi,vl,ndim,vr,ndim,work,lwork,info)
569 ppv(ilocvci2,icg) = wr(1)*wr(2) + wr(1)*wr(3) + wr(2)*wr(3)
570 ppv(ilocvcli,icg) = wi(1)
571 ppv(ilocvclr,icg) = wr(1)/(wi(1)+1.0e-12_rfreal)
574 s(1,2) = 0.5_rfreal*(dudy + dvdx)
575 s(1,3) = 0.5_rfreal*(dudz + dwdx)
579 s(2,3) = 0.5_rfreal*(dvdz + dwdy)
586 o(1,2) = 0.5_rfreal*(dudy - dvdx)
587 o(1,3) = 0.5_rfreal*(dudz - dwdx)
591 o(2,3) = 0.5_rfreal*(dvdz - dwdy)
597 a = matmul(
s,
s) + matmul(o,o)
599 CALL dgeev(
'N',
'N',ndim,
a,ndim,wr,wi,vl,ndim,vr,ndim,work,lwork,info)
601 ppv(ilocvcl2,icg) = wr(2)
604 CALL
errorstop(global,err_reached_default,__line__)
611 DEALLOCATE(grad,stat=errorflag)
612 global%error = errorflag
613 IF (global%error /= err_none)
THEN
614 CALL
errorstop(global,err_deallocate,__line__,
'grad')
617 DEALLOCATE(
a,stat=errorflag)
618 global%error = errorflag
619 IF (global%error /= err_none)
THEN
620 CALL
errorstop(global,err_deallocate,__line__,
'a')
623 DEALLOCATE(o,stat=errorflag)
624 global%error = errorflag
625 IF (global%error /= err_none)
THEN
626 CALL
errorstop(global,err_deallocate,__line__,
'o')
629 DEALLOCATE(
s,stat=errorflag)
630 global%error = errorflag
631 IF (global%error /= err_none)
THEN
632 CALL
errorstop(global,err_deallocate,__line__,
's')
635 DEALLOCATE(wr,stat=errorflag)
636 global%error = errorflag
637 IF (global%error /= err_none)
THEN
638 CALL
errorstop(global,err_deallocate,__line__,
'wr')
641 DEALLOCATE(wi,stat=errorflag)
642 global%error = errorflag
643 IF (global%error /= err_none)
THEN
644 CALL
errorstop(global,err_deallocate,__line__,
'wi')
647 DEALLOCATE(vl,stat=errorflag)
648 global%error = errorflag
649 IF (global%error /= err_none)
THEN
650 CALL
errorstop(global,err_deallocate,__line__,
'vl')
653 DEALLOCATE(vr,stat=errorflag)
654 global%error = errorflag
655 IF (global%error /= err_none)
THEN
656 CALL
errorstop(global,err_deallocate,__line__,
'vr')
659 DEALLOCATE(work,stat=errorflag)
660 global%error = errorflag
661 IF (global%error /= err_none)
THEN
662 CALL
errorstop(global,err_deallocate,__line__,
'work')
669 IF ( global%verbLevel > verbose_none )
THEN
670 WRITE(stdout,
'(A,1X,A)') solver_name, &
671 'Computing vortex-core plotting variables done.'
713 TYPE(t_region
),
POINTER :: pregion
719 INTEGER :: errorflag,icg,ilocintf,ilocschl,ilocshad,termint
720 INTEGER :: varinfo(cv_mixt_dens:cv_mixt_dens)
721 REAL(RFREAL) :: gradmax,rmax,rmin,
term
722 REAL(RFREAL),
DIMENSION(:,:),
POINTER :: pcv,ppv
723 REAL(RFREAL),
DIMENSION(:,:,:),
POINTER :: grad
725 TYPE(t_grid),
POINTER :: pgrid
731 global => pregion%global
734 'RFLU_ModPlottingVars.F90')
736 IF ( global%verbLevel > verbose_none )
THEN
737 WRITE(stdout,
'(A,1X,A)') solver_name, &
738 'Computing discontinuity plotting variables...'
745 pgrid => pregion%grid
747 pcv => pregion%mixt%cv
748 ppv => pregion%plot%pv
754 ilocschl = pregion%plot%pv2pvi(pv_mixt_schl)
755 ilocshad = pregion%plot%pv2pvi(pv_mixt_shad)
756 ilocintf = pregion%plot%pv2pvi(pv_mixt_intf)
770 ALLOCATE(grad(xcoord:zcoord,1,pgrid%nCellsTot),stat=errorflag)
771 global%error = errorflag
772 IF (global%error /= err_none)
THEN
773 CALL
errorstop(global,err_allocate,__line__,
'grad')
780 varinfo(cv_mixt_dens) = cv_mixt_dens
790 DO icg = 1,pgrid%nCellsTot
791 ppv(ilocschl,icg) =
sqrt(grad(xcoord,1,icg)**2 &
792 + grad(ycoord,1,icg)**2 &
793 + grad(zcoord,1,icg)**2)
794 ppv(ilocshad,icg) = 0.0_rfreal
797 IF ( global%postSchType /= 0 )
THEN
798 gradmax = maxval(ppv(ilocschl,1:pgrid%nCellsTot))
800 DO icg = 1,pgrid%nCellsTot
801 ppv(ilocschl,icg) = exp(-global%postSchExp*ppv(ilocschl,icg)/gradmax)
809 DEALLOCATE(grad,stat=errorflag)
810 global%error = errorflag
811 IF (global%error /= err_none)
THEN
812 CALL
errorstop(global,err_deallocate,__line__,
'grad')
820 rmax = maxval(pcv(cv_mixt_dens,1:pgrid%nCells))
821 rmin = minval(pcv(cv_mixt_dens,1:pgrid%nCells))
823 DO icg = 1,pgrid%nCellsTot
824 term = (pcv(cv_mixt_dens,icg)-rmin)/(rmax-rmin)
825 termint = int(global%postNFringes*
term + 0.5_rfreal)
827 ppv(ilocintf,icg) = mod(termint,2)
834 IF ( global%verbLevel > verbose_none )
THEN
835 WRITE(stdout,
'(A,1X,A)') solver_name, &
836 'Computing discontinuity plotting variables done.'
879 TYPE(t_region
),
POINTER :: pregion
885 INTEGER :: errorflag,icg,ilocxerr,ilocyerr,iloczerr,ivar,ivarbeg,ivarend
886 INTEGER,
DIMENSION(:),
ALLOCATABLE :: varinfo
887 REAL(RFREAL) :: gxe,gye,gze,nx,ny,nz,var,
x,
y,
z
888 REAL(RFREAL),
DIMENSION(:,:),
POINTER :: pcv,ppv
889 REAL(RFREAL),
DIMENSION(:,:,:),
POINTER :: grad
891 TYPE(t_grid),
POINTER :: pgrid
897 global => pregion%global
900 'RFLU_ModPlottingVars.F90')
902 IF ( global%verbLevel > verbose_none )
THEN
903 WRITE(stdout,
'(A,1X,A)') solver_name, &
904 'Computing gradient-error plotting variables...'
911 pgrid => pregion%grid
913 pcv => pregion%mixt%cv
914 ppv => pregion%plot%pv
916 ivarbeg = cv_mixt_dens
923 ilocxerr = pregion%plot%pv2pvi(pv_mixt_grex)
924 ilocyerr = pregion%plot%pv2pvi(pv_mixt_grey)
925 iloczerr = pregion%plot%pv2pvi(pv_mixt_grez)
935 ALLOCATE(grad(xcoord:zcoord,ivarbeg:ivarend,pgrid%nCellsTot),stat=errorflag)
936 global%error = errorflag
937 IF (global%error /= err_none)
THEN
938 CALL
errorstop(global,err_allocate,__line__,
'grad')
945 ALLOCATE(varinfo(ivarbeg:ivarend),stat=errorflag)
946 global%error = errorflag
947 IF (global%error /= err_none)
THEN
948 CALL
errorstop(global,err_allocate,__line__,
'varInfo')
951 varinfo(ivarbeg:ivarend) = ivarbeg
956 DEALLOCATE(varinfo,stat=errorflag)
957 global%error = errorflag
958 IF (global%error /= err_none)
THEN
959 CALL
errorstop(global,err_deallocate,__line__,
'varInfo')
966 SELECT CASE ( global%casename )
973 SELECT CASE ( pregion%mixtInput%dimens )
975 DO icg = 1,pgrid%nCellsTot
976 x = pgrid%cofg(xcoord,icg)
977 y = pgrid%cofg(ycoord,icg)
978 z = pgrid%cofg(zcoord,icg)
980 DO ivar = ivarbeg,ivarend
983 ppv(ilocxerr,icg) = grad(xcoord,ivar,icg)/gxe - 1.0_rfreal
984 ppv(ilocyerr,icg) = 0.0_rfreal
985 ppv(iloczerr,icg) = 0.0_rfreal
989 DO icg = 1,pgrid%nCellsTot
990 x = pgrid%cofg(xcoord,icg)
991 y = pgrid%cofg(ycoord,icg)
992 z = pgrid%cofg(zcoord,icg)
994 DO ivar = ivarbeg,ivarend
997 ppv(ilocxerr,icg) = grad(xcoord,ivar,icg)/gxe - 1.0_rfreal
998 ppv(ilocyerr,icg) = grad(ycoord,ivar,icg)/gye - 1.0_rfreal
999 ppv(iloczerr,icg) = 0.0_rfreal
1003 DO icg = 1,pgrid%nCellsTot
1004 x = pgrid%cofg(xcoord,icg)
1005 y = pgrid%cofg(ycoord,icg)
1006 z = pgrid%cofg(zcoord,icg)
1008 DO ivar = ivarbeg,ivarend
1011 ppv(ilocxerr,icg) = grad(xcoord,ivar,icg)/gxe - 1.0_rfreal
1012 ppv(ilocyerr,icg) = grad(ycoord,ivar,icg)/gye - 1.0_rfreal
1013 ppv(iloczerr,icg) = grad(zcoord,ivar,icg)/gze - 1.0_rfreal
1017 CALL
errorstop(global,err_reached_default,__line__)
1025 nx = pregion%mixtInput%prepRealVal1
1026 ny = pregion%mixtInput%prepRealVal2
1027 nz = pregion%mixtInput%prepRealVal3
1029 SELECT CASE ( pregion%mixtInput%dimens )
1031 DO icg = 1,pgrid%nCellsTot
1032 x = pgrid%cofg(xcoord,icg)
1033 y = pgrid%cofg(ycoord,icg)
1034 z = pgrid%cofg(zcoord,icg)
1036 DO ivar = ivarbeg,ivarend
1040 ppv(ilocxerr,icg) = grad(xcoord,ivar,icg)/gxe - 1.0_rfreal
1041 ppv(ilocyerr,icg) = 0.0_rfreal
1042 ppv(iloczerr,icg) = 0.0_rfreal
1046 DO icg = 1,pgrid%nCellsTot
1047 x = pgrid%cofg(xcoord,icg)
1048 y = pgrid%cofg(ycoord,icg)
1049 z = pgrid%cofg(zcoord,icg)
1051 DO ivar = ivarbeg,ivarend
1055 ppv(ilocxerr,icg) = grad(xcoord,ivar,icg)/gxe - 1.0_rfreal
1056 ppv(ilocyerr,icg) = grad(ycoord,ivar,icg)/gye - 1.0_rfreal
1057 ppv(iloczerr,icg) = 0.0_rfreal
1061 DO icg = 1,pgrid%nCellsTot
1062 x = pgrid%cofg(xcoord,icg)
1063 y = pgrid%cofg(ycoord,icg)
1064 z = pgrid%cofg(zcoord,icg)
1066 DO ivar = ivarbeg,ivarend
1070 ppv(ilocxerr,icg) = grad(xcoord,ivar,icg)/gxe - 1.0_rfreal
1071 ppv(ilocyerr,icg) = grad(ycoord,ivar,icg)/gye - 1.0_rfreal
1072 ppv(iloczerr,icg) = grad(zcoord,ivar,icg)/gze - 1.0_rfreal
1076 CALL
errorstop(global,err_reached_default,__line__)
1084 CALL
errorstop(global,err_reached_default,__line__)
1091 DEALLOCATE(grad,stat=errorflag)
1092 global%error = errorflag
1093 IF (global%error /= err_none)
THEN
1094 CALL
errorstop(global,err_deallocate,__line__,
'grad')
1101 IF ( global%verbLevel > verbose_none )
THEN
1102 WRITE(stdout,
'(A,1X,A)') solver_name, &
1103 'Computing gradient-error plotting variables done.'
1143 TYPE(t_region
),
POINTER :: pregion
1149 INTEGER :: errorflag,icg,ilocxvor,ilocyvor,iloczvor
1150 INTEGER,
DIMENSION(:),
ALLOCATABLE :: varinfo
1151 REAL(RFREAL) :: dudx,dudy,dudz,dvdx,dvdy,dvdz,dwdx,dwdy,dwdz
1152 REAL(RFREAL),
DIMENSION(:,:),
POINTER :: pcv,ppv
1153 REAL(RFREAL),
DIMENSION(:,:,:),
POINTER :: grad
1155 TYPE(t_grid),
POINTER :: pgrid
1161 global => pregion%global
1164 'RFLU_ModPlottingVars.F90')
1166 IF ( global%verbLevel > verbose_none )
THEN
1167 WRITE(stdout,
'(A,1X,A)') solver_name, &
1168 'Computing vorticity plotting variables...'
1175 pgrid => pregion%grid
1177 pcv => pregion%mixt%cv
1178 ppv => pregion%plot%pv
1184 ilocxvor = pregion%plot%pv2pvi(pv_mixt_xvor)
1185 ilocyvor = pregion%plot%pv2pvi(pv_mixt_yvor)
1186 iloczvor = pregion%plot%pv2pvi(pv_mixt_zvor)
1196 ALLOCATE(grad(xcoord:zcoord,3,pgrid%nCellsTot),stat=errorflag)
1197 global%error = errorflag
1198 IF (global%error /= err_none)
THEN
1199 CALL
errorstop(global,err_allocate,__line__,
'grad')
1206 ALLOCATE(varinfo(cv_mixt_xvel:cv_mixt_zvel),stat=errorflag)
1207 global%error = errorflag
1208 IF (global%error /= err_none)
THEN
1209 CALL
errorstop(global,err_allocate,__line__,
'varInfo')
1212 varinfo(cv_mixt_xvel) = cv_mixt_xvel
1213 varinfo(cv_mixt_yvel) = cv_mixt_yvel
1214 varinfo(cv_mixt_zvel) = cv_mixt_zvel
1219 DEALLOCATE(varinfo,stat=errorflag)
1220 global%error = errorflag
1221 IF (global%error /= err_none)
THEN
1222 CALL
errorstop(global,err_deallocate,__line__,
'varInfo')
1229 DO icg = 1,pgrid%nCellsTot
1230 dudx = grad(xcoord,1,icg)
1231 dudy = grad(ycoord,1,icg)
1232 dudz = grad(zcoord,1,icg)
1234 dvdx = grad(xcoord,2,icg)
1235 dvdy = grad(ycoord,2,icg)
1236 dvdz = grad(zcoord,2,icg)
1238 dwdx = grad(xcoord,3,icg)
1239 dwdy = grad(ycoord,3,icg)
1240 dwdz = grad(zcoord,3,icg)
1242 ppv(ilocxvor,icg) = dwdy - dvdz
1243 ppv(ilocyvor,icg) = dudz - dwdx
1244 ppv(iloczvor,icg) = dvdx - dudy
1251 DEALLOCATE(grad,stat=errorflag)
1252 global%error = errorflag
1253 IF (global%error /= err_none)
THEN
1254 CALL
errorstop(global,err_deallocate,__line__,
'grad')
1261 IF ( global%verbLevel > verbose_none )
THEN
1262 WRITE(stdout,
'(A,1X,A)') solver_name, &
1263 'Computing vorticity plotting variables done.'
1313 TYPE(t_region
),
POINTER :: pregion
1319 INTEGER :: icgbeg,icgend,ipvbeg,ipvend
1326 global => pregion%global
1329 'RFLU_ModPlottingVars.F90')
1335 IF ( global%postDiscFlag .EQV. .true. )
THEN
1341 IF ( global%postGradFlag .EQV. .true. )
THEN
1345 IF ( global%postVortFlag .EQV. .true. )
THEN
1349 IF ( global%postVortCoreFlag .EQV. .true. )
THEN
1360 IF ( global%plagUsed .EQV. .true. )
THEN
1361 IF ( global%postLag2EulFlag .EQV. .true. )
THEN
1362 ipvbeg = pregion%plot%pv2pvi(pv_plag_dia3)
1363 ipvend = pregion%plot%pv2pvi(pv_plag_mass)
1365 icgend = pregion%grid%nCells
1367 CALL plag_rflu_calceulerianfield(pregion, &
1368 pregion%plot%pv(ipvbeg:ipvend,icgbeg:icgend))
1421 TYPE(t_region
),
POINTER :: pregion
1427 INTEGER :: errorflag,ipv
1434 global => pregion%global
1437 'RFLU_ModPlottingVars.F90')
1439 IF ( global%verbLevel > verbose_none )
THEN
1440 WRITE(stdout,
'(A,1X,A)') solver_name,
'Counting plotting variables...'
1447 DO ipv = 1,pv_xxxx_nvar
1448 pregion%plot%pv2pvi(ipv) = crazy_value_int
1455 pregion%plot%nPv = 0
1465 IF ( global%postDiscFlag .EQV. .true. )
THEN
1466 pregion%plot%pv2pvi(pv_mixt_schl) = pregion%plot%nPv + 1
1467 pregion%plot%pv2pvi(pv_mixt_shad) = pregion%plot%nPv + 2
1468 pregion%plot%pv2pvi(pv_mixt_intf) = pregion%plot%nPv + 3
1470 pregion%plot%nPv = pregion%plot%nPv + 3
1477 IF ( global%postVortFlag .EQV. .true. )
THEN
1478 pregion%plot%pv2pvi(pv_mixt_xvor) = pregion%plot%nPv + 1
1479 pregion%plot%pv2pvi(pv_mixt_yvor) = pregion%plot%nPv + 2
1480 pregion%plot%pv2pvi(pv_mixt_zvor) = pregion%plot%nPv + 3
1482 pregion%plot%nPv = pregion%plot%nPv + 3
1489 IF ( global%postVortCoreFlag .EQV. .true. )
THEN
1490 pregion%plot%pv2pvi(pv_mixt_vci2) = pregion%plot%nPv + 1
1491 pregion%plot%pv2pvi(pv_mixt_vcl2) = pregion%plot%nPv + 2
1492 pregion%plot%pv2pvi(pv_mixt_vcli) = pregion%plot%nPv + 3
1493 pregion%plot%pv2pvi(pv_mixt_vclr) = pregion%plot%nPv + 4
1495 pregion%plot%nPv = pregion%plot%nPv + 4
1502 IF ( global%postGradFlag .EQV. .true. )
THEN
1503 pregion%plot%pv2pvi(pv_mixt_grex) = pregion%plot%nPv + 1
1504 pregion%plot%pv2pvi(pv_mixt_grey) = pregion%plot%nPv + 2
1505 pregion%plot%pv2pvi(pv_mixt_grez) = pregion%plot%nPv + 3
1507 pregion%plot%nPv = pregion%plot%nPv + 3
1515 IF ( global%plagUsed .EQV. .true. )
THEN
1516 IF ( global%postLag2EulFlag .EQV. .true. )
THEN
1517 pregion%plot%pv2pvi(pv_plag_dia3) = pregion%plot%nPv + 1
1518 pregion%plot%pv2pvi(pv_plag_dia4) = pregion%plot%nPv + 2
1519 pregion%plot%pv2pvi(pv_plag_ndns) = pregion%plot%nPv + 3
1520 pregion%plot%pv2pvi(pv_plag_xvel) = pregion%plot%nPv + 4
1521 pregion%plot%pv2pvi(pv_plag_yvel) = pregion%plot%nPv + 5
1522 pregion%plot%pv2pvi(pv_plag_zvel) = pregion%plot%nPv + 6
1523 pregion%plot%pv2pvi(pv_plag_temp) = pregion%plot%nPv + 7
1524 pregion%plot%pv2pvi(pv_plag_mass) = pregion%plot%nPv + 8
1526 pregion%plot%nPv = pregion%plot%nPv + ev_plag_last
1535 IF ( global%verbLevel > verbose_low )
THEN
1536 WRITE(stdout,
'(A,3X,A,1X,I2)') solver_name, &
1537 'Number of plotting variables:', &
1547 IF ( global%verbLevel > verbose_none )
THEN
1548 WRITE(stdout,
'(A,1X,A)') solver_name,
'Counting plotting variables done.'
1588 TYPE(t_region
),
POINTER :: pregion
1594 INTEGER :: errorflag
1601 global => pregion%global
1604 'RFLU_ModPlottingVars.F90')
1606 IF ( global%verbLevel > verbose_low )
THEN
1607 WRITE(stdout,
'(A,1X,A)') solver_name,
'Creating plotting variable maps...'
1614 IF ( pregion%plot%nPv > 0 )
THEN
1615 ALLOCATE(pregion%plot%pvi2pv(pregion%plot%nPv),stat=errorflag)
1616 global%error = errorflag
1617 IF ( global%error /= err_none )
THEN
1618 CALL
errorstop(global,err_allocate,__line__,
'pRegion%plot%pvi2pv')
1628 IF ( global%verbLevel > verbose_none )
THEN
1629 WRITE(stdout,
'(A,1X,A)') solver_name,
'Creating plotting variable maps done.'
1669 TYPE(t_region
),
POINTER :: pregion
1675 INTEGER :: errorflag
1682 global => pregion%global
1685 'RFLU_ModPlottingVars.F90')
1687 IF ( global%verbLevel > verbose_none )
THEN
1688 WRITE(stdout,
'(A,1X,A)') solver_name,
'Creating plotting variables...'
1695 IF ( pregion%plot%nPv > 0 )
THEN
1696 ALLOCATE(pregion%plot%pv(pregion%plot%nPv,pregion%grid%nCellsTot), &
1698 global%error = errorflag
1699 IF ( global%error /= err_none )
THEN
1700 CALL
errorstop(global,err_allocate,__line__,
'pRegion%plot%pv')
1712 IF ( global%verbLevel > verbose_none )
THEN
1713 WRITE(stdout,
'(A,1X,A)') solver_name,
'Creating plotting variables done.'
1754 TYPE(t_region
),
POINTER :: pregion
1760 INTEGER :: errorflag
1767 global => pregion%global
1770 'RFLU_ModPlottingVars.F90')
1776 IF ( pregion%plot%nPv > 0 )
THEN
1777 ALLOCATE(pregion%plot%pvVert(pregion%plot%nPv,pregion%grid%nVertTot), &
1779 global%error = errorflag
1780 IF ( global%error /= err_none )
THEN
1781 CALL
errorstop(global,err_allocate,__line__,
'pRegion%plot%pvVert')
1831 TYPE(t_region
),
POINTER :: pregion
1843 global => pregion%global
1855 IF ( pregion%mixtInput%fluidModel == fluid_model_comp )
THEN
1856 IF ( (global%postDiscFlag .EQV. .true.) .OR. &
1857 (global%postGradFlag .EQV. .true.) .OR. &
1858 (global%postVortFlag .EQV. .true.) .OR. &
1859 (global%postVortCoreFlag .EQV. .true.) .OR. &
1860 (global%postLag2EulFlag .EQV. .true.) )
THEN
1904 TYPE(t_region
),
POINTER :: pregion
1910 INTEGER :: errorflag
1917 global => pregion%global
1920 'RFLU_ModPlottingVars.F90')
1922 IF ( global%verbLevel > verbose_low )
THEN
1923 WRITE(stdout,
'(A,1X,A)') solver_name,
'Destroying plotting variable maps...'
1930 IF ( pregion%plot%nPv > 0 )
THEN
1931 DEALLOCATE(pregion%plot%pvi2pv,stat=errorflag)
1932 global%error = errorflag
1933 IF ( global%error /= err_none )
THEN
1934 CALL
errorstop(global,err_deallocate,__line__,
'pRegion%plot%pvi2pv')
1944 IF ( global%verbLevel > verbose_none )
THEN
1945 WRITE(stdout,
'(A,1X,A)') solver_name, &
1946 'Destroying plotting variable maps done.'
1986 TYPE(t_region
),
POINTER :: pregion
1992 INTEGER :: errorflag
1999 global => pregion%global
2002 'RFLU_ModPlottingVars.F90')
2004 IF ( global%verbLevel > verbose_none )
THEN
2005 WRITE(stdout,
'(A,1X,A)') solver_name,
'Destroying plotting variables...'
2012 IF ( pregion%plot%nPv > 0 )
THEN
2013 DEALLOCATE(pregion%plot%pv,stat=errorflag)
2014 global%error = errorflag
2015 IF ( global%error /= err_none )
THEN
2016 CALL
errorstop(global,err_deallocate,__line__,
'pRegion%plot%pv')
2026 IF ( global%verbLevel > verbose_none )
THEN
2027 WRITE(stdout,
'(A,1X,A)') solver_name,
'Destroying plotting variables done.'
2068 TYPE(t_region
),
POINTER :: pregion
2074 INTEGER :: errorflag
2081 global => pregion%global
2084 'RFLU_ModPlottingVars.F90')
2090 IF ( pregion%plot%nPv > 0 )
THEN
2091 DEALLOCATE(pregion%plot%pvVert,stat=errorflag)
2092 global%error = errorflag
2093 IF ( global%error /= err_none )
THEN
2094 CALL
errorstop(global,err_deallocate,__line__,
'pRegion%plot%pvVert')
2140 TYPE(t_region
),
POINTER :: pregion
2153 global => pregion%global
2156 'RFLU_ModPlottingVars.F90')
2158 IF ( global%verbLevel > verbose_low )
THEN
2159 WRITE(stdout,
'(A,1X,A)') solver_name,
'Initializing plotting variables...'
2166 DO ivar = 1,pregion%plot%nPv
2167 DO icg = 1,pregion%grid%nCellsTot
2168 pregion%plot%pv(ivar,icg) = 0.0_rfreal
2176 IF ( global%verbLevel > verbose_low )
THEN
2177 WRITE(stdout,
'(A,1X,A)') solver_name,
'Initializing plotting variables done.'
2217 TYPE(t_region
),
POINTER :: pregion
2230 global => pregion%global
2233 'RFLU_ModPlottingVars.F90')
2235 IF ( global%verbLevel > verbose_low )
THEN
2236 WRITE(stdout,
'(A,1X,A)') solver_name, &
2237 'Initializing vertex plotting variables...'
2244 DO ivar = 1,pregion%plot%nPv
2245 DO ivg = 1,pregion%grid%nVertTot
2246 pregion%plot%pvVert(ivar,ivg) = 0.0_rfreal
2254 IF ( global%verbLevel > verbose_low )
THEN
2255 WRITE(stdout,
'(A,1X,A)') solver_name, &
2256 'Initializing vertex plotting variables done.'
2296 TYPE(t_region
),
POINTER :: pregion
2302 INTEGER :: errorflag
2309 global => pregion%global
2312 'RFLU_ModPlottingVars.F90')
2318 nullify(pregion%plot%pvi2pv)
2359 TYPE(t_region
),
POINTER :: pregion
2365 INTEGER :: errorflag
2372 global => pregion%global
2375 'RFLU_ModPlottingVars.F90')
2381 nullify(pregion%plot%pv)
2423 TYPE(t_region
),
POINTER :: pregion
2429 INTEGER :: errorflag
2436 global => pregion%global
2439 'RFLU_ModPlottingVars.F90')
2445 nullify(pregion%plot%pvVert)
2487 TYPE(t_region
),
POINTER :: pregion
2493 INTEGER :: errorflag,ipv,ipv2
2500 global => pregion%global
2503 'RFLU_ModPlottingVars.F90')
2505 IF ( global%verbLevel > verbose_low )
THEN
2506 WRITE(stdout,
'(A,1X,A)') solver_name, &
2507 'Printing information on plotting variables...'
2514 IF ( global%verbLevel > verbose_low )
THEN
2515 WRITE(stdout,
'(A,5X,A,2X,A,2X,A,26X,A)') solver_name,
'#',
'Index', &
2516 'Long name',
'Short name'
2518 DO ipv = 1,pregion%plot%nPv
2519 ipv2 = pregion%plot%pvi2pv(ipv)
2521 WRITE(stdout,
'(A,4X,I2,4X,I2,3X,A32,3X,A6)') solver_name,ipv,ipv2, &
2522 adjustl(pregion%plot%pvNameLong(ipv2)), &
2523 adjustl(pregion%plot%pvNameShort(ipv2))
2531 IF ( global%verbLevel > verbose_low )
THEN
2532 WRITE(stdout,
'(A,1X,A)') solver_name, &
2533 'Printing information on plotting variables done.'
void int int REAL REAL * y
subroutine rflu_nullifyplottingvarsvert(pRegion)
subroutine registerfunction(global, funName, fileName)
subroutine, public rflu_printplottingvarsinfo(pRegion)
subroutine rflu_computeplottingvarsdisc(pRegion)
subroutine rflu_initplottingvarsvert(pRegion)
subroutine rflu_nullifyplottingvars(pRegion)
subroutine rflu_buildplottingvarnames(pRegion)
subroutine, public rflu_convertcvcons2prim(pRegion, cvStateFuture)
subroutine rflu_nullifyplottingvarmaps(pRegion)
subroutine, public rflu_countplottingvars(pRegion)
subroutine, public rflu_destroyplottingvarsvert(pRegion)
void int int int REAL REAL REAL * z
subroutine, public rflu_convertcvprim2cons(pRegion, cvStateFuture)
subroutine rflu_computeplottingvarsvort(pRegion)
LOGICAL function, public rflu_decidecomputeplottingvars(pRegion)
subroutine, public rflu_destroyplottingvars(pRegion)
subroutine, public rflu_buildplottingvarmaps(pRegion)
subroutine, public rflu_computegradcellswrapper(pRegion, iBegVar, iEndVar, iBegGrad, iEndGrad, varInfo, var, grad)
subroutine, public rflu_setexactflowtrig(global, nx, ny, nz, x, y, z, iVar, var, gx, gy, gz)
subroutine errorstop(global, errorCode, errorLine, addMessage)
subroutine, public rflu_computeplottingvarswrapper(pRegion)
subroutine, public rflu_destroyplottingvarmaps(pRegion)
subroutine, public rflu_createplottingvars(pRegion)
subroutine rflu_computeplottingvarscore(pRegion)
subroutine deregisterfunction(global)
subroutine, public rflu_createplottingvarsvert(pRegion)
subroutine rflu_initplottingvars(pRegion)
subroutine, public rflu_setexactflowlinear(x, y, z, iVar, var, gx, gy, gz)
subroutine rflu_computeplottingvarsgraderr(pRegion)
subroutine, public rflu_createplottingvarmaps(pRegion)