61 TYPE(t_region
) :: region
67 CHARACTER(CHRLEN) :: rcsidentstring
68 CHARACTER(CHRLEN+4) :: fname
70 INTEGER :: errorflag, ndimplag
71 INTEGER :: pidini,regini,
icell,indexi,indexj,indexk
72 INTEGER,
POINTER :: cvplagmass(:)
73 INTEGER,
POINTER :: aiv(:,:)
75 REAL(RFREAL) ::
x,
y,
z,diam,evapor,temp,up,vp,wp
76 REAL(RFREAL),
POINTER :: cv(:,:), dv(:,:)
77 REAL(RFREAL) :: massp,muem,taup
83 rcsidentstring =
'$RCSfile: PLAG_WriteTecplotAscii.F90,v $ $Revision: 1.3 $'
85 global => region%global
87 CALL
registerfunction( global,
'PLAG_WriteTecplotAscii',
'PLAG_WriteTecplotAscii.F90' )
91 ndimplag = region%levels(ilev)%plag%nPcls
98 WRITE(fname,
'(A,1PE11.5,A)') &
99 trim(global%casename)//
'.plag_',global%currentTime,
'.dat'
100 OPEN(if_plot,file=fname,
status=
'unknown',
form=
'formatted',iostat=errorflag)
101 global%error = errorflag
102 IF (global%error /= 0) CALL
errorstop( global,err_file_open,__line__,fname )
104 IF (global%currentTime <= 0._rfreal)
THEN
105 WRITE(if_plot,1005,err=10) trim(global%casename),global%timeStamp
107 WRITE(if_plot,1005,err=10) trim(global%casename),global%currentTime
110 WRITE(if_plot,1010,err=10)
'x y z diam Evapor temp up vp wp tau pidini regini icellp ip jp kp'
116 IF ( ndimplag <= 0 ) goto 1999
120 WRITE(if_plot,1015) ireg, ndimplag
125 aiv => region%levels(ilev)%plag%aiv
126 cv => region%levels(ilev)%plag%cv
127 dv => region%levels(ilev)%plag%dv
128 cvplagmass => region%levels(ilev)%plag%cvPlagMass
131 x = cv(cv_plag_xpos,
i)
132 y = cv(cv_plag_ypos,
i)
133 z = cv(cv_plag_zpos,
i)
134 diam = dv(dv_plag_diam,
i)
135 evapor = cv(cv_plag_enervapor,
i)
136 temp = dv(dv_plag_temp,
i)
137 up = dv(dv_plag_uvel,
i)
138 vp = dv(dv_plag_vvel,
i)
139 wp = dv(dv_plag_wvel,
i)
141 pidini = aiv(aiv_plag_pidini,
i)
142 regini = aiv(aiv_plag_regini,
i)
143 icell = aiv(aiv_plag_icells,
i)
144 indexi = aiv(aiv_plag_indexi,
i)
145 indexj = aiv(aiv_plag_indexj,
i)
146 indexk = aiv(aiv_plag_indexk,
i)
148 massp =
sum( cv(cvplagmass(:),
i) )
149 muem = 3.6e-04_rfreal
150 taup = massp/(3.0_rfreal*global%pi*muem*diam)
152 WRITE(if_plot,1020,err=10)
x,
y,
z,diam,evapor,temp,up,vp,wp,taup, &
153 pidini,regini,
icell,indexi,indexj,indexk
159 IF (ireg == global%nRegions)
THEN
160 CLOSE(if_plot,iostat=errorflag)
161 global%error = errorflag
162 IF (global%error /= 0) CALL
errorstop( global,err_file_close,__line__,fname )
170 CALL
errorstop( global,err_file_write,__line__,fname )
174 1005
FORMAT(
'TITLE="',
a,
'. Time: ',1pe11.5,
'."')
175 1010
FORMAT(
'VARIABLES= ',
a)
176 1015
FORMAT(
'ZONE T="',i5.5,
'", I=',i10,
', F=POINT')
177 1020
FORMAT(1p,10(1
x,e13.6),1
x,i10,5(1
x,i8))
Tfloat sum() const
Return the sum of all the pixel values in an image.
void int int REAL REAL * y
subroutine registerfunction(global, funName, fileName)
int status() const
Obtain the status of the attribute.
subroutine plag_writetecplotascii(iReg, iLev, region)
void int int int REAL REAL REAL * z
**********************************************************************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
**********************************************************************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 icell
subroutine errorstop(global, errorCode, errorLine, addMessage)
subroutine deregisterfunction(global)