TRUST 1.9.8
HPC thermohydraulic platform
Loading...
Searching...
No Matches
Op_Grad_VDF_Face_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 Op_Grad_VDF_Face_base_included
17#define Op_Grad_VDF_Face_base_included
18
19#include <Operateur_Grad_base.h>
20#include <Domaine_VDF.h>
21#include <TRUST_Ref.h>
22
23class Domaine_Cl_VDF;
24
26{
27 Declare_base(Op_Grad_VDF_Face_base);
28public:
29 void check_multiphase_compatibility() const override { }
30 void associer(const Domaine_dis_base& , const Domaine_Cl_dis_base& , const Champ_Inc_base& ) override;
31 DoubleTab& calculer(const DoubleTab& , DoubleTab& ) const override;
32 int impr(Sortie& os) const override;
33
34 inline int has_interface_blocs() const override { return 1; }
35 inline Domaine_VDF& domaine_VDF() { return le_dom_vdf.valeur(); }
36 inline const Domaine_VDF& domaine_VDF() const { return le_dom_vdf.valeur(); }
37 inline Domaine_Cl_VDF& domaine_Cl_VDF() { return la_zcl_vdf.valeur(); }
38 inline const Domaine_Cl_VDF& domaine_Cl_VDF() const { return la_zcl_vdf.valeur(); }
39 inline int& face_voisins_(int i, int j) { return face_voisins(i,j); }
40 inline const int& face_voisins_(int i, int j) const { return face_voisins(i,j); }
41 inline double volume_entrelaces_(int i) { return volume_entrelaces(i); }
42 inline const double& volume_entrelaces_(int i) const { return volume_entrelaces(i); }
43 inline double porosite_surf_(int i) { return porosite_surf(i); }
44 inline const double& porosite_surf_(int i) const { return porosite_surf(i); }
45 inline int orientation_(int face) { return orientation(face); }
46 inline const int& orientation_(int face) const { return orientation(face); }
47 inline double xp_(int elem, int ori) { return xp(elem,ori); }
48 inline const double& xp_(int elem, int ori) const { return xp(elem,ori); }
49
50protected:
51 OBS_PTR(Domaine_VDF) le_dom_vdf;
53 IntVect orientation;
56 DoubleTab xp;
57};
58
59#endif /* Op_Grad_VDF_Face_base_included */
Classe Champ_Inc_base.
class Domaine_Cl_VDF
classe Domaine_Cl_dis_base Les objets Domaine_Cl_dis_base representent les conditions aux limites
class Domaine_VDF
Definition Domaine_VDF.h:64
classe Domaine_dis_base Cette classe est la base de la hierarchie des domaines discretisees.
OBS_PTR(Domaine_VDF) le_dom_vdf
int & face_voisins_(int i, int j)
const int & face_voisins_(int i, int j) const
double xp_(int elem, int ori)
Domaine_Cl_VDF & domaine_Cl_VDF()
const double & xp_(int elem, int ori) const
DoubleTab & calculer(const DoubleTab &, DoubleTab &) const override
const Domaine_Cl_VDF & domaine_Cl_VDF() const
const double & porosite_surf_(int i) const
void check_multiphase_compatibility() const override
const Domaine_VDF & domaine_VDF() const
int has_interface_blocs() const override
const double & volume_entrelaces_(int i) const
const int & orientation_(int face) const
void associer(const Domaine_dis_base &, const Domaine_Cl_dis_base &, const Champ_Inc_base &) override
int impr(Sortie &os) const override
DOES NOTHING - to override in derived classes.
OBS_PTR(Domaine_Cl_VDF) la_zcl_vdf
Classe Operateur_Grad_base Cette classe est la base de la hierarchie des operateurs representant.
Classe de base des flux de sortie.
Definition Sortie.h:52