TRUST 1.9.8
HPC thermohydraulic platform
Loading...
Searching...
No Matches
Eval_Diff_VDF_leaves.h
1/****************************************************************************
2* Copyright (c) 2025, CEA
3* All rights reserved.
4*
5* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
6* 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
7* 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
8* 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
9*
10* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
11* IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
12* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
13*
14*****************************************************************************/
15
16#ifndef Eval_Diff_VDF_leaves_included
17#define Eval_Diff_VDF_leaves_included
18
19#include <Eval_Diff_VDF_Elem_Gen.h>
20#include <Eval_Diff_VDF_Face_Gen.h>
21#include <Eval_Diff_VDF.h>
22
23/// \cond DO_NOT_DOCUMENT
24class Eval_Diff_VDF_leaves
25{};
26/// \endcond
27
28/*! @brief class Eval_Diff_VDF_Elem_Axi Evaluateur VDF pour la diffusion en coordonnees cylindriques
29 *
30 * Le champ diffuse est scalaire (Champ_P0_VDF).
31 *
32 * @sa Eval_Diff_VDF
33 */
34class Eval_Diff_VDF_Elem_Axi :public Eval_Diff_VDF_Elem_Gen<Eval_Diff_VDF_Elem_Axi>, public Eval_Diff_VDF
35{
36public:
37 static constexpr bool IS_AXI = true;
38};
39
40/*! @brief class Eval_Diff_VDF_Elem Evaluateur VDF pour la diffusion
41 *
42 * Le champ diffuse est scalaire (Champ_P0_VDF).
43 *
44 * @sa Eval_Diff_VDF
45 */
46class Eval_Diff_VDF_Elem : public Eval_Diff_VDF_Elem_Gen<Eval_Diff_VDF_Elem>, public Eval_Diff_VDF { };
47
48/*! @brief class Eval_Diff_VDF_Elem_aniso Evaluateur VDF pour la diffusion
49 *
50 * Le champ diffuse est scalaire (Champ_P0_VDF).
51 *
52 * @sa Eval_Diff_VDF
53 */
54class Eval_Diff_VDF_Elem_aniso : public Eval_Diff_VDF_Elem_Gen<Eval_Diff_VDF_Elem_aniso>, public Eval_Diff_VDF
55{
56public:
57 static constexpr bool IS_ANISO= true;
58 inline void associer(const Champ_base& diffu) override
59 {
60 // ONLY AVAILABLE FOR TRUST : conduction problem : TODO : generalize ME
61 if (diffu.le_nom() == "conductivite" && diffu.nb_comp() != Objet_U::dimension)
62 {
63 Cerr << "Error in Eval_Diff_VDF_aniso::associer (anisotropic diffusion VDF operator) !" << finl;
64 Cerr << "Ensure that the dimension of the conductivity field is equal to the dimension of the domain !" << finl;
65 Cerr << "A general conductivity tensor with non-zero cross-corellation terms is not yet supported (switch to VEF) !" << finl;
67 }
69 }
70};
71
72/*! @brief class Eval_Diff_VDF_Multi_inco_Elem_Axi Evaluateur VDF pour la diffusion en coordonnees cylindriques
73 *
74 * Le champ diffuse est scalaire (Champ_P0_VDF) avec plusieurs inconnues. Il y a une diffusivite par inconnue.
75 *
76 * @sa Eval_Diff_VDF
77 */
78class Eval_Diff_VDF_Multi_inco_Elem_Axi : public Eval_Diff_VDF_Elem_Gen<Eval_Diff_VDF_Multi_inco_Elem_Axi>, public Eval_Diff_VDF
79{
80public:
81 static constexpr bool IS_AXI = true;
82 void mettre_a_jour() override { /* do nothing */ }
83};
84
85/*! @brief class Eval_Diff_VDF_Multi_inco_Elem Evaluateur VDF pour la diffusion
86 *
87 * Le champ diffuse est scalaire (Champ_P0_VDF) avec plusieurs inconnues. Il y a une diffusivite par inconnue.
88 *
89 * @sa Eval_Diff_VDF
90 */
91class Eval_Diff_VDF_Multi_inco_Elem : public Eval_Diff_VDF_Elem_Gen<Eval_Diff_VDF_Multi_inco_Elem>, public Eval_Diff_VDF
92{
93public:
94 void mettre_a_jour() override { /* do nothing */ }
95};
96
97/*! @brief class Eval_Diff_VDF_Multi_inco_Multi_scalar_Elem Evaluateur VDF pour la diffusion matricielle
98 * // TODO FIXME
99 * Le champ diffuse est scalaire (Champ_P0_VDF) avec plusieurs inconnues. Il y a une diffusivite par inconnue.
100 *
101 * @sa Eval_Diff_VDF
102 */
103class Eval_Diff_VDF_Multi_inco_Multi_scalar_Elem :public Eval_Diff_VDF_Elem_Gen<Eval_Diff_VDF_Multi_inco_Multi_scalar_Elem>, public Eval_Diff_VDF
104{
105public:
106 static constexpr bool IS_MULTI_SCALAR_DIFF = true;
107 void mettre_a_jour() override { /* do nothing */ }
108};
109
110/*! @brief class Eval_Diff_VDF_Face Evaluateur VDF pour la diffusion
111 *
112 * Le champ diffuse est un Champ_Face_VDF
113 *
114 * @sa Eval_Diff_VDF
115 */
116class Eval_Diff_VDF_Face : public Eval_Diff_VDF_Face_Gen<Eval_Diff_VDF_Face>, public Eval_Diff_VDF { };
117
118#endif /* Eval_Diff_VDF_leaves_included */
classe Champ_base Cette classe est la base de la hierarchie des champs.
Definition Champ_base.h:43
class Eval_Diff_VDF_Elem_Axi Evaluateur VDF pour la diffusion en coordonnees cylindriques
static constexpr bool IS_AXI
class Eval_Diff_VDF_Elem_Gen Evaluateur VDF pour la diffusion : Le champ diffuse est un Champ_P0_VDF
class Eval_Diff_VDF_Elem_aniso Evaluateur VDF pour la diffusion
void associer(const Champ_base &diffu) override
static constexpr bool IS_ANISO
class Eval_Diff_VDF_Elem Evaluateur VDF pour la diffusion
class Eval_Diff_VDF_Face_Gen Evaluateur VDF pour la diffusion
class Eval_Diff_VDF_Face Evaluateur VDF pour la diffusion
class Eval_Diff_VDF_Multi_inco_Elem_Axi Evaluateur VDF pour la diffusion en coordonnees cylindriques
class Eval_Diff_VDF_Multi_inco_Elem Evaluateur VDF pour la diffusion
class Eval_Diff_VDF_Multi_inco_Multi_scalar_Elem Evaluateur VDF pour la diffusion matricielle // TODO...
virtual void associer(const Champ_base &diffu)
const Nom & le_nom() const override
Renvoie le nom du champ.
virtual int nb_comp() const
Definition Field_base.h:56
static int dimension
Definition Objet_U.h:99
static void exit(int exit_code=-1)
Routine de sortie de TRUST dans une region Kokkos.
Definition Process.cpp:455