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

typedef GhostLayerField< Vector3< real_t >, 1 > VelocityField_T
 
typedef GhostLayerField< Matrix3< real_t >, 1 > TensorField_T
 

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

Constructor & Destructor Documentation

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

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

Member Data Documentation

const ConstBlockDataID walberla::pe_coupling::discrete_particle_methods::VelocityTotalTimeDerivativeFieldEvaluator::currentVelocityFieldID_
private
real_t walberla::pe_coupling::discrete_particle_methods::VelocityTotalTimeDerivativeFieldEvaluator::deltaTinv_
private
const ConstBlockDataID walberla::pe_coupling::discrete_particle_methods::VelocityTotalTimeDerivativeFieldEvaluator::formerVelocityFieldID_
private
const BlockDataID walberla::pe_coupling::discrete_particle_methods::VelocityTotalTimeDerivativeFieldEvaluator::totalTimeDerivativeVelocityFieldID_
private
const ConstBlockDataID walberla::pe_coupling::discrete_particle_methods::VelocityTotalTimeDerivativeFieldEvaluator::velocityGradientFieldID_
private

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