|
TrioCFD 1.9.8
TrioCFD documentation
|
Evaluator computing the volumetric heat source contribution for DG element unknowns. More...
#include <Eval_Puiss_Th_DG_Elem.h>
Public Member Functions | |
| void | mettre_a_jour () override |
| void | associer_champs (const Champ_Don_base &) |
| template<typename Type_Double> | |
| void | calculer_terme_source (const int, Type_Double &) const |
| Computes the heat source projection onto the local DG basis for element e. | |
| Public Member Functions inherited from Evaluateur_Source_Elem | |
| Evaluateur_Source_Elem () | |
| Evaluateur_Source_Elem (const Evaluateur_Source_Elem &) | |
| void | completer () override |
| Public Member Functions inherited from Evaluateur_Source | |
| Evaluateur_Source () | |
| Evaluateur_Source (const Evaluateur_Source &eval) | |
| virtual | ~Evaluateur_Source () |
| template<typename Type_Double> | |
| void | calculer_terme_source (int, Type_Double &) const |
| void | associer_domaines (const Domaine_dis_base &domaine, const Domaine_Cl_dis_base &domaine_cl) |
Protected Member Functions | |
| OBS_PTR (Champ_Don_base) la_puissance | |
| Protected Member Functions inherited from Evaluateur_Source | |
| OBS_PTR (Domaine_dis_base) le_dom | |
| OBS_PTR (Domaine_Cl_dis_base) la_zcl | |
Protected Attributes | |
| DoubleTab | puissance |
| Protected Attributes inherited from Evaluateur_Source_Elem | |
| DoubleVect | volumes |
| DoubleVect | porosite_vol |
Evaluator computing the volumetric heat source contribution for DG element unknowns.
For each element e, this evaluator computes the projection of the volumetric heat power density Q onto each basis function phi_i: S(i) = integral of Q(x) * phi_i(x) dV using a fixed order-5 quadrature rule. The power field Q is expected to be pre-evaluated at the quadrature points and stored in the puissance array (shape: nb_elem x nb_pts_integ_max), as set up by associer_champs().
calculer_terme_source() is templated on Type_Double to allow both scalar and small-vector output types
Definition at line 44 of file Eval_Puiss_Th_DG_Elem.h.
| void Eval_Puiss_Th_DG_Elem::associer_champs | ( | const Champ_Don_base & | Q | ) |
Definition at line 19 of file Eval_Puiss_Th_DG_Elem.cpp.
|
inline |
Computes the heat source projection onto the local DG basis for element e.
Evaluates the integral S(fb) = integral of Q * phi_fb over element e using a fixed order-5 quadrature. The integrand at each quadrature point k is: product(k) = puissance(e, k) * fbase(fb, k) where puissance contains Q pre-sampled at quadrature points and fbase contains the basis function values from eval_bfunc().
| Type_Double | Output type (typically a fixed-size array of nb_bfunc values). |
| e | Element index. |
| S | Output array of size nb_bfunc, filled with the projected source values. |
Definition at line 72 of file Eval_Puiss_Th_DG_Elem.h.
|
inlineoverridevirtual |
Implements Evaluateur_Source.
Definition at line 47 of file Eval_Puiss_Th_DG_Elem.h.
|
protected |
|
protected |
Definition at line 55 of file Eval_Puiss_Th_DG_Elem.h.