walberla::free_surface::bubble_model::Bubble Class Reference

#include <Bubble.h>

Public Member Functions

 Bubble (real_t initVolume)
 
 Bubble (real_t initVolume, real_t density)
 
 Bubble ()
 
real_t getInitVolume () const
 
real_t getCurrentVolume () const
 
real_t getDensity () const
 
bool hasConstantDensity () const
 
void setConstantDensity (real_t density=real_c(1.0))
 
void updateVolumeDiff (real_t diff)
 
void setDensity (real_t rho)
 

Private Member Functions

void merge (const Bubble &other)
 
void applyVolumeDiff (real_t diff)
 
real_t getAndResetVolumeDiff ()
 
void updateDensity ()
 

Private Attributes

real_t initVolume_
 
real_t currentVolume_
 
real_t volumeDiff_
 
real_t rho_
 
bool hasConstantDensity_ { false }
 

Friends

template<typename Stencil_T >
class BubbleModel
 
class MergeInformation
 
mpi::SendBufferoperator<< (mpi::SendBuffer &buf, const Bubble &b)
 
mpi::RecvBufferoperator>> (mpi::RecvBuffer &buf, Bubble &b)
 

Constructor & Destructor Documentation

◆ Bubble() [1/3]

walberla::free_surface::bubble_model::Bubble::Bubble ( real_t  initVolume)
inlineexplicit

◆ Bubble() [2/3]

walberla::free_surface::bubble_model::Bubble::Bubble ( real_t  initVolume,
real_t  density 
)
inline

◆ Bubble() [3/3]

walberla::free_surface::bubble_model::Bubble::Bubble ( )
inline

Member Function Documentation

◆ applyVolumeDiff()

void walberla::free_surface::bubble_model::Bubble::applyVolumeDiff ( real_t  diff)
inlineprivate

◆ getAndResetVolumeDiff()

real_t walberla::free_surface::bubble_model::Bubble::getAndResetVolumeDiff ( )
inlineprivate

◆ getCurrentVolume()

real_t walberla::free_surface::bubble_model::Bubble::getCurrentVolume ( ) const
inline

◆ getDensity()

real_t walberla::free_surface::bubble_model::Bubble::getDensity ( ) const
inline

◆ getInitVolume()

real_t walberla::free_surface::bubble_model::Bubble::getInitVolume ( ) const
inline

◆ hasConstantDensity()

bool walberla::free_surface::bubble_model::Bubble::hasConstantDensity ( ) const
inline

◆ merge()

void walberla::free_surface::bubble_model::Bubble::merge ( const Bubble other)
inlineprivate

◆ setConstantDensity()

void walberla::free_surface::bubble_model::Bubble::setConstantDensity ( real_t  density = real_c(1.0))
inline

◆ setDensity()

void walberla::free_surface::bubble_model::Bubble::setDensity ( real_t  rho)
inline

◆ updateDensity()

void walberla::free_surface::bubble_model::Bubble::updateDensity ( )
inlineprivate

◆ updateVolumeDiff()

void walberla::free_surface::bubble_model::Bubble::updateVolumeDiff ( real_t  diff)
inline

Friends And Related Function Documentation

◆ BubbleModel

template<typename Stencil_T >
friend class BubbleModel
friend

◆ MergeInformation

friend class MergeInformation
friend

◆ operator<<

mpi::SendBuffer& operator<< ( mpi::SendBuffer buf,
const Bubble b 
)
friend

◆ operator>>

mpi::RecvBuffer& operator>> ( mpi::RecvBuffer buf,
Bubble b 
)
friend

Member Data Documentation

◆ currentVolume_

real_t walberla::free_surface::bubble_model::Bubble::currentVolume_
private

◆ hasConstantDensity_

bool walberla::free_surface::bubble_model::Bubble::hasConstantDensity_ { false }
private

◆ initVolume_

real_t walberla::free_surface::bubble_model::Bubble::initVolume_
private

◆ rho_

real_t walberla::free_surface::bubble_model::Bubble::rho_
private

◆ volumeDiff_

real_t walberla::free_surface::bubble_model::Bubble::volumeDiff_
private

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