TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Raccord_base.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 Raccord_base_included
17#define Raccord_base_included
18
19#include <Frontiere.h>
20#include <Domaine_forward.h>
21
22/*! @brief Classe Raccord_base Cette classe est simplement une frontiere, c'est la classe de base de la
23 *
24 * hierarchie des raccords. Un raccord intervient dans Trio-U lorsque
25 * l'on resoud des problemes differents sur des domaines differents
26 * mais que l'on desire les coupler. On couple alors ces problemes avec
27 * des raccords.
28 *
29 * Si les problemes sont resolus dans Trio-U les raccords sont dit
30 * locaux, si un probleme est resolu dans Trio-U et l'autre dans un
31 * autre code le raccord est dit distant.
32 * Cette distinction donne lieu a 2 classes derivees de Raccord_base:
33 * Raccord_local et Raccord_distant
34 *
35 * @sa Frontiere Raccord Raccord_distant Raccord_local
36 */
37template <typename _SIZE_>
38class Raccord_base_32_64 : public Frontiere_32_64<_SIZE_>
39{
40 Declare_base_32_64(Raccord_base_32_64);
41};
42
43using Raccord_base = Raccord_base_32_64<int>;
44using Raccord_base_64 = Raccord_base_32_64<trustIdType>;
45
46
47/*! @brief Classe Raccord_local Cette classe represente un raccord entre 2 probleme resolus par TRUST.
48 *
49 * @sa Raccord_base Raccord Raccord_distant Raccord
50 */
51template <typename _SIZE_>
53{
54 Declare_base_32_64(Raccord_local_32_64);
55};
56
57using Raccord_local = Raccord_local_32_64<int>;
58using Raccord_local_64 = Raccord_local_32_64<trustIdType>;
59
60
61/*! @brief Classe Raccord_distant Cette classe represente un raccord entre 2 problemes
62 * dont un est resolu par TRUST et l'autre par un autre code
63 *
64 * @sa Raccord_base Raccord Raccord_local
65 */
66template <typename _SIZE_>
68{
69 Declare_base_32_64(Raccord_distant_32_64);
70};
71
72using Raccord_distant = Raccord_distant_32_64<int>;
73using Raccord_distant_64 = Raccord_distant_32_64<trustIdType>;
74
75/*! @brief Classe Raccord_local_homogene Cette classe represente un Raccord_local ou les maillages de part et
76 * d'autres coincident.
77 *
78 * @sa Raccord_base Raccord Raccord_distant Raccord_local
79 */
80template <typename _SIZE_>
82{
83 Declare_instanciable_32_64(Raccord_local_homogene_32_64);
84
85public:
86 void trace_elem_distant(const DoubleTab&, DoubleTab&) const override;
87 void trace_face_distant(const DoubleTab&, DoubleTab&) const override;
88 void trace_face_distant(const DoubleVect&, DoubleVect&) const override;
89};
90
91using Raccord_local_homogene = Raccord_local_homogene_32_64<int>;
92using Raccord_local_homogene_64 = Raccord_local_homogene_32_64<trustIdType>;
93
94#endif
Classe Frontiere.
Definition Frontiere.h:32
Classe Raccord_base Cette classe est simplement une frontiere, c'est la classe de base de la.
Classe Raccord_distant Cette classe represente un raccord entre 2 problemes dont un est resolu par TR...
Classe Raccord_local Cette classe represente un raccord entre 2 probleme resolus par TRUST.
Classe Raccord_local_homogene Cette classe represente un Raccord_local ou les maillages de part et d'...
void trace_face_distant(const DoubleTab &, DoubleTab &) const override
void trace_elem_distant(const DoubleTab &, DoubleTab &) const override
void trace_face_distant(const DoubleVect &, DoubleVect &) const override