SPH
Classes | Functions
Potentials.h File Reference

Additional forces that do not depend on spatial derivatives. More...

#include "physics/Functions.h"
#include "sph/equations/EquationTerm.h"

Go to the source code of this file.

Classes

class  ExternalForce< TFunctor >
 Generic external force given by lambda function. More...
 
class  InertialForce
 Centrifugal and Coriolis force. More...
 

Functions

template<typename TFunctor >
EquationHolder makeExternalForce (TFunctor &&functor)
 

Detailed Description

Additional forces that do not depend on spatial derivatives.

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

Definition in file Potentials.h.

Function Documentation

◆ makeExternalForce()

template<typename TFunctor >
EquationHolder makeExternalForce ( TFunctor &&  functor)

Helper function to create ExternalForce utilizing type deduction. This way, we can use lambda as the template functor.

Definition at line 52 of file Potentials.h.