Lethe Open-Source Library version 1.2.0
Developer Guide
Loading...
Searching...
No Matches
KinematicViscosityPostprocessor< dim > Class Template Reference

#include <postprocessors.h>

Inheritance diagram for KinematicViscosityPostprocessor< dim >:
[legend]

Public Member Functions

 KinematicViscosityPostprocessor (std::shared_ptr< RheologicalModel > rheological_model, const unsigned int fluid_id=0)
virtual void evaluate_vector_field (const DataPostprocessorInputs::Vector< dim > &inputs, std::vector< Vector< double > > &computed_quantities) const override

Private Attributes

std::shared_ptr< RheologicalModel > rheological_model

Detailed Description

template<int dim>
class KinematicViscosityPostprocessor< dim >

Compute the kinematic viscosity scalar field of a fluid within a domain.

The expression for the kinematic viscosity depends on the rheological model of the fluid. See documentation on rheological models.

Definition at line 348 of file postprocessors.h.

Constructor & Destructor Documentation

◆ KinematicViscosityPostprocessor()

template<int dim>
KinematicViscosityPostprocessor< dim >::KinematicViscosityPostprocessor ( std::shared_ptr< RheologicalModel > rheological_model,
const unsigned int fluid_id = 0 )
inline

Constructor of the kinematic viscosity postprocessor.

Parameters
[in]rheological_modelRheological model of the fluid.
[in]fluid_idIdentifier corresponding to the fluid.

Definition at line 358 of file postprocessors.h.

References rheological_model.

Member Function Documentation

◆ evaluate_vector_field()

template<int dim>
virtual void KinematicViscosityPostprocessor< dim >::evaluate_vector_field ( const DataPostprocessorInputs::Vector< dim > & inputs,
std::vector< Vector< double > > & computed_quantities ) const
inlineoverridevirtual

Compute the kinematic viscosity of a fluid at given evaluation points.

Parameters
[in]inputsFluid dynamics velocity and pressure information.
[out]computed_quantitiesComputed kinematic viscosity value at evaluation points.
Note
input_data contains both velocity and pressure data since fluid dynamics in Lethe is solved in a monolithic way, but only the velocity gradient is used to compute the kinematic viscosity when the rheological model requires it.

Definition at line 382 of file postprocessors.h.

References calculate_shear_rate_magnitude(), rheological_model, and shear_rate.

Member Data Documentation

◆ rheological_model

template<int dim>
std::shared_ptr<RheologicalModel> KinematicViscosityPostprocessor< dim >::rheological_model
private

Model describing the fluid's rheology.

Definition at line 411 of file postprocessors.h.


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