62 CHARACTER(CHRLEN) :: rcsidentstring
64 CHARACTER(CHRLEN),
POINTER :: statname(:,:,:)
67 INTEGER,
POINTER :: statid(:,:), statcode(:,:,:)
71 rcsidentstring =
'$RCSfile: TURB_StatMapping.F90,v $'
74 'TURB_StatMapping.F90' )
78 ALLOCATE( global%turbStatCode(2,2,global%turbNStat),stat=errorflag )
79 global%error = errorflag
80 IF (global%error /= 0) CALL
errorstop( global,err_allocate,__line__ )
82 statid => global%turbStatId
83 statcode => global%turbStatCode
86 ALLOCATE( global%turbStatNm(2,2,global%turbNStat),stat=errorflag )
87 global%error = errorflag
88 IF (global%error /= 0) CALL
errorstop( global,err_allocate,__line__ )
90 statname => global%turbStatNm
95 DO l=1,global%turbNStat
97 IF (statid(
n,l)==0)
THEN
98 statcode(
n,:,l) = stat_none
99 ELSE IF (statid(
n,l)==1)
THEN
100 statcode(
n,1,l) = stat_tv
101 statcode(
n,2,l) = tv_mixt_muet
103 statname(
n,1,l) =
'mut'
104 statname(
n,2,l) =
'kg/ms'
106 ELSE IF (statid(
n,l)==2)
THEN
107 statcode(
n,1,l) = stat_tv
108 statcode(
n,2,l) = tv_mixt_tcot
110 statname(
n,1,l) =
'tcot'
111 statname(
n,2,l) =
'kg m/Ks^3'
113 ELSE IF (statid(
n,l)==3)
THEN
114 statcode(
n,1,l) = stat_dv
115 statcode(
n,2,l) = dv_turb_cdyn
117 statname(
n,1,l) =
'Cd'
118 statname(
n,2,l) =
' '
120 ELSE IF (statid(
n,l)==4)
THEN
121 statcode(
n,1,l) = stat_st
122 statcode(
n,2,l) = st_turb_var1
124 statname(
n,1,l) =
'alpha_1'
125 statname(
n,2,l) =
'Nm/s'
127 ELSE IF (statid(
n,l)==5)
THEN
128 statcode(
n,1,l) = stat_st
129 statcode(
n,2,l) = st_turb_var2
131 statname(
n,1,l) =
'alpha_2+3'
132 statname(
n,2,l) =
'Nm/s'
134 ELSE IF (statid(
n,l)==6)
THEN
135 statcode(
n,1,l) = stat_st
136 statcode(
n,2,l) = st_turb_var3
138 statname(
n,1,l) =
'alpha_4'
139 statname(
n,2,l) =
'Nm/s'
162 ELSE IF (statid(
n,l)==7)
THEN
163 statcode(
n,1,l) = stat_sv
164 statcode(
n,2,l) = e12
166 statname(
n,1,l) =
'tau12'
167 statname(
n,2,l) =
'N/m^2'
169 ELSE IF (statid(
n,l)==8)
THEN
170 statcode(
n,1,l) = stat_st
171 statcode(
n,2,l) = st_turb_var4
173 statname(
n,1,l) =
'MMij'
174 statname(
n,2,l) =
'N^2/m^4'
176 ELSE IF (statid(
n,l)==9)
THEN
177 statcode(
n,1,l) = stat_st
178 statcode(
n,2,l) = st_turb_var5
180 statname(
n,1,l) =
'MLij'
181 statname(
n,2,l) =
'N^2/m^4'
184 CALL
errorstop( global,err_stats_indexing,__line__, &
185 'TURB index is not defined.' )
subroutine genxstatnaming(global, fluidType)
subroutine registerfunction(global, funName, fileName)
subroutine errorstop(global, errorCode, errorLine, addMessage)
subroutine deregisterfunction(global)
subroutine turb_statmapping(global)