TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Modif_bord_to_raccord.cpp
1/****************************************************************************
2* Copyright (c) 2026, 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 <Modif_bord_to_raccord.h>
17#include <EFichier.h>
18
19Implemente_instanciable_32_64(Modif_bord_to_raccord_32_64,"Modif_bord_to_raccord",Interprete_geometrique_base_32_64<_T_>);
20// XD modif_bord_to_raccord interprete modif_bord_to_raccord INHERITS_BRACE Keyword to convert a boundary of domain_name
21// XD_CONT domain of kind Bord to a boundary of kind Raccord (named boundary_name). It is useful when using meshes with
22// XD_CONT boundaries of kind Bord defined and to run a coupled calculation.
23// XD attr domaine ref_domaine domain REQ Name of domain
24// XD attr nom_bord chaine nom_bord REQ Name of the boundary to transform.
25
26template <typename _SIZE_>
28{
29 return Interprete::printOn(os);
30}
31
32template <typename _SIZE_>
34{
35 return Interprete::readOn(is);
36}
37
38template <typename _SIZE_>
40{
41 Nom nom_bord;
42 this->associer_domaine(is);
43 is>>nom_bord;
44 Domaine_t& dom = this->domaine();
45
46 Bord_t& bord=dom.bord(nom_bord);
47
48 Raccords_t& listrac=dom.faces_raccord();
49
50 Raccord_t racc_base;
51 racc_base.typer("Raccord_local_homogene");
52 Raccord_base_t& racc=racc_base.valeur();
53
54 // on caste en Frontiere pour pouvoir faire la copie ...
55 ref_cast(Frontiere_t,racc)=ref_cast(Frontiere_t,bord);
56 listrac.add(racc_base);
57
58 Bords_t& listbord=dom.faces_bord();
59 listbord.suppr(dom.bord(nom_bord));
61 return is;
62}
63
65#if INT_is_64_ == 2
67#endif
Bords_t & faces_bord()
Definition Domaine.h:198
Raccords_t & faces_raccord()
Definition Domaine.h:253
void fixer_premieres_faces_frontiere()
Definition Domaine.cpp:1102
Bord_t & bord(int i)
Definition Domaine.h:193
Class defining operators and methods for all reading operation in an input flow (file,...
Definition Entree.h:42
classe Interprete_geometrique_base .
class Modif_bord_to_raccord transforme un bord en raccord local homogene
Raccords_32_64< _SIZE_ > Raccords_t
Entree & interpreter_(Entree &) override
Raccord_base_32_64< _SIZE_ > Raccord_base_t
OWN_PTR(Raccord_base_32_64< _SIZE_ >) Raccord_t
Domaine_32_64< _SIZE_ > Domaine_t
Frontiere_32_64< _SIZE_ > Frontiere_t
class Nom Une chaine de caractere pour nommer les objets de TRUST
Definition Nom.h:31
friend class Entree
Definition Objet_U.h:76
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 de base des flux de sortie.
Definition Sortie.h:52