48 SUBROUTINE turb_calcstrainrate( region,ibn,ien,grIndx,gradi,gradj,gradk, &
49 sratei,sratej,sratek )
52 SUBROUTINE turb_calcstrainrate( region,ibn,ien,grIndx,gradf,sRateI )
64 TYPE(t_region
) :: region
68 REAL(RFREAL),
POINTER ::
gradi(:,:),
gradj(:,:),gradk(:,:)
69 REAL(RFREAL),
POINTER :: sratei(:,:),sratej(:,:),sratek(:,:)
73 REAL(RFREAL),
POINTER :: gradf(:,:,:)
74 REAL(RFREAL),
POINTER :: sratei(:,:)
81 CHARACTER(CHRLEN) :: rcsidentstring
84 REAL(RFREAL) :: oo3,
div
85 REAL(RFREAL) :: ux,uy,uz,vx,vy,vz,wx,wy,wz
89 rcsidentstring =
'$RCSfile: TURB_CalcStrainRate.F90,v $'
91 global => region%global
93 'TURB_CalcStrainRate.F90' )
95 oo3 = 1.0_rfreal/3.0_rfreal
104 ux =
gradi(grindx(1),in)
105 vx =
gradi(grindx(2),in)
106 wx =
gradi(grindx(3),in)
107 uy =
gradi(grindx(4),in)
108 vy =
gradi(grindx(5),in)
109 wy =
gradi(grindx(6),in)
110 uz =
gradi(grindx(7),in)
111 vz =
gradi(grindx(8),in)
112 wz =
gradi(grindx(9),in)
115 ux = gradf(xcoord,grindx(1),in)
116 uy = gradf(ycoord,grindx(1),in)
117 uz = gradf(zcoord,grindx(1),in)
118 vx = gradf(xcoord,grindx(2),in)
119 vy = gradf(ycoord,grindx(2),in)
120 vz = gradf(zcoord,grindx(2),in)
121 wx = gradf(xcoord,grindx(3),in)
122 wy = gradf(ycoord,grindx(3),in)
123 wz = gradf(zcoord,grindx(3),in)
128 sratei(e11,in) = 2.0_rfreal*(ux-
div)
129 sratei(e12,in) = uy+vx
130 sratei(e13,in) = uz+wx
132 sratei(e22,in) = 2.0_rfreal*(vy-
div)
133 sratei(e23,in) = vz+wy
135 sratei(e33,in) = 2.0_rfreal*(wz-
div)
140 ux =
gradj(grindx(1),in)
141 vx =
gradj(grindx(2),in)
142 wx =
gradj(grindx(3),in)
143 uy =
gradj(grindx(4),in)
144 vy =
gradj(grindx(5),in)
145 wy =
gradj(grindx(6),in)
146 uz =
gradj(grindx(7),in)
147 vz =
gradj(grindx(8),in)
148 wz =
gradj(grindx(9),in)
152 sratej(e11,in) = 2.0_rfreal*(ux-
div)
153 sratej(e12,in) = uy+vx
154 sratej(e13,in) = uz+wx
156 sratej(e22,in) = 2.0_rfreal*(vy-
div)
157 sratej(e23,in) = vz+wy
159 sratej(e33,in) = 2.0_rfreal*(wz-
div)
163 ux = gradk(grindx(1),in)
164 vx = gradk(grindx(2),in)
165 wx = gradk(grindx(3),in)
166 uy = gradk(grindx(4),in)
167 vy = gradk(grindx(5),in)
168 wy = gradk(grindx(6),in)
169 uz = gradk(grindx(7),in)
170 vz = gradk(grindx(8),in)
171 wz = gradk(grindx(9),in)
175 sratek(e11,in) = 2.0_rfreal*(ux-
div)
176 sratek(e12,in) = uy+vx
177 sratek(e13,in) = uz+wx
179 sratek(e22,in) = 2.0_rfreal*(vy-
div)
180 sratek(e23,in) = vz+wy
182 sratek(e33,in) = 2.0_rfreal*(wz-
div)
191 END SUBROUTINE turb_calcstrainrate
subroutine registerfunction(global, funName, fileName)
static void div(const Attribute *x, const Attribute *y, Attribute *z)
Operation wrapper for division.
**********************************************************************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 iEndG gradi(:,:)
subroutine deregisterfunction(global)
**********************************************************************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 iEndG gradj(:,:)