TrioCFD 1.9.9_beta
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 Class Raccord_base This class is simply a boundary; it is the base class of the
23 *
24 * connector hierarchy. A connector is used in TRUST when
25 * different problems are solved on different domains
26 * and one wishes to couple them. Problems are then coupled using
27 * connectors.
28 *
29 * If the problems are solved within TRUST the connectors are called
30 * local; if one problem is solved in TRUST and the other in an
31 * external code, the connector is called distant.
32 * This distinction gives rise to 2 subclasses of Raccord_base:
33 * Raccord_local and 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 Class Raccord_local This class represents a connector between 2 problems solved by 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 Class Raccord_distant This class represents a connector between 2 problems
62 * where one is solved by TRUST and the other by an external 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 Class Raccord_local_homogene This class represents a Raccord_local where the meshes on both sides coincide.
76 *
77 * @sa Raccord_base Raccord Raccord_distant Raccord_local
78 */
79template <typename _SIZE_>
81{
82 Declare_instanciable_32_64(Raccord_local_homogene_32_64);
83
84public:
85 void trace_elem_distant(const DoubleTab&, DoubleTab&) const override;
86 void trace_face_distant(const DoubleTab&, DoubleTab&) const override;
87 void trace_face_distant(const DoubleVect&, DoubleVect&) const override;
88};
89
90using Raccord_local_homogene = Raccord_local_homogene_32_64<int>;
91using Raccord_local_homogene_64 = Raccord_local_homogene_32_64<trustIdType>;
92
93#endif
Class Frontiere.
Definition Frontiere.h:32
Class Raccord_base This class is simply a boundary; it is the base class of the.
Class Raccord_distant This class represents a connector between 2 problems where one is solved by TRU...
Class Raccord_local This class represents a connector between 2 problems solved by TRUST.
Class Raccord_local_homogene This class represents a Raccord_local where the meshes on both sides coi...
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