SPHinXsys  alpha version
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
SPH::DampingWithRandomChoice< DampingAlgorithmType > Class Template Reference

A random choice method for obstaining static equilibrium state Note that, if periodic boundary condition is applied, the parallelized version of the method requires the one using ghost particles because the splitting partition only works in this case. More...

#include <particle_dynamics_dissipation.h>

Inherits DampingAlgorithmType.

Public Member Functions

template<typename... ConstructorArgs>
 DampingWithRandomChoice (Real random_ratio, ConstructorArgs &&...args)
 
virtual void exec (Real dt=0.0) override
 
virtual void parallel_exec (Real dt=0.0) override
 

Protected Member Functions

bool RandomChoice ()
 

Protected Attributes

Real random_ratio_
 

Detailed Description

template<class DampingAlgorithmType>
class SPH::DampingWithRandomChoice< DampingAlgorithmType >

A random choice method for obstaining static equilibrium state Note that, if periodic boundary condition is applied, the parallelized version of the method requires the one using ghost particles because the splitting partition only works in this case.


The documentation for this class was generated from the following files: