63 CHARACTER(CHRLEN),
PRIVATE :: &
64 RCSIdentString =
'$RCSfile: RFLU_ModPatchCoeffs.F90,v $ $Revision: 1.6 $'
126 TYPE(t_region
),
POINTER :: pregion
139 global => pregion%global
142 'RFLU_ModPatchCoeffs.F90')
144 IF ( global%myProcid == masterproc .AND. &
145 global%verbLevel >= verbose_high )
THEN
146 WRITE(stdout,
'(A,1X,A)') solver_name, &
147 'Closing patch-coefficients file...'
154 CLOSE(if_patch_coef,iostat=errorflag)
155 global%error = errorflag
156 IF ( global%error /= err_none )
THEN
157 CALL
errorstop(global,err_file_close,__line__)
164 IF ( global%myProcid == masterproc .AND. &
165 global%verbLevel >= verbose_high )
THEN
166 WRITE(stdout,
'(A,1X,A)') solver_name, &
167 'Closing patch-coefficients file done.'
206 TYPE(t_region
),
POINTER :: pregion
212 INTEGER :: errorflag,ipatch
214 TYPE(t_grid),
POINTER :: pgrid
215 TYPE(t_patch),
POINTER :: ppatch
221 global => pregion%global
224 'RFLU_ModPatchCoeffs.F90')
226 pgrid => pregion%grid
232 DO ipatch = 1,pgrid%nPatches
233 ppatch => pregion%patches(ipatch)
235 ALLOCATE(ppatch%cp(ppatch%nBFaces),stat=errorflag)
236 global%error = errorflag
237 IF ( global%error /= err_none )
THEN
238 CALL
errorstop(global,err_allocate,__line__,
'pPatch%cp')
241 ALLOCATE(ppatch%cf(xcoord:zcoord,ppatch%nBFaces),stat=errorflag)
242 global%error = errorflag
243 IF ( global%error /= err_none )
THEN
244 CALL
errorstop(global,err_allocate,__line__,
'pPatch%cf')
247 ALLOCATE(ppatch%ch(ppatch%nBFaces),stat=errorflag)
248 global%error = errorflag
249 IF ( global%error /= err_none )
THEN
250 CALL
errorstop(global,err_allocate,__line__,
'pPatch%ch')
253 ALLOCATE(ppatch%cmass(ppatch%nBFaces),stat=errorflag)
254 global%error = errorflag
255 IF ( global%error /= err_none )
THEN
256 CALL
errorstop(global,err_allocate,__line__,
'pPatch%cmass')
259 ALLOCATE(ppatch%cmom(xcoord:zcoord,ppatch%nBFaces),stat=errorflag)
260 global%error = errorflag
261 IF ( global%error /= err_none )
THEN
262 CALL
errorstop(global,err_allocate,__line__,
'pPatch%cmom')
315 TYPE(t_region
),
POINTER :: pregion
321 INTEGER :: errorflag,ipatch
323 TYPE(t_grid),
POINTER :: pgrid
324 TYPE(t_patch),
POINTER :: ppatch
330 global => pregion%global
333 'RFLU_ModPatchCoeffs.F90')
335 pgrid => pregion%grid
341 DO ipatch = 1,pgrid%nPatches
342 ppatch => pregion%patches(ipatch)
344 DEALLOCATE(ppatch%cp,stat=errorflag)
345 global%error = errorflag
346 IF ( global%error /= err_none )
THEN
347 CALL
errorstop(global,err_deallocate,__line__,
'pPatch%cp')
350 DEALLOCATE(ppatch%cf,stat=errorflag)
351 global%error = errorflag
352 IF ( global%error /= err_none )
THEN
353 CALL
errorstop(global,err_deallocate,__line__,
'pPatch%cf')
356 DEALLOCATE(ppatch%ch,stat=errorflag)
357 global%error = errorflag
358 IF ( global%error /= err_none )
THEN
359 CALL
errorstop(global,err_deallocate,__line__,
'pPatch%ch')
362 DEALLOCATE(ppatch%cmass,stat=errorflag)
363 global%error = errorflag
364 IF ( global%error /= err_none )
THEN
365 CALL
errorstop(global,err_deallocate,__line__,
'pPatch%cmass')
368 DEALLOCATE(ppatch%cmom,stat=errorflag)
369 global%error = errorflag
370 IF ( global%error /= err_none )
THEN
371 CALL
errorstop(global,err_deallocate,__line__,
'pPatch%cmom')
420 TYPE(t_region
),
POINTER :: pregion
426 INTEGER :: errorflag,ifl,ipatch
428 TYPE(t_grid),
POINTER :: pgrid
429 TYPE(t_patch),
POINTER :: ppatch
435 global => pregion%global
438 'RFLU_ModPatchCoeffs.F90')
440 pgrid => pregion%grid
446 DO ipatch = 1,pgrid%nPatches
447 ppatch => pregion%patches(ipatch)
449 DO ifl = 1,ppatch%nBFaces
450 ppatch%cp(ifl) = 0.0_rfreal
451 ppatch%cf(xcoord,ifl) = 0.0_rfreal
452 ppatch%cf(ycoord,ifl) = 0.0_rfreal
453 ppatch%cf(zcoord,ifl) = 0.0_rfreal
454 ppatch%ch(ifl) = 0.0_rfreal
455 ppatch%cmass(ifl) = 0.0_rfreal
456 ppatch%cmom(xcoord,ifl) = 0.0_rfreal
457 ppatch%cmom(ycoord,ifl) = 0.0_rfreal
458 ppatch%cmom(zcoord,ifl) = 0.0_rfreal
503 TYPE(t_region
),
POINTER :: pregion
511 TYPE(t_grid),
POINTER :: pgrid
512 TYPE(t_patch),
POINTER :: ppatch
518 global => pregion%global
521 'RFLU_ModPatchCoeffs.F90')
523 pgrid => pregion%grid
529 DO ipatch = 1,pgrid%nPatches
530 ppatch => pregion%patches(ipatch)
535 nullify(ppatch%cmass)
584 INTEGER,
INTENT(IN) :: filestatus
585 LOGICAL,
INTENT(OUT),
OPTIONAL :: fileexists
586 TYPE(t_region
),
POINTER :: pregion
592 CHARACTER(CHRLEN) :: ifilename
593 INTEGER :: errorflag,ifile
600 global => pregion%global
603 'RFLU_ModPatchCoeffs.F90')
605 IF ( global%myProcid == masterproc .AND. &
606 global%verbLevel >= verbose_high )
THEN
607 WRITE(stdout,
'(A,1X,A)') solver_name, &
608 'Opening ASCII patch-coefficients file...'
611 ifile = if_patch_coef
617 IF ( global%flowType == flow_unsteady )
THEN
619 pregion%iRegionGlobal,global%currentTime, &
622 IF ( global%myProcid == masterproc .AND. &
623 global%verbLevel >= verbose_high )
THEN
624 WRITE(stdout,
'(A,3X,A,1X,I5.5)') solver_name,
'Global region:', &
625 pregion%iRegionGlobal
626 WRITE(stdout,
'(A,3X,A,1X,1PE11.5)') solver_name,
'Current time:', &
631 pregion%iRegionGlobal,global%currentIter, &
634 IF ( global%myProcid == masterproc .AND. &
635 global%verbLevel >= verbose_high )
THEN
636 WRITE(stdout,
'(A,3X,A,1X,I5.5)') solver_name,
'Global region:', &
637 pregion%iRegionGlobal
638 WRITE(stdout,
'(A,3X,A,1X,I6.6)') solver_name,
'Current iteration '// &
639 'number:',global%currentIter
647 IF ( filestatus == file_status_old )
THEN
648 INQUIRE(file=ifilename,exist=fileexists)
650 IF ( fileexists .EQV. .true. )
THEN
651 OPEN(ifile,file=ifilename,
form=
"FORMATTED",
status=
"OLD", &
653 global%error = errorflag
654 IF ( global%error /= err_none )
THEN
655 CALL
errorstop(global,err_file_open,__line__,ifilename)
658 ELSE IF ( filestatus == file_status_unknown )
THEN
659 OPEN(ifile,file=ifilename,
form=
"FORMATTED",
status=
"UNKNOWN", &
661 global%error = errorflag
662 IF ( global%error /= err_none )
THEN
663 CALL
errorstop(global,err_file_open,__line__,ifilename)
666 CALL
errorstop(global,err_reached_default,__line__)
673 IF ( global%myProcid == masterproc .AND. &
674 global%verbLevel >= verbose_high )
THEN
675 WRITE(stdout,
'(A,1X,A)') solver_name, &
676 'Opening ASCII patch-coefficients file done.'
720 INTEGER,
INTENT(IN) :: filestatus
721 LOGICAL,
INTENT(OUT),
OPTIONAL :: fileexists
722 TYPE(t_region
),
POINTER :: pregion
728 CHARACTER(CHRLEN) :: ifilename
729 INTEGER :: errorflag,ifile
736 global => pregion%global
739 'RFLU_ModPatchCoeffs.F90')
741 IF ( global%myProcid == masterproc .AND. &
742 global%verbLevel >= verbose_high )
THEN
743 WRITE(stdout,
'(A,1X,A)') solver_name, &
744 'Opening binary patch-coefficients file...'
747 ifile = if_patch_coef
753 IF ( global%flowType == flow_unsteady )
THEN
755 pregion%iRegionGlobal,global%currentTime, &
758 IF ( global%myProcid == masterproc .AND. &
759 global%verbLevel >= verbose_high )
THEN
760 WRITE(stdout,
'(A,3X,A,1X,I5.5)') solver_name,
'Global region:', &
761 pregion%iRegionGlobal
762 WRITE(stdout,
'(A,3X,A,1X,1PE11.5)') solver_name,
'Current time:', &
767 pregion%iRegionGlobal,global%currentIter, &
770 IF ( global%myProcid == masterproc .AND. &
771 global%verbLevel >= verbose_high )
THEN
772 WRITE(stdout,
'(A,3X,A,1X,I5.5)') solver_name,
'Global region:', &
773 pregion%iRegionGlobal
774 WRITE(stdout,
'(A,3X,A,1X,I6.6)') solver_name,
'Current iteration '// &
775 'number:',global%currentIter
783 IF ( filestatus == file_status_old )
THEN
784 INQUIRE(file=ifilename,exist=fileexists)
786 IF ( fileexists .EQV. .true. )
THEN
787 OPEN(ifile,file=ifilename,
form=
"UNFORMATTED",
status=
"OLD", &
789 global%error = errorflag
790 IF ( global%error /= err_none )
THEN
791 CALL
errorstop(global,err_file_open,__line__,ifilename)
794 ELSE IF ( filestatus == file_status_unknown )
THEN
795 OPEN(ifile,file=ifilename,
form=
"UNFORMATTED",
status=
"UNKNOWN", &
797 global%error = errorflag
798 IF ( global%error /= err_none )
THEN
799 CALL
errorstop(global,err_file_open,__line__,ifilename)
802 CALL
errorstop(global,err_reached_default,__line__)
809 IF ( global%myProcid == masterproc .AND. &
810 global%verbLevel >= verbose_high )
THEN
811 WRITE(stdout,
'(A,1X,A)') solver_name, &
812 'Opening binary patch-coefficients file done.'
852 TYPE(t_region
),
POINTER :: pregion
858 CHARACTER(CHRLEN) :: ifilename,sectionstring
859 INTEGER :: errorflag,ifile,ifl,ipatch,loopcounter
861 TYPE(t_grid),
POINTER :: pgrid
862 TYPE(t_patch),
POINTER :: ppatch
868 global => pregion%global
871 'RFLU_ModPatchCoeffs.F90')
873 IF ( global%myProcid == masterproc .AND. &
874 global%verbLevel >= verbose_med )
THEN
875 WRITE(stdout,
'(A,1X,A)') solver_name
876 WRITE(stdout,
'(A,1X,A)') solver_name, &
877 'Reading ASCII patch-coefficients file...'
880 pgrid => pregion%grid
882 ifile = if_patch_coef
888 IF ( global%myProcid == masterproc .AND. &
889 global%verbLevel >= verbose_med)
THEN
890 WRITE(stdout,
'(A,3X,A)') solver_name,
'Header information...'
893 READ(ifile,
'(A)') sectionstring
894 IF ( trim(sectionstring) /=
'# ROCFLU patch-coefficients file' )
THEN
895 CALL
errorstop(global,err_invalid_marker,__line__,sectionstring)
905 loopcounter = loopcounter + 1
907 READ(ifile,
'(A)') sectionstring
909 SELECT CASE ( trim(sectionstring) )
915 CASE (
'# Pressure coefficient' )
916 IF ( global%myProcid == masterproc .AND. &
917 global%verbLevel >= verbose_med)
THEN
918 WRITE(stdout,
'(A,3X,A)') solver_name,
'Pressure coefficient...'
921 DO ipatch = 1,pgrid%nPatches
922 ppatch => pregion%patches(ipatch)
924 READ(ifile,
'(5(E23.16))') (ppatch%cp(ifl),ifl=1,ppatch%nBFaces)
931 CASE (
'# Skin-friction coefficient' )
932 IF ( global%myProcid == masterproc .AND. &
933 global%verbLevel >= verbose_med)
THEN
934 WRITE(stdout,
'(A,3X,A)') solver_name,
'Skin-friction coefficient...'
937 DO ipatch = 1,pgrid%nPatches
938 ppatch => pregion%patches(ipatch)
940 READ(ifile,
'(5(E23.16))') (ppatch%cf(xcoord,ifl), &
941 ifl=1,ppatch%nBFaces)
942 READ(ifile,
'(5(E23.16))') (ppatch%cf(ycoord,ifl), &
943 ifl=1,ppatch%nBFaces)
944 READ(ifile,
'(5(E23.16))') (ppatch%cf(zcoord,ifl), &
945 ifl=1,ppatch%nBFaces)
952 CASE (
'# Heat-transfer coefficient' )
953 IF ( global%myProcid == masterproc .AND. &
954 global%verbLevel >= verbose_med)
THEN
955 WRITE(stdout,
'(A,3X,A)') solver_name,
'Heat-transfer coefficient...'
958 DO ipatch = 1,pgrid%nPatches
959 ppatch => pregion%patches(ipatch)
961 READ(ifile,
'(5(E23.16))') (ppatch%ch(ifl),ifl=1,ppatch%nBFaces)
969 IF ( global%myProcid == masterproc .AND. &
970 global%verbLevel >= verbose_med)
THEN
971 WRITE(stdout,
'(A,3X,A)') solver_name,
'End marker...'
981 IF ( global%verbLevel >= verbose_med)
THEN
982 WRITE(stdout,
'(A,3X,A)') solver_name,sectionstring
985 CALL
errorstop(global,err_invalid_marker,__line__,sectionstring)
992 IF ( loopcounter >= limit_infinite_loop )
THEN
993 CALL
errorstop(global,err_infinite_loop,__line__)
1001 IF ( global%myProcid == masterproc .AND. &
1002 global%verbLevel >= verbose_med )
THEN
1003 WRITE(stdout,
'(A,1X,A)') solver_name, &
1004 'Reading ASCII patch-coefficients file done.'
1005 WRITE(stdout,
'(A,1X,A)') solver_name
1044 TYPE(t_region
),
POINTER :: pregion
1050 CHARACTER(CHRLEN) :: ifilename,sectionstring
1051 INTEGER :: errorflag,ifile,ifl,ipatch,loopcounter
1053 TYPE(t_grid),
POINTER :: pgrid
1054 TYPE(t_patch),
POINTER :: ppatch
1060 global => pregion%global
1063 'RFLU_ModPatchCoeffs.F90')
1065 IF ( global%myProcid == masterproc .AND. &
1066 global%verbLevel >= verbose_med )
THEN
1067 WRITE(stdout,
'(A,1X,A)') solver_name
1068 WRITE(stdout,
'(A,1X,A)') solver_name, &
1069 'Reading binary patch-coefficients file...'
1072 pgrid => pregion%grid
1074 ifile = if_patch_coef
1080 IF ( global%myProcid == masterproc .AND. &
1081 global%verbLevel >= verbose_med)
THEN
1082 WRITE(stdout,
'(A,3X,A)') solver_name,
'Header information...'
1085 READ(ifile) sectionstring
1086 IF ( trim(sectionstring) /=
'# ROCFLU patch-coefficients file' )
THEN
1087 CALL
errorstop(global,err_invalid_marker,__line__,sectionstring)
1097 loopcounter = loopcounter + 1
1099 READ(ifile) sectionstring
1101 SELECT CASE ( trim(sectionstring) )
1107 CASE (
'# Pressure coefficient' )
1108 IF ( global%myProcid == masterproc .AND. &
1109 global%verbLevel >= verbose_med)
THEN
1110 WRITE(stdout,
'(A,3X,A)') solver_name,
'Pressure coefficient...'
1113 DO ipatch = 1,pgrid%nPatches
1114 ppatch => pregion%patches(ipatch)
1116 READ(ifile) (ppatch%cp(ifl),ifl=1,ppatch%nBFaces)
1123 CASE (
'# Skin-friction coefficient' )
1124 IF ( global%myProcid == masterproc .AND. &
1125 global%verbLevel >= verbose_med)
THEN
1126 WRITE(stdout,
'(A,3X,A)') solver_name,
'Skin-friction coefficient...'
1129 DO ipatch = 1,pgrid%nPatches
1130 ppatch => pregion%patches(ipatch)
1132 READ(ifile) (ppatch%cf(xcoord,ifl),ifl=1,ppatch%nBFaces)
1133 READ(ifile) (ppatch%cf(ycoord,ifl),ifl=1,ppatch%nBFaces)
1134 READ(ifile) (ppatch%cf(zcoord,ifl),ifl=1,ppatch%nBFaces)
1141 CASE (
'# Heat-transfer coefficient' )
1142 IF ( global%myProcid == masterproc .AND. &
1143 global%verbLevel >= verbose_med)
THEN
1144 WRITE(stdout,
'(A,3X,A)') solver_name,
'Heat-transfer coefficient...'
1147 DO ipatch = 1,pgrid%nPatches
1148 ppatch => pregion%patches(ipatch)
1150 READ(ifile) (ppatch%ch(ifl),ifl=1,ppatch%nBFaces)
1158 IF ( global%myProcid == masterproc .AND. &
1159 global%verbLevel >= verbose_med)
THEN
1160 WRITE(stdout,
'(A,3X,A)') solver_name,
'End marker...'
1170 IF ( global%verbLevel >= verbose_med)
THEN
1171 WRITE(stdout,
'(A,3X,A)') solver_name,sectionstring
1174 CALL
errorstop(global,err_invalid_marker,__line__,sectionstring)
1181 IF ( loopcounter >= limit_infinite_loop )
THEN
1182 CALL
errorstop(global,err_infinite_loop,__line__)
1190 IF ( global%myProcid == masterproc .AND. &
1191 global%verbLevel >= verbose_med )
THEN
1192 WRITE(stdout,
'(A,1X,A)') solver_name, &
1193 'Reading binary patch-coefficients file done.'
1194 WRITE(stdout,
'(A,1X,A)') solver_name
1233 TYPE(t_region
),
POINTER :: pregion
1239 LOGICAL :: fileexists
1246 global => pregion%global
1249 'RFLU_ModPatchCoeffs.F90')
1255 IF ( global%solutFormat == format_ascii )
THEN
1258 IF ( fileexists .EQV. .true. )
THEN
1262 ELSE IF ( global%solutFormat == format_binary )
THEN
1265 IF ( fileexists .EQV. .true. )
THEN
1270 CALL
errorstop(global,err_reached_default,__line__)
1277 IF ( fileexists .EQV. .false. )
THEN
1278 global%warnCounter = global%warnCounter + 1
1280 IF ( global%myProcid == masterproc .AND. &
1281 global%verbLevel >= verbose_none )
THEN
1282 WRITE(stdout,
'(A,2(1X,A))') solver_name,
'*** WARNING ***', &
1283 'Patch coefficient file missing, not read.'
1327 TYPE(t_region
),
POINTER :: pregion
1333 CHARACTER(CHRLEN) :: ifilename,sectionstring
1334 INTEGER :: errorflag,ifile,ifl,ipatch
1336 TYPE(t_grid),
POINTER :: pgrid
1337 TYPE(t_patch),
POINTER :: ppatch
1343 global => pregion%global
1346 'RFLU_ModPatchCoeffs.F90')
1348 IF ( global%myProcid == masterproc .AND. &
1349 global%verbLevel >= verbose_low )
THEN
1350 WRITE(stdout,
'(A,1X,A)') solver_name
1351 WRITE(stdout,
'(A,1X,A)') solver_name, &
1352 'Writing ASCII patch-coefficients file...'
1355 pgrid => pregion%grid
1357 ifile = if_patch_coef
1363 IF ( global%myProcid == masterproc .AND. &
1364 global%verbLevel >= verbose_med)
THEN
1365 WRITE(stdout,
'(A,3X,A)') solver_name,
'Header information...'
1368 sectionstring =
'# ROCFLU patch-coefficients file'
1369 WRITE(ifile,
'(A)') sectionstring
1379 IF ( global%myProcid == masterproc .AND. &
1380 global%verbLevel >= verbose_med)
THEN
1381 WRITE(stdout,
'(A,3X,A)') solver_name,
'Pressure coefficient...'
1384 sectionstring =
'# Pressure coefficient'
1385 WRITE(ifile,
'(A)') sectionstring
1387 DO ipatch = 1,pgrid%nPatches
1388 ppatch => pregion%patches(ipatch)
1390 WRITE(ifile,
'(5(E23.16))') (ppatch%cp(ifl),ifl=1,ppatch%nBFaces)
1397 IF ( global%myProcid == masterproc .AND. &
1398 global%verbLevel >= verbose_med)
THEN
1399 WRITE(stdout,
'(A,3X,A)') solver_name,
'Skin-friction coefficient...'
1402 sectionstring =
'# Skin-friction coefficient'
1403 WRITE(ifile,
'(A)') sectionstring
1405 DO ipatch = 1,pgrid%nPatches
1406 ppatch => pregion%patches(ipatch)
1408 WRITE(ifile,
'(5(E23.16))') (ppatch%cf(xcoord,ifl),ifl=1,ppatch%nBFaces)
1409 WRITE(ifile,
'(5(E23.16))') (ppatch%cf(ycoord,ifl),ifl=1,ppatch%nBFaces)
1410 WRITE(ifile,
'(5(E23.16))') (ppatch%cf(zcoord,ifl),ifl=1,ppatch%nBFaces)
1417 IF ( global%myProcid == masterproc .AND. &
1418 global%verbLevel >= verbose_med)
THEN
1419 WRITE(stdout,
'(A,3X,A)') solver_name,
'Heat-transfer coefficient...'
1422 sectionstring =
'# Heat-transfer coefficient'
1423 WRITE(ifile,
'(A)') sectionstring
1425 DO ipatch = 1,pgrid%nPatches
1426 ppatch => pregion%patches(ipatch)
1428 WRITE(ifile,
'(5(E23.16))') (ppatch%ch(ifl),ifl=1,ppatch%nBFaces)
1435 IF ( global%myProcid == masterproc .AND. &
1436 global%verbLevel >= verbose_med)
THEN
1437 WRITE(stdout,
'(A,3X,A)') solver_name,
'End marker...'
1440 sectionstring =
'# End'
1441 WRITE(ifile,
'(A)') sectionstring
1447 IF ( global%myProcid == masterproc .AND. &
1448 global%verbLevel >= verbose_med )
THEN
1449 WRITE(stdout,
'(A,1X,A)') solver_name, &
1450 'Writing ASCII patch-coefficients file done.'
1451 WRITE(stdout,
'(A,1X,A)') solver_name
1490 TYPE(t_region
),
POINTER :: pregion
1496 CHARACTER(CHRLEN) :: ifilename,sectionstring
1497 INTEGER :: errorflag,ifile,ifl,ipatch
1499 TYPE(t_grid),
POINTER :: pgrid
1500 TYPE(t_patch),
POINTER :: ppatch
1506 global => pregion%global
1509 'RFLU_ModPatchCoeffs.F90')
1511 IF ( global%myProcid == masterproc .AND. &
1512 global%verbLevel >= verbose_low )
THEN
1513 WRITE(stdout,
'(A,1X,A)') solver_name
1514 WRITE(stdout,
'(A,1X,A)') solver_name, &
1515 'Writing binary patch-coefficients file...'
1518 pgrid => pregion%grid
1520 ifile = if_patch_coef
1526 IF ( global%myProcid == masterproc .AND. &
1527 global%verbLevel >= verbose_med )
THEN
1528 WRITE(stdout,
'(A,3X,A)') solver_name,
'Header information...'
1531 sectionstring =
'# ROCFLU patch-coefficients file'
1532 WRITE(ifile) sectionstring
1542 IF ( global%myProcid == masterproc .AND. &
1543 global%verbLevel >= verbose_med )
THEN
1544 WRITE(stdout,
'(A,3X,A)') solver_name,
'Pressure coefficient...'
1547 sectionstring =
'# Pressure coefficient'
1548 WRITE(ifile) sectionstring
1550 DO ipatch = 1,pgrid%nPatches
1551 ppatch => pregion%patches(ipatch)
1553 WRITE(ifile) (ppatch%cp(ifl),ifl=1,ppatch%nBFaces)
1560 IF ( global%myProcid == masterproc .AND. &
1561 global%verbLevel >= verbose_med )
THEN
1562 WRITE(stdout,
'(A,3X,A)') solver_name,
'Skin-friction coefficient...'
1565 sectionstring =
'# Skin-friction coefficient'
1566 WRITE(ifile) sectionstring
1568 DO ipatch = 1,pgrid%nPatches
1569 ppatch => pregion%patches(ipatch)
1571 WRITE(ifile) (ppatch%cf(xcoord,ifl),ifl=1,ppatch%nBFaces)
1572 WRITE(ifile) (ppatch%cf(ycoord,ifl),ifl=1,ppatch%nBFaces)
1573 WRITE(ifile) (ppatch%cf(zcoord,ifl),ifl=1,ppatch%nBFaces)
1580 IF ( global%myProcid == masterproc .AND. &
1581 global%verbLevel >= verbose_med )
THEN
1582 WRITE(stdout,
'(A,3X,A)') solver_name,
'Heat-transfer coefficient...'
1585 sectionstring =
'# Heat-transfer coefficient'
1586 WRITE(ifile) sectionstring
1588 DO ipatch = 1,pgrid%nPatches
1589 ppatch => pregion%patches(ipatch)
1591 WRITE(ifile) (ppatch%ch(ifl),ifl=1,ppatch%nBFaces)
1598 IF ( global%myProcid == masterproc .AND. &
1599 global%verbLevel >= verbose_med )
THEN
1600 WRITE(stdout,
'(A,3X,A)') solver_name,
'End marker...'
1603 sectionstring =
'# End'
1604 WRITE(ifile) sectionstring
1610 IF ( global%myProcid == masterproc .AND. &
1611 global%verbLevel >= verbose_med )
THEN
1612 WRITE(stdout,
'(A,1X,A)') solver_name, &
1613 'Writing binary patch-coefficients file done.'
1614 WRITE(stdout,
'(A,1X,A)') solver_name
1653 TYPE(t_region
),
POINTER :: pregion
1665 global => pregion%global
1668 'RFLU_ModPatchCoeffs.F90')
1670 IF ( global%solutFormat == format_ascii )
THEN
1674 ELSE IF ( global%solutFormat == format_binary )
THEN
1679 CALL
errorstop(global,err_reached_default,__line__)
subroutine, private rflu_openpatchcoeffsascii(pRegion, fileStatus, fileExists)
subroutine, private rflu_readpatchcoeffsascii(pRegion)
subroutine, public rflu_readpatchcoeffswrapper(pRegion)
subroutine registerfunction(global, funName, fileName)
int status() const
Obtain the status of the attribute.
subroutine, private rflu_writepatchcoeffsascii(pRegion)
subroutine, public rflu_destroypatchcoeffs(pRegion)
subroutine, private rflu_writepatchcoeffsbinary(pRegion)
subroutine, private rflu_openpatchcoeffsbinary(pRegion, fileStatus, fileExists)
subroutine, public rflu_writepatchcoeffswrapper(pRegion)
**********************************************************************Rocstar Simulation Suite Illinois Rocstar LLC All rights reserved ****Illinois Rocstar LLC IL **www illinoisrocstar com **sales illinoisrocstar com WITHOUT WARRANTY OF ANY **EXPRESS OR INCLUDING BUT NOT LIMITED TO THE WARRANTIES **OF FITNESS FOR A PARTICULAR PURPOSE AND **NONINFRINGEMENT IN NO EVENT SHALL THE CONTRIBUTORS OR **COPYRIGHT HOLDERS BE LIABLE FOR ANY DAMAGES OR OTHER WHETHER IN AN ACTION OF TORT OR **Arising OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE **USE OR OTHER DEALINGS WITH THE SOFTWARE **********************************************************************INTERFACE SUBROUTINE form
subroutine, public rflu_createpatchcoeffs(pRegion)
subroutine, private rflu_nullifypatchcoeffs(pRegion)
subroutine errorstop(global, errorCode, errorLine, addMessage)
subroutine, private rflu_closepatchcoeffs(pRegion)
subroutine deregisterfunction(global)
subroutine, private rflu_initpatchcoeffs(pRegion)
subroutine, private rflu_readpatchcoeffsbinary(pRegion)
subroutine buildfilenamesteady(global, dest, ext, id, it, fileName)
subroutine buildfilenameunsteady(global, dest, ext, id, tm, fileName)