SPH
Public Member Functions | List of all members
AggregateOverlapHandler Class Reference
Inheritance diagram for AggregateOverlapHandler:
IOverlapHandler Polymorphic

Public Member Functions

 AggregateOverlapHandler (const RunSettings &settings)
 
virtual void initialize (Storage &storage) override
 
virtual bool overlaps (const Size i, const Size j) const override
 Returns true if two particles overlaps. More...
 
virtual void handle (const Size i, const Size j, FlatSet< Size > &toRemove) override
 Handles the overlap of two particles. More...
 
- Public Member Functions inherited from Polymorphic
virtual ~Polymorphic ()
 

Detailed Description

Definition at line 579 of file AggregateSolver.cpp.

Constructor & Destructor Documentation

◆ AggregateOverlapHandler()

AggregateOverlapHandler::AggregateOverlapHandler ( const RunSettings settings)
inlineexplicit

Definition at line 588 of file AggregateSolver.cpp.

Member Function Documentation

◆ handle()

virtual void AggregateOverlapHandler::handle ( const Size  i,
const Size  j,
FlatSet< Size > &  toRemove 
)
inlineoverridevirtual

Handles the overlap of two particles.

When called, the particles must actually overlap (overlaps must return true). This is checked by assert.

Todo:
precompute

Implements IOverlapHandler.

Definition at line 611 of file AggregateSolver.cpp.

◆ initialize()

virtual void AggregateOverlapHandler::initialize ( Storage storage)
inlineoverridevirtual

Implements IOverlapHandler.

Definition at line 591 of file AggregateSolver.cpp.

◆ overlaps()

virtual bool AggregateOverlapHandler::overlaps ( const Size  i,
const Size  j 
) const
inlineoverridevirtual

Returns true if two particles overlaps.

If so, the overlap is then resolved using handle.

Parameters
i,jIndices of particles in the storage.

Implements IOverlapHandler.

Definition at line 600 of file AggregateSolver.cpp.


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