SPH
Public Member Functions | List of all members
IAsymmetricDerivative Class Referenceabstract

Special derivative evaluated by GradHSolver. More...

#include <GradHSolver.h>

Inheritance diagram for IAsymmetricDerivative:
IDerivative Polymorphic AsymmetricPressureGradient

Public Member Functions

virtual void evalAsymmetric (const Size idx, ArrayView< const Size > neighs, ArrayView< const Vector > gradi, ArrayView< const Vector > gradj)=0
 Compute a part of derivatives from interaction of particle pairs. More...
 
- Public Member Functions inherited from IDerivative
virtual void create (Accumulated &results)=0
 Emplace all needed buffers into shared storage. More...
 
virtual void initialize (const Storage &input, Accumulated &results)=0
 Initialize derivative before iterating over neighbours. More...
 
virtual void evalNeighs (const Size idx, ArrayView< const Size > neighs, ArrayView< const Vector > grads)=0
 Compute derivatives of given particle. More...
 
virtual DerivativePhase phase () const =0
 Returns the phase of the derivative. More...
 
virtual bool equals (const IDerivative &other) const
 Returns true if this derivative is equal to the given derivative. More...
 
- Public Member Functions inherited from Polymorphic
virtual ~Polymorphic ()
 

Detailed Description

Special derivative evaluated by GradHSolver.

Unlike other derivatives which use the same gradient for both particles in evaluated pair (due to symmetrization in smoothing lenghts or direct symmetrization of kernel values), asymmetric derivatives have generally different gradients for both particles.

Definition at line 17 of file GradHSolver.h.

Member Function Documentation

◆ evalAsymmetric()

virtual void IAsymmetricDerivative::evalAsymmetric ( const Size  idx,
ArrayView< const Size neighs,
ArrayView< const Vector gradi,
ArrayView< const Vector gradj 
)
pure virtual

Compute a part of derivatives from interaction of particle pairs.

Parameters
idxIndex of first interacting particle.
neighsArray of some neighbours of idx-th particle. May be empty.
gradiComputed gradients of the SPH kernel for particle i.
gradjComputed gradients of the SPH kernel for particle j.

Implemented in AsymmetricPressureGradient.


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