TrioCFD 1.9.9_beta
TrioCFD documentation
Loading...
Searching...
No Matches
Domaine_bord.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 Domaine_bord_included
16#define Domaine_bord_included
17#include <Domaine.h>
18
19/*! @brief This class is a domain whose vertices and elements are extracted from a boundary of a source domain.
20 *
21 * This domain is built using the construire_domaine_bord() method.
22 *
23 */
24template <typename _SIZE_>
25class Domaine_bord_32_64 : public Domaine_32_64<_SIZE_>
26{
27 Declare_instanciable_32_64(Domaine_bord_32_64);
28public:
29 using int_t = _SIZE_;
30 using ArrOfInt_t = ArrOfInt_T<_SIZE_>;
31 using IntTab_t = IntTab_T<_SIZE_>;
32 using DoubleTab_t = DoubleTab_T<_SIZE_>;
33
36
37 virtual void construire_domaine_bord(const Domaine_t& source, const Nom& nom_bord);
38 virtual const Domaine_t& get_domaine_source() const;
39 virtual const Nom& get_nom_bord_source() const;
40 virtual const ArrOfInt_t& get_renum_som() const;
41
42 static void extraire_domaine_bord(const Domaine_t& src,
43 const Nom& nom_bord,
44 Domaine_t& dest,
45 ArrOfInt_t& renum_som);
46protected:
47 // Reference to the source domain:
48 OBS_PTR(Domaine_t) domaine_source_;
49 // Name of the boundary in the source domain:
51 // For each vertex of this domain, index of the same vertex in the source domain:
53};
54
55using Domaine_bord = Domaine_bord_32_64<int>;
56using Domaine_bord_64 = Domaine_bord_32_64<trustIdType>;
57
58#endif
This class is a domain whose vertices and elements are extracted from a boundary of a source domain.
virtual void construire_domaine_bord(const Domaine_t &source, const Nom &nom_bord)
builds the domain by calling extraire_domaine_bord()
virtual const Domaine_t & get_domaine_source() const
returns a reference to the source domain
Frontiere_32_64< _SIZE_ > Frontiere_t
virtual const Nom & get_nom_bord_source() const
returns the name of the source boundary
static void extraire_domaine_bord(const Domaine_t &src, const Nom &nom_bord, Domaine_t &dest, ArrOfInt_t &renum_som)
fills the domain "dest" with the vertices and faces of the boundary "nom_bord" of the domain "src".
virtual const ArrOfInt_t & get_renum_som() const
returns renum_som (for each vertex of domaine_bord, index of the same vertex in the domain)
DoubleTab_T< _SIZE_ > DoubleTab_t
Domaine_32_64< _SIZE_ > Domaine_t
IntTab_T< _SIZE_ > IntTab_t
ArrOfInt_T< _SIZE_ > ArrOfInt_t
OBS_PTR(Domaine_t) domaine_source_
Class Frontiere.
Definition Frontiere.h:32
class Nom: a character string for naming TRUST objects.
Definition Nom.h:31