walberla::free_surface::bubble_model::NewBubbleCommunication Class Reference

#include <NewBubbleCommunication.h>

Public Member Functions

 NewBubbleCommunication (uint_t nrOfExistingBubbles=uint_c(0))
 
BubbleID createBubble (const Bubble &newBubble)
 
BubbleID nextFreeBubbleID () const
 
void communicateAndApply (std::vector< Bubble > &vectorToAddBubbles, StructuredBlockStorage &blockStorage, BlockDataID bubbleFieldID)
 
void communicateAndApply (std::vector< Bubble > &vectorToAddBubbles, const std::vector< bool > &bubblesToOverwrite, StructuredBlockStorage &blockStorage, BlockDataID bubbleFieldID)
 

Private Member Functions

std::shared_ptr< CommunicatedNewBubblescommunicate (size_t nrOfBubblesBefore)
 

Private Attributes

BubbleID nextFreeBubbleID_
 
std::vector< BubblebubblesToCreate_
 

Constructor & Destructor Documentation

◆ NewBubbleCommunication()

walberla::free_surface::bubble_model::NewBubbleCommunication::NewBubbleCommunication ( uint_t  nrOfExistingBubbles = uint_c(0))
inlineexplicit

Member Function Documentation

◆ communicate()

std::shared_ptr< CommunicatedNewBubbles > walberla::free_surface::bubble_model::NewBubbleCommunication::communicate ( size_t  nrOfBubblesBefore)
private

◆ communicateAndApply() [1/2]

void walberla::free_surface::bubble_model::NewBubbleCommunication::communicateAndApply ( std::vector< Bubble > &  vectorToAddBubbles,
const std::vector< bool > &  bubblesToOverwrite,
StructuredBlockStorage blockStorage,
BlockDataID  bubbleFieldID 
)

◆ communicateAndApply() [2/2]

void walberla::free_surface::bubble_model::NewBubbleCommunication::communicateAndApply ( std::vector< Bubble > &  vectorToAddBubbles,
StructuredBlockStorage blockStorage,
BlockDataID  bubbleFieldID 
)

◆ createBubble()

BubbleID walberla::free_surface::bubble_model::NewBubbleCommunication::createBubble ( const Bubble newBubble)
inline

◆ nextFreeBubbleID()

BubbleID walberla::free_surface::bubble_model::NewBubbleCommunication::nextFreeBubbleID ( ) const
inline

Member Data Documentation

◆ bubblesToCreate_

std::vector< Bubble > walberla::free_surface::bubble_model::NewBubbleCommunication::bubblesToCreate_
private

◆ nextFreeBubbleID_

BubbleID walberla::free_surface::bubble_model::NewBubbleCommunication::nextFreeBubbleID_
private

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