TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Eval_Conv_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 Eval_Conv_VDF_included
17#define Eval_Conv_VDF_included
18
19#include <Eval_Conv_VDF_tools.h>
20#include <Evaluateur_VDF.h>
21#include <Champ_Face_VDF.h>
22#include <TRUST_Ref.h>
23
24class Champ_Inc_base;
25class Champ_Face_VDF;
26
27/*! @brief class Eval_Conv_VDF classe de base des evaluateurs de convection VDF
28 *
29 */
30
32{
33
34public:
35 inline Eval_Conv_VDF() { }
36 inline Eval_Conv_VDF(const Eval_Conv_VDF& eval) : Evaluateur_VDF(eval), vitesse_(eval.vitesse_) { dt_vitesse.ref(eval.dt_vitesse); }
37
38 inline void associer(const Champ_Face_VDF& );
39 inline void mettre_a_jour( ) { dt_vitesse.ref(vitesse_->valeurs()); }
40 inline const Champ_Inc_base& vitesse() const { return vitesse_.valeur(); }
41 inline Champ_Inc_base& vitesse() { return vitesse_.valeur(); }
42
43 // pour CRTP
44 inline int get_elem(int i, int j) const { return elem_(i,j); }
45 inline int get_orientation(int i ) const { return orientation(i); }
46 inline int get_premiere_face_bord() const { return premiere_face_bord; }
47 inline double get_dt_vitesse(int face, int comp = 0) const { return dt_vitesse(face, comp); }
48 inline double get_surface_porosite(int face) const { return surface(face)*porosite(face); }
49 inline double get_surface(int face) const { return surface(face); }
50 inline double get_porosite(int face) const { return porosite(face); }
51 inline const DoubleTab& get_tab_vitesse() const { return dt_vitesse; }
52 inline const Domaine_Cl_VDF& get_la_zcl() const { return la_zcl.valeur(); }
53
54protected:
56 DoubleTab dt_vitesse;
57};
58
59/*! @brief associe le champ de vitesse transportante
60 *
61 */
63{
64 vitesse_=vit;
65 dt_vitesse.ref(vit.valeurs());
66}
67
68#endif /* Eval_Conv_VDF_included */
class Champ_Face_VDF Cette classe sert a representer un champ vectoriel dont on ne calcule
Classe Champ_Inc_base.
DoubleTab & valeurs() override
Renvoie le tableau des valeurs du champ au temps courant.
class Domaine_Cl_VDF
void associer(const Champ_Face_VDF &)
associe le champ de vitesse transportante
double get_surface_porosite(int face) const
void mettre_a_jour()
Eval_Conv_VDF(const Eval_Conv_VDF &eval)
DoubleTab dt_vitesse
const Domaine_Cl_VDF & get_la_zcl() const
int get_orientation(int i) const
double get_porosite(int face) const
const DoubleTab & get_tab_vitesse() const
OBS_PTR(Champ_Face_VDF) vitesse_
int get_elem(int i, int j) const
const Champ_Inc_base & vitesse() const
double get_dt_vitesse(int face, int comp=0) const
double get_surface(int face) const
Champ_Inc_base & vitesse()
int get_premiere_face_bord() const
DoubleVect porosite
DoubleVect surface