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

#include <postprocessors.h>

Inheritance diagram for DynamicViscosityPostprocessor< dim >:
[legend]

Public Member Functions

 DynamicViscosityPostprocessor (std::shared_ptr< RheologicalModel > rheological_model, const double density_ref, 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
double density_ref

Detailed Description

template<int dim>
class DynamicViscosityPostprocessor< dim >

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

The dynamic viscosity is defined as \(\mu = \frac{\nu}{\rho_\mathrm{ref}}\) where \(\nu\) is the kinematic viscosity and \(\rho_\mathrm{ref}\) is the density of the fluid at reference state.

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

Definition at line 429 of file postprocessors.h.

Constructor & Destructor Documentation

◆ DynamicViscosityPostprocessor()

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

Constructor of the dynamic viscosity postprocessor.

Parameters
[in]rheological_modelRheological model of the fluid.
[in]density_refDensity of the fluid at reference state.
[in]fluid_idIdentifier corresponding to the fluid.

Definition at line 441 of file postprocessors.h.

References density_ref, and rheological_model.

Member Function Documentation

◆ evaluate_vector_field()

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

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

Parameters
[in]inputsFluid dynamics velocity and pressure information.
[out]computed_quantitiesComputed dynamic 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 dynamic viscosity when the rheological model requires it.

Definition at line 467 of file postprocessors.h.

References calculate_shear_rate_magnitude(), density_ref, rheological_model, and shear_rate.

Member Data Documentation

◆ density_ref

template<int dim>
double DynamicViscosityPostprocessor< dim >::density_ref
private

Density of the fluid at reference state.

Definition at line 499 of file postprocessors.h.

◆ rheological_model

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

Model describing the fluid's rheology.

Definition at line 497 of file postprocessors.h.


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