TRUST 1.9.8
HPC thermohydraulic platform
Loading...
Searching...
No Matches
Raccord_distant_homogene.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#ifndef Raccord_distant_homogene_included
16#define Raccord_distant_homogene_included
17
18#include <Raccord_base.h>
20
21template <typename _SIZE_>
23{
24
25 Declare_instanciable_32_64(Raccord_distant_homogene_32_64);
26
27public:
29
30 inline IntTab& Tab_Envoi() { return tab_envoi; }
31 inline const IntTab& Tab_Envoi() const { return tab_envoi; }
32 inline ArrOfInt& Tab_Recep() { return tab_recep; }
33 inline const ArrOfInt& Tab_Recep() const { return tab_recep; }
34
35 inline Nom& nom_frontiere_voisine() { return nom_frontiere_voisine_; }
36
37 inline int& est_initialise() { return est_initialise_; }
38 inline const int& est_initialise() const { return est_initialise_; }
39
40 inline double& e() { return e_; }
41 inline const double& e() const { return e_; }
42
43 void trace_elem_distant(const DoubleTab&, DoubleTab&) const override;
44 void trace_face_distant(const DoubleTab&, DoubleTab&) const override;
45 void trace_face_distant(const DoubleVect&, DoubleVect&) const override;
46
47 void completer();
49
50private :
51
52 IntTab tab_envoi;
53 ArrOfInt tab_recep;
54 Nom nom_frontiere_voisine_;
55 int est_initialise_ = 0;
56 double e_ = 0.0;
57 // Tableaux de travail:
58 ArrOfInt send_pe_list_;
59 ArrOfInt recv_pe_list_;
60};
61
62
63using Raccord_distant_homogene = Raccord_distant_homogene_32_64<int>;
64using Raccord_distant_homogene_64 = Raccord_distant_homogene_32_64<trustIdType>;
65
66#endif
classe Domaine_dis_base Cette classe est la base de la hierarchie des domaines discretisees.
Classe Frontiere.
Definition Frontiere.h:32
class Nom Une chaine de caractere pour nommer les objets de TRUST
Definition Nom.h:31
Classe Raccord_distant Cette classe represente un raccord entre 2 problemes dont un est resolu par TR...
void trace_face_distant(const DoubleTab &, DoubleTab &) const override
void initialise(const Frontiere_t &, const Domaine_dis_base &, const Domaine_dis_base &)
void trace_elem_distant(const DoubleTab &, DoubleTab &) const override
void trace_face_distant(const DoubleVect &, DoubleVect &) const override
Frontiere_32_64< _SIZE_ > Frontiere_t