template<class Init, class Coefficients>
walker::Velocity class

Velocity SDE used polymorphically with DiffEq.

The template arguments specify policies and are used to configure the behavior of the class. The policies are:

  • Init - initialization policy, see DiffEq/InitPolicy.h
  • Coefficients - coefficients policy, see DiffEq/VelocityCoeffPolicy.h

Constructors, destructors, conversion operators

Velocity(ncomp_t c) explicit
Constructor.

Public functions

auto numderived() const -> std::size_t
void initialize(int stream, tk::Particles& particles)
void advance(tk::Particles& particles, int stream, tk::real dt, tk::real t, const std::map<tk::ctr::Product, tk::real>& moments)
Advance particles according to the system of velocity SDEs.

Function documentation

template<class Init, class Coefficients>
walker::Velocity<Init, Coefficients>::Velocity(ncomp_t c) explicit

Constructor.

Parameters
in Index specifying which system of velocity SDEs to construct There can be multiple velocity ... end blocks in a control file. This index specifies which velocity SDE system to instantiate. The index corresponds to the order in which the velocity ... end blocks are given the control file.

template<class Init, class Coefficients>
std::size_t walker::Velocity<Init, Coefficients>::numderived() const

Returns Number of derived variables computed

Compute number of derived variables

template<class Init, class Coefficients>
void walker::Velocity<Init, Coefficients>::initialize(int stream, tk::Particles& particles)

Parameters
stream in Thread (or more precisely stream) ID
particles in/out Array of particle properties

Initalize SDE, prepare for time integration

template<class Init, class Coefficients>
void walker::Velocity<Init, Coefficients>::advance(tk::Particles& particles, int stream, tk::real dt, tk::real t, const std::map<tk::ctr::Product, tk::real>& moments)

Advance particles according to the system of velocity SDEs.

Parameters
particles in/out Array of particle properties
stream in Thread (or more precisely stream) ID
dt in Time step size
in Physical time of the simulation
moments in Map of statistical moments