TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Sous_domaine_dis_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 Sous_domaine_dis_base_included
17#define Sous_domaine_dis_base_included
18
19#include <Domaine_forward.h>
20#include <TRUST_Vector.h>
21#include <TRUST_Deriv.h>
22#include <TRUST_Ref.h>
23
25
26/*! @brief Cette classe est a la base de la hierarchie des sous-domaines discretises.
27 * Au moment de la discretisation du domaine, de meme qu'un
28 * Domaine_dis est creee pour chaque domaine, un Sous_domaine_dis_base est
29 * cree pour chaque Sous_Domaine et discretise.
30 *
31 * Les classes qui heritent de Sous_domaine_dis_base doivent surcharger la methode discretiser();
32 *
33 * L Sous_Domaine definit un sous-ensemble des elements du Domaine.
34 * De meme, le Sous_domaine_dis_base definit un sous_ensemble des attributs
35 * du Domaine_dis, en particulier des faces.
36 *
37 * @sa Domaine_dis, Sous_Domaine, Domaine_dis_base, Sous_Domaine_VF
38*/
40{
41 Declare_base(Sous_domaine_dis_base);
42
43public:
44 void associer_sous_domaine(const Sous_Domaine&);
46
47 // Methodes d'acces aux REFs
48 const Sous_Domaine& sous_domaine() const;
49 Sous_Domaine& sous_domaine();
50 const Domaine_dis_base& domaine_dis() const;
52
53 // Methodes propres :
54 virtual void discretiser() = 0;
55
56protected:
57 OBS_PTR(Sous_Domaine) le_sous_domaine;
59};
60
61#endif /* Sous_domaine_dis_base_included */
classe Domaine_dis_base Cette classe est la base de la hierarchie des domaines discretisees.
Objet_U()
Constructeur par defaut : attribue un numero d'identifiant unique a l'objet (object_id_),...
Definition Objet_U.cpp:55
Cette classe est a la base de la hierarchie des sous-domaines discretises. Au moment de la discretisa...
const Domaine_dis_base & domaine_dis() const
void associer_sous_domaine(const Sous_Domaine &)
Associe un Sous_Domaine a l'objet.
void associer_domaine_dis(const Domaine_dis_base &)
Associe un Domaine_dis a l'objet.
OBS_PTR(Sous_Domaine) le_sous_domaine
virtual void discretiser()=0
OBS_PTR(Domaine_dis_base) le_dom_dis
const Sous_Domaine & sous_domaine() const