TRUST 1.9.8
HPC thermohydraulic platform
Loading...
Searching...
No Matches
Op_Diff_VDF_Elem_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 Op_Diff_VDF_Elem_leaves_included
17#define Op_Diff_VDF_Elem_leaves_included
18
19#include <Op_Diff_VDF_Elem_base.h>
20#include <Eval_Diff_VDF_leaves.h>
21#include <Iterateur_VDF_Elem.h>
22#include <Op_Diff_Dift_VDF.h>
23
24/// \cond DO_NOT_DOCUMENT
25class Op_Diff_VDF_Elem_leaves
26{ };
27/// \endcond
28
29/*! @brief Represents the diffusion operator with VDF discretization for scalar fields.
30 *
31 * The diffusivity field is non-uniform. The associated iterator is of type `Iterateur_VDF_Elem`,
32 * and the associated evaluator is of type `Eval_Diff_VDF_Elem`.
33 */
34class Op_Diff_VDF_Elem : public Op_Diff_VDF_Elem_base, public Op_Diff_Dift_VDF<Op_Diff_VDF_Elem>
35{
36 Declare_instanciable_sans_constructeur(Op_Diff_VDF_Elem);
37public:
39 inline Op_Diff_VDF_Elem(const Iterateur_VDF_base& iterateur) : Op_Diff_VDF_Elem_base(iterateur) { } // pour FT
42 inline const Champ_base& diffusivite() const override { return diffusivite_impl<Eval_Diff_VDF_Elem>(); }
43 inline void completer() override
44 {
47 }
48};
49
50/*! @brief Represents the diffusion operator with VDF discretization for scalar fields in axisymmetric coordinates.
51 *
52 * The diffusivity field is non-uniform. The associated iterator is of type `Iterateur_VDF_Elem`,
53 * and the associated evaluator is of type `Eval_Diff_VDF_Elem_Axi`.
54 */
55class Op_Diff_VDF_Elem_Axi : public Op_Diff_VDF_Elem_base, public Op_Diff_Dift_VDF<Op_Diff_VDF_Elem_Axi>
56{
57 Declare_instanciable_sans_constructeur(Op_Diff_VDF_Elem_Axi);
58public:
60 inline Op_Diff_VDF_Elem_Axi(const Iterateur_VDF_base& iterateur) : Op_Diff_VDF_Elem_base(iterateur) { } // pour FT
63 inline const Champ_base& diffusivite() const override { return diffusivite_impl<Eval_Diff_VDF_Elem_Axi>(); }
64 inline void completer() override
65 {
68 }
69};
70
71/*! @brief Represents the anisotropic diffusion operator with VDF discretization for scalar fields.
72 *
73 * The diffusivity field varies with direction. The associated iterator is of type `Iterateur_VDF_Elem`,
74 * and the associated evaluator is of type `Eval_Diff_VDF_Elem_aniso`.
75 */
76class Op_Diff_VDF_Elem_aniso : public Op_Diff_VDF_Elem_base, public Op_Diff_Dift_VDF<Op_Diff_VDF_Elem_aniso>
77{
78 Declare_instanciable_sans_constructeur(Op_Diff_VDF_Elem_aniso);
79public:
81 inline Op_Diff_VDF_Elem_aniso(const Iterateur_VDF_base& iterateur) : Op_Diff_VDF_Elem_base(iterateur) { } // pour FT
84 inline const Champ_base& diffusivite() const override { return diffusivite_impl<Eval_Diff_VDF_Elem_aniso>(); }
85 inline void completer() override
86 {
89 }
90};
91
92/*! @brief Represents the diffusion operator for a multi-component field with VDF discretization.
93 *
94 * The diffusivity field is non-uniform. The associated iterator is of type `Iterateur_VDF_Elem`,
95 * and the associated evaluator is of type `Eval_Diff_VDF_Multi_inco_Elem`.
96 */
97class Op_Diff_VDF_Multi_inco_Elem : public Op_Diff_VDF_Elem_base, public Op_Diff_Dift_VDF<Op_Diff_VDF_Multi_inco_Elem>
98{
99 Declare_instanciable_sans_constructeur(Op_Diff_VDF_Multi_inco_Elem);
100public:
102 inline Op_Diff_VDF_Multi_inco_Elem(const Iterateur_VDF_base& iterateur) : Op_Diff_VDF_Elem_base(iterateur) { } // pour FT
105 inline const Champ_base& diffusivite() const override { return diffusivite_impl<Eval_Diff_VDF_Multi_inco_Elem>(); }
106 inline void completer() override
107 {
110 }
111};
112
113/*! @brief Represents the diffusion operator for a multi-component field with matrix diffusivity using VDF discretization.
114 *
115 * The diffusivity field is a NxN matrix, where N is the number of components. The associated iterator is of type `Iterateur_VDF_Elem`,
116 * and the associated evaluator is of type `Eval_Diff_VDF_Multi_inco_Multi_scalar_Elem`.
117 */
133
134/*! @brief Represents the diffusion operator for a multi-component field in axisymmetric coordinates with VDF discretization.
135 *
136 * The diffusivity field is non-uniform. The associated iterator is of type `Iterateur_VDF_Elem`,
137 * and the associated evaluator is of type `Eval_Diff_VDF_Multi_inco_Elem_Axi`.
138 */
139class Op_Diff_VDF_Multi_inco_Elem_Axi : public Op_Diff_VDF_Elem_base, public Op_Diff_Dift_VDF<Op_Diff_VDF_Multi_inco_Elem_Axi>
140{
141 Declare_instanciable_sans_constructeur(Op_Diff_VDF_Multi_inco_Elem_Axi);
142public:
144 inline Op_Diff_VDF_Multi_inco_Elem_Axi(const Iterateur_VDF_base& iterateur) : Op_Diff_VDF_Elem_base(iterateur) { } // pour FT
148 inline void completer() override
149 {
152 }
153};
154
155#endif /* Op_Diff_VDF_Elem_leaves_included */
Classe Champ_Inc_base.
classe Champ_base Cette classe est la base de la hierarchie des champs.
Definition Champ_base.h:43
classe Domaine_Cl_dis_base Les objets Domaine_Cl_dis_base representent les conditions aux limites
classe Domaine_dis_base Cette classe est la base de la hierarchie des domaines discretisees.
const Equation_base & equation() const
Renvoie la reference sur l'equation pointe par MorEqn::mon_equation.
Definition MorEqn.h:62
void associer_diffusivite_impl(const Champ_base &ch_diff)
std::enable_if_t< _TYPE_==Type_Operateur::Op_DIFF_ELEM||_TYPE_==Type_Operateur::Op_DIFT_ELEM||_TYPE_==Type_Operateur::Op_DIFT_MULTIPHASE_ELEM, void > associer_impl(const Domaine_dis_base &domaine_dis, const Domaine_Cl_dis_base &domaine_cl_dis, const Champ_Inc_base &ch_diffuse)
const Champ_base & diffusivite_impl() const
void associer_pb(const Probleme_base &pb)
void associer_diffusivite(const Champ_base &ch) override
void associer(const Domaine_dis_base &zd, const Domaine_Cl_dis_base &zcd, const Champ_Inc_base &ch) override
const Champ_base & diffusivite() const override
Op_Diff_VDF_Elem_Axi(const Iterateur_VDF_base &iterateur)
void completer() override
Associe l'operateur au domaine_dis, le domaine_Cl_dis, et a l'inconnue de son equation.
void associer(const Domaine_dis_base &zd, const Domaine_Cl_dis_base &zcd, const Champ_Inc_base &ch) override
void completer() override
Associe l'operateur au domaine_dis, le domaine_Cl_dis, et a l'inconnue de son equation.
const Champ_base & diffusivite() const override
Op_Diff_VDF_Elem_aniso(const Iterateur_VDF_base &iterateur)
void associer_diffusivite(const Champ_base &ch) override
Op_Diff_VDF_Elem_base(const Iterateur_VDF_base &iterateur)
const Champ_base & diffusivite() const override
void associer(const Domaine_dis_base &zd, const Domaine_Cl_dis_base &zcd, const Champ_Inc_base &ch) override
Op_Diff_VDF_Elem(const Iterateur_VDF_base &iterateur)
void completer() override
Associe l'operateur au domaine_dis, le domaine_Cl_dis, et a l'inconnue de son equation.
void associer_diffusivite(const Champ_base &ch) override
const Champ_base & diffusivite() const override
void associer(const Domaine_dis_base &zd, const Domaine_Cl_dis_base &zcd, const Champ_Inc_base &ch) override
void associer_diffusivite(const Champ_base &ch) override
void completer() override
Associe l'operateur au domaine_dis, le domaine_Cl_dis, et a l'inconnue de son equation.
Op_Diff_VDF_Multi_inco_Elem_Axi(const Iterateur_VDF_base &iterateur)
void associer(const Domaine_dis_base &zd, const Domaine_Cl_dis_base &zcd, const Champ_Inc_base &ch) override
const Champ_base & diffusivite() const override
void associer_diffusivite(const Champ_base &ch) override
Op_Diff_VDF_Multi_inco_Elem(const Iterateur_VDF_base &iterateur)
void completer() override
Associe l'operateur au domaine_dis, le domaine_Cl_dis, et a l'inconnue de son equation.
void associer_diffusivite(const Champ_base &ch) override
Op_Diff_VDF_Multi_inco_Multi_scalar_Elem(const Iterateur_VDF_base &iterateur)
void completer() override
Associe l'operateur au domaine_dis, le domaine_Cl_dis, et a l'inconnue de son equation.
void associer(const Domaine_dis_base &zd, const Domaine_Cl_dis_base &zcd, const Champ_Inc_base &ch) override
const Champ_base & diffusivite() const override
virtual void completer()
Associe l'operateur au domaine_dis, le domaine_Cl_dis, et a l'inconnue de son equation.