Created a switch, do_tensor_visc, that only applies diffuse_tensor_velocity() when the user has tensor viscosity - otherwise, diffuse_scalar() is used on the velocity components. Saves the computational time of calculating tensor cross terms when you know that they will be zero because of using scalar viscosity (Newtonian fluids).
Created a switch,
do_tensor_visc
, that only appliesdiffuse_tensor_velocity()
when the user has tensor viscosity - otherwise,diffuse_scalar()
is used on the velocity components. Saves the computational time of calculating tensor cross terms when you know that they will be zero because of using scalar viscosity (Newtonian fluids).