AMReX-Fluids / IAMR

A parallel, adaptive mesh refinement (AMR) code that solves the variable-density incompressible Navier-Stokes equations.
https://amrex-fluids.github.io/IAMR/
80 stars 57 forks source link

Using diffuse_scalar() for velocity components #114

Closed dcoveney closed 2 years ago

dcoveney commented 2 years ago

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).