walberla::pe_coupling::discrete_particle_methods::EffectiveViscosityFieldEvaluator Class Reference

Detailed Description

Evaluates the (local) effective viscosity.

The effective viscosity (using the provided correlation) is evaluated for each cell and stored, as the respective omega value, in a field, that can be given to a suitable LBM sweep.

#include <EffectiveViscosityFieldEvaluator.h>

Public Types

using ScalarField_T = GhostLayerField< real_t, 1 >
 

Public Member Functions

 EffectiveViscosityFieldEvaluator (const BlockDataID &omegaFieldID, const ConstBlockDataID &solidVolumeFractionFieldID, const real_t &fluidViscosity, const std::function< real_t(real_t, real_t)> &effectiveViscosityFunc)
 
void operator() (IBlock *const block)
 
void resetFluidViscosity (real_t newFluidViscosity)
 

Private Attributes

const BlockDataID omegaFieldID_
 
const ConstBlockDataID solidVolumeFractionFieldID_
 
real_t fluidViscosity_
 
std::function< real_t(real_t, real_t)> effectiveViscosityFunc_
 

Member Typedef Documentation

◆ ScalarField_T

Constructor & Destructor Documentation

◆ EffectiveViscosityFieldEvaluator()

walberla::pe_coupling::discrete_particle_methods::EffectiveViscosityFieldEvaluator::EffectiveViscosityFieldEvaluator ( const BlockDataID omegaFieldID,
const ConstBlockDataID solidVolumeFractionFieldID,
const real_t fluidViscosity,
const std::function< real_t(real_t, real_t)> &  effectiveViscosityFunc 
)
inline

Member Function Documentation

◆ operator()()

void walberla::pe_coupling::discrete_particle_methods::EffectiveViscosityFieldEvaluator::operator() ( IBlock *const  block)
inline

◆ resetFluidViscosity()

void walberla::pe_coupling::discrete_particle_methods::EffectiveViscosityFieldEvaluator::resetFluidViscosity ( real_t  newFluidViscosity)
inline

Member Data Documentation

◆ effectiveViscosityFunc_

std::function<real_t (real_t, real_t)> walberla::pe_coupling::discrete_particle_methods::EffectiveViscosityFieldEvaluator::effectiveViscosityFunc_
private

◆ fluidViscosity_

real_t walberla::pe_coupling::discrete_particle_methods::EffectiveViscosityFieldEvaluator::fluidViscosity_
private

◆ omegaFieldID_

const BlockDataID walberla::pe_coupling::discrete_particle_methods::EffectiveViscosityFieldEvaluator::omegaFieldID_
private

◆ solidVolumeFractionFieldID_

const ConstBlockDataID walberla::pe_coupling::discrete_particle_methods::EffectiveViscosityFieldEvaluator::solidVolumeFractionFieldID_
private

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