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

#include <postprocessors.h>

Inheritance diagram for HeatFluxPostprocessor< dim >:
[legend]

Public Member Functions

 HeatFluxPostprocessor (const std::shared_ptr< ThermalConductivityModel > &p_thermal_conductivity_model, const std::string &p_material_string="f", const unsigned int &p_id=0, const unsigned int &p_mesh_material_id=0, const bool &p_solid_phase_present=false)
virtual void evaluate_scalar_field (const DataPostprocessorInputs::Scalar< dim > &inputs, std::vector< Vector< double > > &computed_quantities) const override

Private Member Functions

void compute_quantities (const DataPostprocessorInputs::Scalar< dim > &inputs, std::vector< Vector< double > > &computed_quantities) const

Private Attributes

std::shared_ptr< ThermalConductivityModel > thermal_conductivity_model
const unsigned int mesh_material_id
const bool solid_phase_present

Detailed Description

template<int dim>
class HeatFluxPostprocessor< dim >

Compute the local heat flux vector field within a domain.

The local heat flux is defined as \(\mathbf{q} = -k \nabla T\) where \(k\) is the thermal conductivity of the material and \(\nabla T\) the temperature gradient.

Definition at line 790 of file postprocessors.h.

Constructor & Destructor Documentation

◆ HeatFluxPostprocessor()

template<int dim>
HeatFluxPostprocessor< dim >::HeatFluxPostprocessor ( const std::shared_ptr< ThermalConductivityModel > & p_thermal_conductivity_model,
const std::string & p_material_string = "f",
const unsigned int & p_id = 0,
const unsigned int & p_mesh_material_id = 0,
const bool & p_solid_phase_present = false )
inline

Constructor of the heat flux postprocessor.

Parameters
[in]p_thermal_conductivity_modelThermal conductivity model of the material
[in]p_material_stringType of material: "f" (fluid) or "s" (solid)
[in]p_idEither fluid ID or solid ID (as initialized in the physical properties). It is used to name the postprocessed variable vector.
[in]p_mesh_material_idIdentifier corresponding to the material as identified in the mesh. By convention, fluids are given the material_id 0 and solids follow with ids 1, 2, etc. This is used to identify which cell lies in which material.
[in]p_solid_phase_presentBoolean indicating if the simulation has solids. If there is no solid, the material_id of cells is not checked.

Definition at line 812 of file postprocessors.h.

References mesh_material_id, solid_phase_present, and thermal_conductivity_model.

Member Function Documentation

◆ compute_quantities()

template<int dim>
void HeatFluxPostprocessor< dim >::compute_quantities ( const DataPostprocessorInputs::Scalar< dim > & inputs,
std::vector< Vector< double > > & computed_quantities ) const
inlineprivate

Computes local heat flux vectors.

Note
The function is used to improve readability of the HeatFluxPostprocessor::evaluate_scalar_field function and avoid repeated lines.
Parameters
[in]inputsTemperature information.
[out]computed_quantitiesComputed local heat flux vectors at evaluation points.

Definition at line 884 of file postprocessors.h.

References temperature, and thermal_conductivity_model.

◆ evaluate_scalar_field()

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

Compute local heat fluxes from temperature gradient vector field and thermal conductivity at given evaluation points.

Parameters
[in]inputsTemperature information.
[out]computed_quantitiesComputed local heat flux vectors at evaluation points.

Definition at line 836 of file postprocessors.h.

References compute_quantities(), mesh_material_id, and solid_phase_present.

Member Data Documentation

◆ mesh_material_id

template<int dim>
const unsigned int HeatFluxPostprocessor< dim >::mesh_material_id
private

Identifier corresponding to the material as identified in the mesh.

Definition at line 905 of file postprocessors.h.

◆ solid_phase_present

template<int dim>
const bool HeatFluxPostprocessor< dim >::solid_phase_present
private

Boolean indicating if the simulation has solids.

Definition at line 907 of file postprocessors.h.

◆ thermal_conductivity_model

template<int dim>
std::shared_ptr<ThermalConductivityModel> HeatFluxPostprocessor< dim >::thermal_conductivity_model
private

Model describing of thermal conductivity of the material.

Definition at line 903 of file postprocessors.h.


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