TRUST 1.9.8
HPC thermohydraulic platform
Loading...
Searching...
No Matches
Champ_Fonc_Tabule_Morceaux.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 Champ_Fonc_Tabule_Morceaux_included
17#define Champ_Fonc_Tabule_Morceaux_included
18
19#include <TRUSTChamp_Morceaux_generique.h>
20#include <TRUST_Vector.h>
21#include <TRUST_Ref.h>
22#include <Table.h>
23
24class Champ_base;
25
26/*! @brief classe Champ_Fonc_Tabule_Morceaux Cette classe represente un champ prenant par morceaux des valuers fonctions
27 *
28 * de l'espace et d'un autre champ scalaire passe en parametre .
29 *
30 * @sa : TRUSTChamp_Morceaux_generique
31 */
32class Champ_Fonc_Tabule_Morceaux : public TRUSTChamp_Morceaux_generique<Champ_Morceaux_Type::FONC_TABULE>
33{
34 Declare_instanciable(Champ_Fonc_Tabule_Morceaux);
35public :
36 void mettre_a_jour(double temps) override;
37 int initialiser(const double temps) override;
38
39protected :
40 bool is_interp_ = false;
41 using ArrStr = std::array<std::string, 3>;
42
43 std::set<ArrStr> s_pb_ch; // couples { probleme, champ, nature } utilises par au moins un probleme
44 std::vector<std::vector<ArrStr>> m_pb_ch; //m_pb_ch[i][j] : { probleme, champ, nature } du parametre j du morceau i
45 std::vector<const Champ_base *> ch_param; /* liste de champs parametres */
46
47 /* un morceau de champ */
48 typedef struct
49 {
50 std::vector<int> i_ch; /* indices des champs parametres utilises pour ce morceau */
52 } CHTAB;
53 std::vector<CHTAB> morceaux; /* les morceaux */
54 IntVect i_mor; //i_mor[e] : morceau de l'element e
55 OWN_PTR(Champ_base) espace_stockage_;
56};
57
58#endif /* Champ_Fonc_Tabule_Morceaux_included */
classe Champ_Fonc_Tabule_Morceaux Cette classe represente un champ prenant par morceaux des valuers f...
int initialiser(const double temps) override
NE FAIT RIEN.
std::array< std::string, 3 > ArrStr
void mettre_a_jour(double temps) override
Mise a jour en temps.
std::vector< const Champ_base * > ch_param
std::vector< std::vector< ArrStr > > m_pb_ch
OWN_PTR(Champ_base) espace_stockage_
classe Champ_base Cette classe est la base de la hierarchie des champs.
Definition Champ_base.h:43
Champ_base()
Constructeur par defaut d'un Champ_base.
double temps() const
Renvoie le temps du champ.
Definition Table.h:29