SPH
Public Member Functions | List of all members
AccelerationSeparatingHolder Class Reference

Derivative holder, splitting the registered derivatives into accelerations and the rest. More...

#include <EnergyConservingSolver.h>

Inheritance diagram for AccelerationSeparatingHolder:
DerivativeHolder Polymorphic

Public Member Functions

virtual void require (AutoPtr< IDerivative > &&derivative) override
 Adds derivative if not already present. More...
 
void evalAccelerations (const Size idx, ArrayView< const Size > neighs, ArrayView< const Vector > grads, Array< Vector > &dv) const
 
- Public Member Functions inherited from DerivativeHolder
virtual void initialize (const Storage &input)
 Initialize derivatives before loop. More...
 
void eval (const Size idx, ArrayView< const Size > neighs, ArrayView< const Vector > grads)
 Evaluates all held derivatives for given particle. More...
 
void evalSymmetric (const Size idx, ArrayView< const Size > neighs, ArrayView< const Vector > grads)
 Evaluates all held derivatives symetrically for given particle pairs. More...
 
bool isSymmetric () const
 Returns true if all stored derivatives are symmetric. More...
 
INLINE AccumulatedgetAccumulated ()
 
INLINE Size getDerivativeCnt () const
 
- Public Member Functions inherited from Polymorphic
virtual ~Polymorphic ()
 

Detailed Description

Derivative holder, splitting the registered derivatives into accelerations and the rest.

Definition at line 24 of file EnergyConservingSolver.h.

Member Function Documentation

◆ evalAccelerations()

void AccelerationSeparatingHolder::evalAccelerations ( const Size  idx,
ArrayView< const Size neighs,
ArrayView< const Vector grads,
Array< Vector > &  dv 
) const
inline

Definition at line 37 of file EnergyConservingSolver.h.

◆ require()

virtual void AccelerationSeparatingHolder::require ( AutoPtr< IDerivative > &&  derivative)
inlineoverridevirtual

Adds derivative if not already present.

If the derivative is already stored, new one is NOT stored, it is simply ignored. However, the new derivative must be equal to the one already stored, which is checked using IDerivative::equals. If derivative has the same type, but different internal state, exception InvalidState is thrown.

Reimplemented from DerivativeHolder.

Definition at line 29 of file EnergyConservingSolver.h.


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