TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Faces_VDF.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 Faces_VDF_included
17#define Faces_VDF_included
18
19#include <TRUST_Ref.h>
20#include <Faces.h>
21
22class Domaine_VDF;
23class Aretes;
24
25class Faces_VDF : public Faces
26{
27 Declare_instanciable(Faces_VDF);
28
29public:
30
31 inline int orientation(int) const;
32 inline int orientation(int);
33 inline void associer(const Domaine_VDF&);
34 inline const Domaine_VDF& domaine_VDF() const;
35 void calculer_orientation(IntVect&, int&, int&, int& );
36
37private :
38
39 IntVect orientation_; // orientation des faces :
40 // 0 pour une face d'equation x = cte
41 // 1 pour une face d'equation y = cte
42 // 2 pour une face d'equation z = cte
43 OBS_PTR(Domaine_VDF) le_dom_VDF;
44
45};
46
47inline int Faces_VDF::orientation(int i) const
48{
49 return orientation_(i);
50}
51
52inline int Faces_VDF::orientation(int i)
53{
54 return orientation_(i);
55}
56
57/*! @brief se lie au domaine
58 *
59 */
60inline void Faces_VDF::associer(const Domaine_VDF& un_domaine_VDF)
61{
62 le_dom_VDF=un_domaine_VDF;
63}
64
65/*! @brief Renvoie le domaine
66 *
67 */
69{
70 return le_dom_VDF.valeur();
71}
72
73#endif
class Domaine_VDF
Definition Domaine_VDF.h:64
int orientation(int) const
Definition Faces_VDF.h:47
const Domaine_VDF & domaine_VDF() const
Renvoie le domaine.
Definition Faces_VDF.h:68
void associer(const Domaine_VDF &)
se lie au domaine
Definition Faces_VDF.h:60
void calculer_orientation(IntVect &, int &, int &, int &)
Definition Faces_VDF.cpp:38