![]() |
Lethe Open-Source Library version 1.2.0
Developer Guide
|
#include <postprocessors.h>
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 |
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.
|
inline |
Constructor of the dynamic viscosity postprocessor.
| [in] | rheological_model | Rheological model of the fluid. |
| [in] | density_ref | Density of the fluid at reference state. |
| [in] | fluid_id | Identifier corresponding to the fluid. |
Definition at line 441 of file postprocessors.h.
References density_ref, and rheological_model.
|
inlineoverridevirtual |
Compute the dynamic viscosity of a fluid at given evaluation points.
| [in] | inputs | Fluid dynamics velocity and pressure information. |
| [out] | computed_quantities | Computed dynamic viscosity value at evaluation points. |
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.
|
private |
Density of the fluid at reference state.
Definition at line 499 of file postprocessors.h.
|
private |
Model describing the fluid's rheology.
Definition at line 497 of file postprocessors.h.