Class Viscosity_Standard

Inheritance Relationships

Base Type

Class Documentation

class Viscosity_Standard : public SPH::NonPressureForceBase

This class implements the standard method for viscosity descibed e.g. by Ihmsen et al. [IOS+14].

The method evaluates the term

\(\nu \nabla^2 \mathbf{v}\) and uses an approximation of the kernel Laplacian to improve the stability. This approximation is given in [IOS+14].

References:

  • [IOS+14] Markus Ihmsen, Jens Orthmann, Barbara Solenthaler, Andreas Kolb, and Matthias Teschner. SPH Fluids in Computer Graphics. In Sylvain Lefebvre and Michela Spagnuolo, editors, Eurographics 2014 - State of the Art Reports. The Eurographics Association, 2014. URL: http://dx.doi.org/10.2312/egst.20141034

Public Functions

Viscosity_Standard(FluidModel *model)
virtual ~Viscosity_Standard(void)
virtual void step()
virtual void reset()
inline virtual std::string getMethodName()

returns the name of the method

Public Static Functions

static inline NonPressureForceBase *creator(FluidModel *model)

Public Static Attributes

static std::string METHOD_NAME = "Standard viscosity"
static int VISCOSITY_COEFFICIENT = -1
static int VISCOSITY_COEFFICIENT_BOUNDARY = -1

Protected Functions

virtual void initParameters()

Protected Attributes

Real m_viscosity
Real m_boundaryViscosity