68 c_dyn, test_filter, mij, lij, &
70 real(kind=
rp),
intent(in) :: t
71 integer,
intent(in) :: tstep
72 type(
coef_t),
intent(in) :: coef
73 type(
field_t),
intent(inout) :: nut
74 type(
field_t),
intent(in) :: delta
75 type(
field_t),
intent(inout) :: c_dyn
77 type(
field_t),
intent(inout) :: mij(6), lij(6)
78 type(
field_t),
intent(inout) :: num, den
80 type(
field_t),
pointer :: u, v, w
83 type(
field_t),
pointer :: s11, s22, s33, s12, s13, s23, s_abs
84 real(kind=
rp) :: alpha
85 integer :: temp_indices(7)
88 if (tstep .eq. 1)
then
107 call strain_rate(s11%x, s22%x, s33%x, s12%x, s13%x, s23%x, u, v, w, coef)
109 call coef%gs_h%op(s11%x, s11%dof%size(),
gs_op_add)
110 call coef%gs_h%op(s22%x, s11%dof%size(),
gs_op_add)
111 call coef%gs_h%op(s33%x, s11%dof%size(),
gs_op_add)
112 call coef%gs_h%op(s12%x, s11%dof%size(),
gs_op_add)
113 call coef%gs_h%op(s13%x, s11%dof%size(),
gs_op_add)
114 call coef%gs_h%op(s23%x, s11%dof%size(),
gs_op_add)
117 s12%x_d, s13%x_d, s23%x_d, &
118 coef%mult_d, s11%dof%size())
122 s11, s22, s33, s12, s13, s23, &
123 s_abs, test_filter, delta, alpha, &
124 u%dof%size(), u%msh%nelv)
127 call device_col2(nut%x_d, coef%mult_d, nut%dof%size())
141 type(
field_t),
intent(inout) :: lij(6)
142 type(
field_t),
pointer,
intent(in) :: u, v, w
144 integer,
intent(in) :: n
145 integer,
intent(inout) :: nelv
148 type(
field_t),
pointer :: fu, fv, fw, fuu, fvv, fww, fuv, fuw, fvw
149 integer :: temp_indices(9)
162 call test_filter%filter_3d(fu%x, u%x, nelv)
163 call test_filter%filter_3d(fv%x, v%x, nelv)
164 call test_filter%filter_3d(fw%x, w%x, nelv)
169 lij(4)%x_d, lij(5)%x_d, lij(6)%x_d, &
170 u%x_d, v%x_d, w%x_d, &
171 fu%x_d, fv%x_d, fw%x_d, &
172 fuu%x_d, fvv%x_d, fww%x_d, &
173 fuv%x_d, fuw%x_d, fvw%x_d, n)
176 call test_filter%filter_3d(fuu%x, fuu%x, nelv)
177 call test_filter%filter_3d(fvv%x, fvv%x, nelv)
178 call test_filter%filter_3d(fww%x, fww%x, nelv)
179 call test_filter%filter_3d(fuv%x, fuv%x, nelv)
180 call test_filter%filter_3d(fuw%x, fuw%x, nelv)
181 call test_filter%filter_3d(fvw%x, fvw%x, nelv)
187 lij(4)%x_d, lij(5)%x_d, lij(6)%x_d, &
188 fuu%x_d, fvv%x_d, fww%x_d, &
189 fuv%x_d, fuw%x_d, fvw%x_d, n)
215 s11, s22, s33, s12, s13, s23, &
216 s_abs, test_filter, delta, alpha, &
218 type(
field_t),
intent(inout) :: nut, c_dyn
219 type(
field_t),
intent(inout) :: num, den
220 type(
field_t),
intent(in) :: lij(6)
221 type(
field_t),
intent(inout) :: mij(6)
222 type(
field_t),
intent(inout) :: s11, s22, s33, s12, s13, s23, s_abs
224 type(
field_t),
intent(in) :: delta
225 real(kind=
rp),
intent(in) :: alpha
226 integer,
intent(in) :: n
227 integer,
intent(inout) :: nelv
229 real(kind=
rp) :: delta_ratio2
230 integer :: temp_indices(13)
231 type(
field_t),
pointer :: fs11, fs22, fs33, fs12, fs13, fs23, fs_abs, &
232 fsabss11, fsabss22, fsabss33, &
233 fsabss12, fsabss13, fsabss23
235 delta_ratio2 = ((test_filter%nx-1.0_rp)/(test_filter%nt-1.0_rp))**2
254 call test_filter%filter_3d(fs_abs%x, s_abs%x, nelv)
255 call test_filter%filter_3d(fs11%x, s11%x, nelv)
256 call test_filter%filter_3d(fs22%x, s22%x, nelv)
257 call test_filter%filter_3d(fs33%x, s33%x, nelv)
258 call test_filter%filter_3d(fs12%x, s12%x, nelv)
259 call test_filter%filter_3d(fs13%x, s13%x, nelv)
260 call test_filter%filter_3d(fs23%x, s23%x, nelv)
265 mij(4)%x_d, mij(5)%x_d, mij(6)%x_d, &
266 s_abs%x_d, s11%x_d, s22%x_d, s33%x_d, &
267 s12%x_d, s13%x_d, s23%x_d, &
268 fs_abs%x_d, fs11%x_d, fs22%x_d, fs33%x_d, &
269 fs12%x_d, fs13%x_d, fs23%x_d, &
270 fsabss11%x_d, fsabss22%x_d, fsabss33%x_d, &
271 fsabss12%x_d, fsabss13%x_d, fsabss23%x_d, &
275 call test_filter%filter_3d(fsabss11%x, fsabss11%x, nelv)
276 call test_filter%filter_3d(fsabss22%x, fsabss22%x, nelv)
277 call test_filter%filter_3d(fsabss33%x, fsabss33%x, nelv)
278 call test_filter%filter_3d(fsabss12%x, fsabss12%x, nelv)
279 call test_filter%filter_3d(fsabss13%x, fsabss13%x, nelv)
280 call test_filter%filter_3d(fsabss23%x, fsabss23%x, nelv)
284 mij(4)%x_d, mij(5)%x_d, mij(6)%x_d, &
285 lij(1)%x_d, lij(2)%x_d, lij(3)%x_d, &
286 lij(4)%x_d, lij(5)%x_d, lij(6)%x_d, &
287 fsabss11%x_d, fsabss22%x_d, fsabss33%x_d, &
288 fsabss12%x_d, fsabss13%x_d, fsabss23%x_d, &
289 num%x_d, den%x_d, c_dyn%x_d, delta%x_d, &
290 s_abs%x_d, nut%x_d, alpha, n)
subroutine, public device_mij_nut_compute_part2(m11_d, m22_d, m33_d, m12_d, m13_d, m23_d, l11_d, l22_d, l33_d, l12_d, l13_d, l23_d, fsabss11_d, fsabss22_d, fsabss33_d, fsabss12_d, fsabss13_d, fsabss23_d, num_d, den_d, c_dyn_d, delta_d, s_abs_d, nut_d, alpha, n)
part 1 of the computing of the mij field
subroutine, public device_mij_compute_part1(m11_d, m22_d, m33_d, m12_d, m13_d, m23_d, s_abs_d, s11_d, s22_d, s33_d, s12_d, s13_d, s23_d, fs_abs_d, fs11_d, fs22_d, fs33_d, fs12_d, fs13_d, fs23_d, fsabss11_d, fsabss22_d, fsabss33_d, fsabss12_d, fsabss13_d, fsabss23_d, delta_ratio2, n)
part 1 of the computing of the mij field