TRUST 1.9.8
HPC thermohydraulic platform
Loading...
Searching...
No Matches
Raccord_base.cpp
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#include <Raccord_base.h>
17
18Implemente_base_32_64(Raccord_base_32_64,"Raccord_base",Frontiere_32_64<_T_>);
19Implemente_base_32_64(Raccord_local_32_64,"Raccord_local",Raccord_base_32_64<_T_>);
20Implemente_base_32_64(Raccord_distant_32_64,"Raccord_distant",Raccord_base_32_64<_T_>);
21Implemente_instanciable_32_64(Raccord_local_homogene_32_64,"Raccord_local_homogene",Raccord_local_32_64<_T_>);
22
23// XD raccord bord_base raccord NO_BRACE The block side is in contact with the block of another domain (case of two
24// XD_CONT coupled problems).
25// XD attr type1 chaine(into=["local","distant"]) type1 REQ Contact type.
26// XD attr type2 chaine(into=["homogene"]) type2 REQ Contact type.
27// XD attr nom chaine nom REQ Name of block side.
28// XD attr defbord defbord defbord REQ Definition of block side.
29
30template <typename _SIZE_>
32{
34}
35
36template <typename _SIZE_>
38{
40}
41
42template <typename _SIZE_>
44{
46}
47
48template <typename _SIZE_>
50{
52}
53
54template <typename _SIZE_>
56{
58}
59
60template <typename _SIZE_>
62{
64}
65
66template <typename _SIZE_>
68{
70}
71
72template <typename _SIZE_>
74{
76}
77
78template <>
79void Raccord_local_homogene_32_64<int>::trace_elem_distant(const DoubleTab& x, DoubleTab& y) const
80{
81 // en suppposant les numerotations des faces identiques sur le raccord des deux cotes
82 return this->trace_elem_local(x,y);
83}
84
85template <>
86void Raccord_local_homogene_32_64<int>::trace_face_distant(const DoubleTab& x, DoubleTab& y) const
87{
88 return this->trace_face_local(x,y);
89}
90
91template <>
92void Raccord_local_homogene_32_64<int>::trace_face_distant(const DoubleVect& x, DoubleVect& y) const
93{
94 return this->trace_face_local(x,y);
95}
96
97// 64 bit versions should never be called:
98
99template <typename _SIZE_>
100void Raccord_local_homogene_32_64<_SIZE_>::trace_elem_distant(const DoubleTab& x, DoubleTab& y) const
101{
102 assert(false);
103 throw;
104}
105
106template <typename _SIZE_>
107void Raccord_local_homogene_32_64<_SIZE_>::trace_face_distant(const DoubleTab& x, DoubleTab& y) const
108{
109 assert(false);
110 throw;
111}
112
113template <typename _SIZE_>
114void Raccord_local_homogene_32_64<_SIZE_>::trace_face_distant(const DoubleVect& x, DoubleVect& y) const
115{
116 assert(false);
117 throw;
118}
119
120template class Raccord_base_32_64<int>;
121#if INT_is_64_ == 2
123#endif
124
125template class Raccord_local_32_64<int>;
126#if INT_is_64_ == 2
128#endif
129
131#if INT_is_64_ == 2
133#endif
134
135template class Raccord_distant_32_64<int>;
136#if INT_is_64_ == 2
138#endif
Class defining operators and methods for all reading operation in an input flow (file,...
Definition Entree.h:42
Classe Frontiere.
Definition Frontiere.h:32
virtual void trace_face_local(const DoubleTab &, DoubleTab &) const
virtual void trace_elem_local(const DoubleTab &, DoubleTab &) const
virtual Entree & readOn(Entree &)
Lecture d'un Objet_U sur un flot d'entree Methode a surcharger.
Definition Objet_U.cpp:293
virtual Sortie & printOn(Sortie &) const
Ecriture de l'objet sur un flot de sortie Methode a surcharger.
Definition Objet_U.cpp:282
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
Classe de base des flux de sortie.
Definition Sortie.h:52