TRUST 1.9.8
HPC thermohydraulic platform
Loading...
Searching...
No Matches
Operateur_negligeable.h
1/****************************************************************************
2* Copyright (c) 2024, 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 Operateur_negligeable_included
17#define Operateur_negligeable_included
18
19#include <TRUSTTab.h>
20
23class Champ_Inc_base;
24
25/*! @brief Classe Opnegligeable Cette classe definit l'interface d'un operateur negligeable
26 *
27 * en definissant des methodes ajouter,calculer et mettre_a_jour
28 * qui ne font aucun calcul.
29 * Cette classe est utilisee lors de la definition d'operateurs
30 * negligeable par heritage multiple.
31 *
32 * @sa Op_Diff_negligeable Op_Diff_K_Eps_negligeable Op_Conv_negligeable, Classe interface, hors hierarchie operateurs TrioU., Doit faire partie d'un heritage multiple pour etre, utile a la definition d'un operateur negligeable instanciable.
33 */
35{
36public :
37
38 inline DoubleTab& ajouter(const DoubleTab&, DoubleTab& ) const;
39 inline DoubleTab& calculer(const DoubleTab&, DoubleTab& ) const;
40 inline void mettre_a_jour(double );
41
42protected :
43 inline void associer(const Domaine_dis_base&, const Domaine_Cl_dis_base&, const Champ_Inc_base&);
44};
45
46
47
48/*! @brief Ajout de la contribution d'un operateur negligeable a un tableau.
49 *
50 * NE FAIT RIEN, renvoie le parametre tableau sans le modifie.
51 *
52 * @param (DoubleTab&) le tableau sur lequel on applique l'operateur
53 * @param (DoubleTab& x)
54 * @return (DoubleTab&) le parametre d'entree x non modifie
55 */
56inline DoubleTab& Operateur_negligeable::ajouter(const DoubleTab&, DoubleTab& x) const
57{
58 return x;
59}
60
61
62/*! @brief Initialise le parametre tableau avec la contribution de l'operateur negligeable: initialise le tableau a ZERO.
63 *
64 * @param (DoubleTab&) le tableau sur lequel on applique l'operateur
65 * @param (DoubleTab& x)
66 * @return (DoubleTab&) le tableau d'entree mis a zero
67 */
68inline DoubleTab& Operateur_negligeable::calculer(const DoubleTab&,
69 DoubleTab& x) const
70{
71 return x=0.0;
72}
73
74
75/*! @brief Mise a jour en temps d'un operateur negligeable: NE FAIT RIEN
76 *
77 * @param (double)
78 */
80{
81}
82
83
84/*! @brief Associe divers objets a un operateurs negligeable: NE FAIT RIEN
85 *
86 * @param (Domaine_dis_base&)
87 * @param (Domaine_Cl_dis_base&)
88 * @param (Champ_Inc_base&)
89 */
93#endif
Classe Champ_Inc_base.
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.
Classe Opnegligeable Cette classe definit l'interface d'un operateur negligeable.
DoubleTab & calculer(const DoubleTab &, DoubleTab &) const
Initialise le parametre tableau avec la contribution de l'operateur negligeable: initialise le tablea...
void mettre_a_jour(double)
Mise a jour en temps d'un operateur negligeable: NE FAIT RIEN.
void associer(const Domaine_dis_base &, const Domaine_Cl_dis_base &, const Champ_Inc_base &)
Associe divers objets a un operateurs negligeable: NE FAIT RIEN.
DoubleTab & ajouter(const DoubleTab &, DoubleTab &) const
Ajout de la contribution d'un operateur negligeable a un tableau.