SPH
Classes | Functions
Balsara.h File Reference

Implementation of the Balsara switch. More...

#include "sph/equations/DerivativeHelpers.h"
#include "sph/equations/EquationTerm.h"
#include "system/Settings.h"

Go to the source code of this file.

Classes

class  BalsaraSwitch< AV >
 Implementation of the Balsara switch [2], designed to reduce artificial viscosity in shear flows and avoid numerical issues, such as unphysical transport of angular momentum. More...
 

Functions

template<typename Type >
NAMESPACE_SPH_BEGIN std::enable_if_t<!std::is_constructible< Type, const RunSettings & >::value, Type > makeFromSettings (const RunSettings &UNUSED(settings))
 Helper function allowing to construct an object from settings if the object defines such constructor, or default-construct the object otherwise. More...
 
template<typename Type >
std::enable_if_t< std::is_constructible< Type, const RunSettings & >::value, Type > makeFromSettings (const RunSettings &settings)
 Specialization for types constructible from settings. More...
 

Detailed Description

Implementation of the Balsara switch.

Author
Pavel Sevecek (sevecek at sirrah.troja.mff.cuni.cz)
Date
2016-2021

Definition in file Balsara.h.

Function Documentation

◆ makeFromSettings() [1/2]

template<typename Type >
std::enable_if_t<std::is_constructible<Type, const RunSettings&>::value, Type> makeFromSettings ( const RunSettings settings)

Specialization for types constructible from settings.

Definition at line 25 of file Balsara.h.

◆ makeFromSettings() [2/2]

template<typename Type >
NAMESPACE_SPH_BEGIN std::enable_if_t<!std::is_constructible<Type, const RunSettings&>::value, Type> makeFromSettings ( const RunSettings UNUSEDsettings)

Helper function allowing to construct an object from settings if the object defines such constructor, or default-construct the object otherwise.

Definition at line 17 of file Balsara.h.