TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Evaluateur_VDF.h
1/****************************************************************************
2* Copyright (c) 2025, 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 Evaluateur_VDF_included
17#define Evaluateur_VDF_included
18
19#include <Domaine_VDF.h>
20#include <TRUST_Ref.h>
21#include <TRUSTTab.h>
22
23class Domaine_Cl_VDF;
24
25/*! @brief class Evaluateur_VDF Classe de base des evaluateurs VDF.
26 *
27 * Cette classe n'appartient pas a la hierarchie des Objet_U.
28 * Cette classe porte une reference a un objet de type Domaine_VDF et une reference a un objet de type Domaine_Cl_VDF. Elle porte des tableaux locaux
29 * qui sont en fait des references aux tableaux de l'objet de type Domaine_VDF (ces tableaux locaux n'existent pas en memoire).
30 *
31 */
32
34{
35public:
37 virtual ~Evaluateur_VDF() {}
39 virtual void associer_domaines(const Domaine_VDF& , const Domaine_Cl_VDF& );
40 virtual void associer_porosite(const DoubleVect&);
41
42 inline double dist_face_period(int fac1, int fac2, int k) const { return le_dom->dist_face_period(fac1,fac2,k); }
43 inline double dist_face(int fac1, int fac2, int k) const
44 {
45 return xv(fac2,k) - xv(fac1,k);
46 //return le_dom->dist_face(fac1, fac2, k);
47 }
48
49protected:
52 int dimension = -100, premiere_face_bord = -100;
53 IntTab elem_; // les 2 elements voisins d'une face
54 DoubleVect surface; // surfaces des faces
55 IntVect orientation; // orientations des faces
56 DoubleVect porosite; // porosites surfaciques
57 DoubleVect volume_entrelaces;//
58 DoubleTab xv; // coord des centres des faces
59 double dist_norm_bord(int) const;
60};
61
62#endif /* Evaluateur_VDF_included */
class Domaine_Cl_VDF
class Domaine_VDF
Definition Domaine_VDF.h:64
class Evaluateur_VDF Classe de base des evaluateurs VDF.
virtual ~Evaluateur_VDF()
DoubleVect porosite
virtual void associer_porosite(const DoubleVect &)
double dist_norm_bord(int) const
double dist_face(int fac1, int fac2, int k) const
virtual void associer_domaines(const Domaine_VDF &, const Domaine_Cl_VDF &)
DoubleVect volume_entrelaces
OBS_PTR(Domaine_Cl_VDF) la_zcl
DoubleVect surface
double dist_face_period(int fac1, int fac2, int k) const
OBS_PTR(Domaine_VDF) le_dom