69 delta, c_dyn, test_filter, mij, lij, num, den)
70 logical,
intent(in) :: if_ext
71 real(kind=
rp),
intent(in) :: t
72 integer,
intent(in) :: tstep
73 type(
coef_t),
intent(in) :: coef
74 type(
field_t),
intent(inout) :: nut
75 type(
field_t),
intent(in) :: delta
76 type(
field_t),
intent(inout) :: c_dyn
78 type(
field_t),
intent(inout) :: mij(6), lij(6)
79 type(
field_t),
intent(inout) :: num, den
81 type(
field_t),
pointer :: u, v, w
84 type(
field_t),
pointer :: s11, s22, s33, s12, s13, s23, s_abs
85 real(kind=
rp) :: alpha
86 integer :: tmp_indices(7)
89 if (tstep .eq. 1)
then
95 if (if_ext .eqv. .true.)
then
114 call strain_rate(s11%x_d, s22%x_d, s33%x_d, s12%x_d, s13%x_d, s23%x_d, &
115 u%x_d, v%x_d, w%x_d, coef)
124 call device_col2(s11%x_d, coef%mult_d, s11%dof%size())
125 call device_col2(s22%x_d, coef%mult_d, s22%dof%size())
126 call device_col2(s33%x_d, coef%mult_d, s33%dof%size())
127 call device_col2(s12%x_d, coef%mult_d, s12%dof%size())
128 call device_col2(s13%x_d, coef%mult_d, s13%dof%size())
129 call device_col2(s23%x_d, coef%mult_d, s23%dof%size())
132 s12%x_d, s13%x_d, s23%x_d, &
137 s11, s22, s33, s12, s13, s23, &
138 s_abs, test_filter, delta, alpha, &
142 call device_col2(nut%x_d, coef%mult_d, nut%dof%size())
157 type(
field_t),
intent(inout) :: lij(6)
158 type(
field_t),
pointer,
intent(in) :: u, v, w
160 integer,
intent(in) :: n
163 type(
field_t),
pointer :: fu, fv, fw, fuu, fvv, fww, fuv, fuw, fvw
164 integer :: tmp_indices(9)
177 call test_filter%apply(fu, u)
178 call test_filter%apply(fv, v)
179 call test_filter%apply(fw, w)
184 lij(4)%x_d, lij(5)%x_d, lij(6)%x_d, &
185 u%x_d, v%x_d, w%x_d, &
186 fu%x_d, fv%x_d, fw%x_d, &
187 fuu%x_d, fvv%x_d, fww%x_d, &
188 fuv%x_d, fuw%x_d, fvw%x_d, n)
191 call test_filter%apply(fuu, fuu)
192 call test_filter%apply(fvv, fvv)
193 call test_filter%apply(fww, fww)
194 call test_filter%apply(fuv, fuv)
195 call test_filter%apply(fuw, fuw)
196 call test_filter%apply(fvw, fvw)
202 lij(4)%x_d, lij(5)%x_d, lij(6)%x_d, &
203 fuu%x_d, fvv%x_d, fww%x_d, &
204 fuv%x_d, fuw%x_d, fvw%x_d, n)
229 s11, s22, s33, s12, s13, s23, &
230 s_abs, test_filter, delta, alpha, &
232 type(
field_t),
intent(inout) :: nut, c_dyn
233 type(
field_t),
intent(inout) :: num, den
234 type(
field_t),
intent(in) :: lij(6)
235 type(
field_t),
intent(inout) :: mij(6)
236 type(
field_t),
intent(inout) :: s11, s22, s33, s12, s13, s23, s_abs
238 type(
field_t),
intent(in) :: delta
239 real(kind=
rp),
intent(in) :: alpha
240 type(
coef_t),
intent(in) :: coef
241 integer,
intent(in) :: n
243 real(kind=
rp) :: delta_ratio2
244 integer :: tmp_indices(13)
245 type(
field_t),
pointer :: fs11, fs22, fs33, fs12, fs13, fs23, fs_abs, &
246 fsabss11, fsabss22, fsabss33, &
247 fsabss12, fsabss13, fsabss23
249 delta_ratio2 = ((test_filter%nx-1.0_rp)/(test_filter%nt-1.0_rp))**2
268 call test_filter%apply(fs_abs, s_abs)
269 call test_filter%apply(fs11, s11)
270 call test_filter%apply(fs22, s22)
271 call test_filter%apply(fs33, s33)
272 call test_filter%apply(fs12, s12)
273 call test_filter%apply(fs13, s13)
274 call test_filter%apply(fs23, s23)
279 mij(4)%x_d, mij(5)%x_d, mij(6)%x_d, &
280 s_abs%x_d, s11%x_d, s22%x_d, s33%x_d, &
281 s12%x_d, s13%x_d, s23%x_d, &
282 fs_abs%x_d, fs11%x_d, fs22%x_d, fs33%x_d, &
283 fs12%x_d, fs13%x_d, fs23%x_d, &
284 fsabss11%x_d, fsabss22%x_d, fsabss33%x_d, &
285 fsabss12%x_d, fsabss13%x_d, fsabss23%x_d, &
289 call test_filter%apply(fsabss11, fsabss11)
290 call test_filter%apply(fsabss22, fsabss22)
291 call test_filter%apply(fsabss33, fsabss33)
292 call test_filter%apply(fsabss12, fsabss12)
293 call test_filter%apply(fsabss13, fsabss13)
294 call test_filter%apply(fsabss23, fsabss23)
298 mij(4)%x_d, mij(5)%x_d, mij(6)%x_d, &
299 lij(1)%x_d, lij(2)%x_d, lij(3)%x_d, &
300 lij(4)%x_d, lij(5)%x_d, lij(6)%x_d, &
301 fsabss11%x_d, fsabss22%x_d, fsabss33%x_d, &
302 fsabss12%x_d, fsabss13%x_d, fsabss23%x_d, &
303 num%x_d, den%x_d, c_dyn%x_d, delta%x_d, &
304 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