TRUST 1.9.8
HPC thermohydraulic platform
Loading...
Searching...
No Matches
Evaluateur_VDF.cpp
1/****************************************************************************
2* Copyright (c) 2023, 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#include <Evaluateur_VDF.h>
17#include <Equation_base.h>
18#include <Milieu_base.h>
19#include <Domaine_Cl_VDF.h>
20
21Evaluateur_VDF::Evaluateur_VDF(const Evaluateur_VDF& eval) : le_dom(eval.le_dom), la_zcl(eval.la_zcl), dimension(eval.dimension),
23{
24 surface.ref(eval.surface);
25 orientation.ref(eval.orientation);
26 elem_.ref(eval.elem_);
27 porosite.ref(eval.porosite);
29 xv.ref(eval.xv);
30}
31
32void Evaluateur_VDF::associer_domaines(const Domaine_VDF& domaine_vdf, const Domaine_Cl_VDF& domaine_cl_vdf)
33{
34 le_dom = domaine_vdf;
35 la_zcl = domaine_cl_vdf;
38 surface.ref(domaine_vdf.face_surfaces());
39 orientation.ref(domaine_vdf.orientation());
40 elem_.ref(domaine_vdf.face_voisins());
41 porosite.ref(la_zcl->equation().milieu().porosite_face());
42 volume_entrelaces.ref(domaine_vdf.volumes_entrelaces());
43 xv.ref(domaine_vdf.xv());
44}
45
46void Evaluateur_VDF::associer_porosite(const DoubleVect& poro)
47{
48 porosite.ref(poro);
49}
50
51double Evaluateur_VDF::dist_norm_bord(int face) const
52{
53 return le_dom->dist_norm_bord(face);
54}
class Domaine_Cl_VDF
class Domaine_VDF
Definition Domaine_VDF.h:64
int orientation(int) const override
inline DoubleVect& Domaine_VDF::porosite_face() {
int premiere_face_bord() const
renvoie le numero de la premiere des faces sur lesquelles sont appliquees les conditions limites :
Definition Domaine_VF.h:523
virtual const DoubleVect & face_surfaces() const
Definition Domaine_VF.h:51
DoubleVect & volumes_entrelaces()
Definition Domaine_VF.h:99
double xv(int num_face, int k) const
Definition Domaine_VF.h:76
int face_voisins(int num_face, int i) const
renvoie l'element voisin de numface dans la direction i.
Definition Domaine_VF.h:418
DoubleVect porosite
virtual void associer_porosite(const DoubleVect &)
double dist_norm_bord(int) const
virtual void associer_domaines(const Domaine_VDF &, const Domaine_Cl_VDF &)
DoubleVect volume_entrelaces
DoubleVect surface
static int dimension
Definition Objet_U.h:99