SPH
Public Member Functions | List of all members
AsymmetricPressureGradient Class Reference
Inheritance diagram for AsymmetricPressureGradient:
IAsymmetricDerivative IDerivative Polymorphic

Public Member Functions

virtual void create (Accumulated &results) override
 Emplace all needed buffers into shared storage. More...
 
virtual void initialize (const Storage &input, Accumulated &results) override
 Initialize derivative before iterating over neighbours. More...
 
virtual void evalAsymmetric (const Size i, ArrayView< const Size > neighs, ArrayView< const Vector > gradi, ArrayView< const Vector > gradj) override
 Compute a part of derivatives from interaction of particle pairs. More...
 
- Public Member Functions inherited from IDerivative
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

Definition at line 7 of file GradHSolver.cpp.

Member Function Documentation

◆ create()

virtual void AsymmetricPressureGradient::create ( Accumulated results)
inlineoverridevirtual

Emplace all needed buffers into shared storage.

Called only once at the beginning of the run.

Implements IDerivative.

Definition at line 12 of file GradHSolver.cpp.

◆ evalAsymmetric()

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

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.

Implements IAsymmetricDerivative.

Definition at line 21 of file GradHSolver.cpp.

◆ initialize()

virtual void AsymmetricPressureGradient::initialize ( const Storage input,
Accumulated results 
)
inlineoverridevirtual

Initialize derivative before iterating over neighbours.

All pointers and arrayviews used to access storage quantities must be initialized in this function, as they may have been invalidated.

Parameters
inputStorage containing all the input quantities from which derivatives are computed. This storage is shared for all threads.
resultsThread-local storage where the computed derivatives are saved.

Implements IDerivative.

Definition at line 16 of file GradHSolver.cpp.


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