TrioCFD 1.9.9_beta
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 This class is at the base of the discretized sub-domain hierarchy.
27 * At the time of domain discretization, just as a
28 * Domaine_dis is created for each domain, a Sous_domaine_dis_base is
29 * created for each Sous_Domaine and discretized.
30 *
31 * Classes inheriting from Sous_domaine_dis_base must override the discretiser() method;
32 *
33 * The Sous_Domaine defines a subset of the elements of the Domaine.
34 * Similarly, the Sous_domaine_dis_base defines a subset of the attributes
35 * of Domaine_dis, in particular of 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 // REF accessor methods
48 const Sous_Domaine& sous_domaine() const;
49 Sous_Domaine& sous_domaine();
50 const Domaine_dis_base& domaine_dis() const;
52
53 // Specific methods:
54 virtual void discretiser() = 0;
55
56protected:
57 OBS_PTR(Sous_Domaine) le_sous_domaine;
59};
60
61#endif /* Sous_domaine_dis_base_included */
class Domaine_dis_base This class is the base of the hierarchy of discretized domains.
Objet_U()
Default constructor: assigns a unique identifier to the object (object_id_) and registers the object ...
Definition Objet_U.cpp:54
This class is at the base of the discretized sub-domain hierarchy. At the time of domain discretizati...
const Domaine_dis_base & domaine_dis() const
void associer_sous_domaine(const Sous_Domaine &)
Associates a Sub_Domain with the object.
void associer_domaine_dis(const Domaine_dis_base &)
Associates a Domaine_dis with the object.
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