walberla::pe_coupling::discrete_particle_methods::VelocityTotalTimeDerivativeFieldEvaluator Class Reference

Detailed Description

Evaluator of the total derivative of the fluid velocity.

This evaluates Du/Dt = du/dt + u * grad(u). The gradient of the velocity, grad(u), has to be provided by a field, e.g. evaluated with VelocityGradientFieldEvaluator.h. The time derivative, du/dt, is approximated by a simple backward difference: du/dt = (u_new - u_old ) / deltaT. This requires two velocity field.

#include <VelocityTotalTimeDerivativeFieldEvaluator.h>

Public Types

using VelocityField_T = GhostLayerField< Vector3< real_t >, 1 >
 
using TensorField_T = GhostLayerField< Matrix3< real_t >, 1 >
 

Public Member Functions

 VelocityTotalTimeDerivativeFieldEvaluator (const BlockDataID &totalTimeDerivativeVelocityFieldID, const ConstBlockDataID &currentVelocityFieldID, const ConstBlockDataID &formerVelocityFieldID, const ConstBlockDataID &velocityGradientFieldID, const real_t &deltaT=real_t(1))
 
void operator() (IBlock *const block)
 
void resetDeltaT (const real_t &deltaT)
 

Private Attributes

const BlockDataID totalTimeDerivativeVelocityFieldID_
 
const ConstBlockDataID currentVelocityFieldID_
 
const ConstBlockDataID formerVelocityFieldID_
 
const ConstBlockDataID velocityGradientFieldID_
 
real_t deltaTinv_
 

Member Typedef Documentation

◆ TensorField_T

◆ VelocityField_T

Constructor & Destructor Documentation

◆ VelocityTotalTimeDerivativeFieldEvaluator()

walberla::pe_coupling::discrete_particle_methods::VelocityTotalTimeDerivativeFieldEvaluator::VelocityTotalTimeDerivativeFieldEvaluator ( const BlockDataID totalTimeDerivativeVelocityFieldID,
const ConstBlockDataID currentVelocityFieldID,
const ConstBlockDataID formerVelocityFieldID,
const ConstBlockDataID velocityGradientFieldID,
const real_t deltaT = real_t(1) 
)
inline

Member Function Documentation

◆ operator()()

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

◆ resetDeltaT()

void walberla::pe_coupling::discrete_particle_methods::VelocityTotalTimeDerivativeFieldEvaluator::resetDeltaT ( const real_t deltaT)
inline

Member Data Documentation

◆ currentVelocityFieldID_

const ConstBlockDataID walberla::pe_coupling::discrete_particle_methods::VelocityTotalTimeDerivativeFieldEvaluator::currentVelocityFieldID_
private

◆ deltaTinv_

real_t walberla::pe_coupling::discrete_particle_methods::VelocityTotalTimeDerivativeFieldEvaluator::deltaTinv_
private

◆ formerVelocityFieldID_

const ConstBlockDataID walberla::pe_coupling::discrete_particle_methods::VelocityTotalTimeDerivativeFieldEvaluator::formerVelocityFieldID_
private

◆ totalTimeDerivativeVelocityFieldID_

const BlockDataID walberla::pe_coupling::discrete_particle_methods::VelocityTotalTimeDerivativeFieldEvaluator::totalTimeDerivativeVelocityFieldID_
private

◆ velocityGradientFieldID_

const ConstBlockDataID walberla::pe_coupling::discrete_particle_methods::VelocityTotalTimeDerivativeFieldEvaluator::velocityGradientFieldID_
private

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