OpenLB 1.8.1
Loading...
Searching...
No Matches
olb::FreeSurfaceToGasCellConversionPostProcessor2D< T, DESCRIPTOR > Class Template Reference

Free Surface Processor 5 ToGas Converts cells to interface from fluid if a neighbouring cell was converted to a gas cell. More...

#include <freeSurfacePostProcessor2D.h>

+ Collaboration diagram for olb::FreeSurfaceToGasCellConversionPostProcessor2D< T, DESCRIPTOR >:

Public Member Functions

int getPriority () const
 
template<typename CELL >
void apply (CELL &cell) any_platform
 Free Surface Processor 5: ToGas.
 

Static Public Attributes

static constexpr OperatorScope scope = OperatorScope::PerCell
 

Detailed Description

template<typename T, typename DESCRIPTOR>
class olb::FreeSurfaceToGasCellConversionPostProcessor2D< T, DESCRIPTOR >

Free Surface Processor 5 ToGas Converts cells to interface from fluid if a neighbouring cell was converted to a gas cell.

Definition at line 109 of file freeSurfacePostProcessor2D.h.

Member Function Documentation

◆ apply()

template<typename T , typename DESCRIPTOR >
template<typename CELL >
void olb::FreeSurfaceToGasCellConversionPostProcessor2D< T, DESCRIPTOR >::apply ( CELL & cell)

Free Surface Processor 5: ToGas.

Definition at line 327 of file freeSurfacePostProcessor2D.hh.

327 {
328 using namespace olb::FreeSurface;
329
331 for (int iPop = 1; iPop < DESCRIPTOR::q; ++iPop) {
332 auto nbrCell = cell.neighbor(descriptors::c<DESCRIPTOR>(iPop));
333
334 // Convert a liquid cell to interface if it is in the neighborhood of a toGas cell
337 T rho = cell.computeRho();
338 cell.template setField<FreeSurface::MASS>(rho);
339
340 // Cell already flagged as NewInterface, skip the remaining neighbours.
341 break;
342 }
343 }
344 }
345}
bool isCellType(CELL &cell, const FreeSurface::Type &type)
bool hasCellFlags(CELL &cell, const FreeSurface::Flags &flags)
void setCellFlags(CELL &cell, const FreeSurface::Flags &flags)
constexpr int c(unsigned iPop, unsigned iDim) any_platform
Definition functions.h:83

References olb::descriptors::c(), olb::FreeSurface::Fluid, olb::FreeSurface::NewInterface, and olb::FreeSurface::ToGas.

+ Here is the call graph for this function:

◆ getPriority()

template<typename T , typename DESCRIPTOR >
int olb::FreeSurfaceToGasCellConversionPostProcessor2D< T, DESCRIPTOR >::getPriority ( ) const
inline

Definition at line 113 of file freeSurfacePostProcessor2D.h.

113 {
114 return 4;
115 }

Member Data Documentation

◆ scope

template<typename T , typename DESCRIPTOR >
OperatorScope olb::FreeSurfaceToGasCellConversionPostProcessor2D< T, DESCRIPTOR >::scope = OperatorScope::PerCell
staticconstexpr

Definition at line 111 of file freeSurfacePostProcessor2D.h.


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