62 logical,
intent(in) :: if_ext
63 real(kind=
rp),
intent(in) :: t
64 integer,
intent(in) :: tstep
65 type(
coef_t),
intent(in) :: coef
66 type(
field_t),
intent(inout) :: nut
67 type(
field_t),
intent(in) :: delta
68 real(kind=
rp),
intent(in) :: c_s
69 type(
field_t),
pointer :: u, v, w
71 type(
field_t),
pointer :: s11, s22, s33, s12, s13, s23
72 integer :: temp_indices(6)
75 if (if_ext .eqv. .true.)
then
93 call strain_rate(s11%x_d, s22%x_d, s33%x_d, s12%x_d, s13%x_d, s23%x_d, &
94 u%x_d, v%x_d, w%x_d, coef)
96 call coef%gs_h%op(s11%x, s22%x, s33%x, s11%dof%size(),
gs_op_add, &
98 call coef%gs_h%op(s12%x, s13%x, s23%x, s12%dof%size(),
gs_op_add, &
102 s12%x_d, s13%x_d, s23%x_d, &
103 delta%x_d, nut%x_d, coef%mult_d, &
107 call device_col2(nut%x_d, coef%mult_d, nut%dof%size())
subroutine, public device_smagorinsky_nut_compute(s11_d, s22_d, s33_d, s12_d, s13_d, s23_d, delta_d, nut_d, mult_d, c_s, n)
Compute the eddy viscosity field for the Sigma model indevice.
subroutine, public smagorinsky_compute_device(if_ext, t, tstep, coef, nut, delta, c_s)
Compute eddy viscosity on the device.
Coefficients defined on a given (mesh, ) tuple. Arrays use indices (i,j,k,e): element e,...