51 type(field_t),
intent(inout) :: u, v, w, p
52 type(json_file),
intent(inout) :: params
54 class(point_zone_t),
pointer :: cylinder
55 real(kind=rp) :: noise, noise_scale
59 call cfill(u%x, 1.0_rp, u%dof%size())
60 call cfill(v%x, 0.0_rp, v%dof%size())
61 call cfill(w%x, 0.0_rp, w%dof%size())
66 do i = 1, u%dof%size()
67 call random_number(noise)
68 u%x(i, 1, 1, 1) = u%x(i, 1, 1, 1) + noise_scale * noise
69 call random_number(noise)
70 v%x(i, 1, 1, 1) = v%x(i, 1, 1, 1) + noise_scale * noise
71 call random_number(noise)
72 w%x(i, 1, 1, 1) = w%x(i, 1, 1, 1) + noise_scale * noise
76 if (neko_point_zone_registry%point_zone_exists(
"cylinder"))
then
77 cylinder => neko_point_zone_registry%get_point_zone(
"cylinder")
79 call cfill_mask(u%x, 0.0_rp, u%dof%size(), cylinder%mask, cylinder%size)
subroutine set_material_properties(t, tstep, rho, mu, cp, lambda, params)
Read the material properties from the JSON file.