TRUST 1.9.8
HPC thermohydraulic platform
Loading...
Searching...
No Matches
EOS_Tools_VEF.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 EOS_Tools_VEF_included
17#define EOS_Tools_VEF_included
18
19#include <EOS_Tools_base.h>
20
21#include <TRUST_Ref.h>
22#include <TRUSTVect.h>
23
25class Domaine_VEF;
26
27/*! @brief classe EOS_Tools_VEF Cette classe et specifique a discretisation de type VEF.
28 *
29 * @sa Fluide_Dilatable_base EOS_Tools_base
30 */
31
33{
34 Declare_instanciable(EOS_Tools_VEF);
35public :
36 const DoubleTab& rho_discvit() const override;
37 const DoubleTab& rho_face_n() const override;
38 const DoubleTab& rho_face_np1() const override;
39 void associer_domaines(const Domaine_dis_base&,const Domaine_Cl_dis_base&) override;
40 void divu_discvit(const DoubleTab& , DoubleTab& ) override;
41 double moyenne_vol(const DoubleTab&) const override;
42 void secmembre_divU_Z(DoubleTab& ) const override;
43 inline void calculer_rho_face_np1(const DoubleTab& rho) override { /* Do nothing */ }
44 inline const Fluide_Dilatable_base& le_fluide() const { return le_fluide_.valeur(); }
45
46protected :
49 DoubleVect un_;
50};
51
52#endif /* EOS_Tools_VEF_included */
classe Domaine_Cl_dis_base Les objets Domaine_Cl_dis_base representent les conditions aux limites
class Domaine_VEF
Definition Domaine_VEF.h:54
classe Domaine_dis_base Cette classe est la base de la hierarchie des domaines discretisees.
classe EOS_Tools_VEF Cette classe et specifique a discretisation de type VEF.
DoubleVect un_
double moyenne_vol(const DoubleTab &) const override
Calcule la moyenne volumique de la grandeur P1NC donnee.
const Fluide_Dilatable_base & le_fluide() const
OBS_PTR(Domaine_VEF) le_dom
void associer_domaines(const Domaine_dis_base &, const Domaine_Cl_dis_base &) override
Associe les domaines a l'EDO.
void divu_discvit(const DoubleTab &, DoubleTab &) override
Div(u) is computed on faces from Div(u) on elements.
OBS_PTR(Domaine_Cl_dis_base) le_dom_Cl
void secmembre_divU_Z(DoubleTab &) const override
Calcule le second membre de l'equation de continuite pour une discretisation VEF_P1B: div(U) = W = dZ...
const DoubleTab & rho_face_np1() const override
void calculer_rho_face_np1(const DoubleTab &rho) override
const DoubleTab & rho_discvit() const override
Renvoie rho avec la meme discretisation que la vitesse : une valeur par face en VEF.
const DoubleTab & rho_face_n() const override
classe Abstraite EOS_Tools_base
classe Fluide_Dilatable_base Cette classe represente un d'un fluide dilatable,