SPH
Functions
StandardSets.h File Reference

Standard SPH formulation that uses continuity equation for solution of density. More...

#include "sph/equations/EquationTerm.h"

Go to the source code of this file.

Functions

NAMESPACE_SPH_BEGIN EquationHolder getStandardEquations (const RunSettings &settings, const EquationHolder &other={})
 Standard SPH equation set, using density and specific energy as independent variables. More...
 

Detailed Description

Standard SPH formulation that uses continuity equation for solution of density.

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

Definition in file StandardSets.h.

Function Documentation

◆ getStandardEquations()

NAMESPACE_SPH_BEGIN EquationHolder getStandardEquations ( const RunSettings settings,
const EquationHolder other = {} 
)

Standard SPH equation set, using density and specific energy as independent variables.

Evolves density using continuity equation and energy using energy equation. Works with any artificial viscosity and any equation of state.

Todo:
test that all possible combination (pressure, stress, AV, ...) work and dont assert
Todo:
this term (and also AV) do not depend on particular equation set, so it could be moved outside to reduce code duplication, but this also provides a way to get all necessary terms by calling a single function ...
Todo:
add test checking that with ConstSmoothingLength the h will indeed be const

Definition at line 14 of file StandardSets.cpp.