![]() |
Lethe Open-Source Library version 1.2.0
Developer Guide
|
#include <postprocessors.h>
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 |
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.
|
inline |
Constructor of the heat flux postprocessor.
| [in] | p_thermal_conductivity_model | Thermal conductivity model of the material |
| [in] | p_material_string | Type of material: "f" (fluid) or "s" (solid) |
| [in] | p_id | Either fluid ID or solid ID (as initialized in the physical properties). It is used to name the postprocessed variable vector. |
| [in] | p_mesh_material_id | Identifier 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_present | Boolean 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.
|
inlineprivate |
Computes local heat flux vectors.
| [in] | inputs | Temperature information. |
| [out] | computed_quantities | Computed local heat flux vectors at evaluation points. |
Definition at line 884 of file postprocessors.h.
References temperature, and thermal_conductivity_model.
|
inlineoverridevirtual |
Compute local heat fluxes from temperature gradient vector field and thermal conductivity at given evaluation points.
| [in] | inputs | Temperature information. |
| [out] | computed_quantities | Computed 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.
|
private |
Identifier corresponding to the material as identified in the mesh.
Definition at line 905 of file postprocessors.h.
|
private |
Boolean indicating if the simulation has solids.
Definition at line 907 of file postprocessors.h.
|
private |
Model describing of thermal conductivity of the material.
Definition at line 903 of file postprocessors.h.