TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
EOS_Tools_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 EOS_Tools_VDF_included
17#define EOS_Tools_VDF_included
18
19#include <EOS_Tools_base.h>
20
21#include <TRUST_Ref.h>
22#include <TRUSTTab.h>
23
25class Domaine_VDF;
26
27/*! @brief classe EOS_Tools_VDF Cette classe et specifique a discretisation de type VDF.
28 *
29 * @sa Fluide_Dilatable_base EOS_Tools_base
30 */
31
33{
34 Declare_instanciable(EOS_Tools_VDF);
35public :
36 const DoubleTab& rho_discvit() const override;
37 void associer_domaines(const Domaine_dis_base&,const Domaine_Cl_dis_base&) override;
38 void divu_discvit(const DoubleTab&, DoubleTab&) override;
39 void secmembre_divU_Z(DoubleTab& ) const override;
40 void mettre_a_jour(double temps) override;
41 void calculer_rho_face_np1(const DoubleTab& rho) override;
42 double moyenne_vol(const DoubleTab&) const override ;
43 inline const DoubleTab& rho_face_n() const override { return tab_rho_face; }
44 inline const DoubleTab& rho_face_np1() const override { return tab_rho_face_np1; }
45 inline const Fluide_Dilatable_base& le_fluide() const { return le_fluide_.valeur(); }
46
47protected :
51};
52
53#endif /* EOS_Tools_VDF_included */
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.
classe EOS_Tools_VDF Cette classe et specifique a discretisation de type VDF.
OBS_PTR(Domaine_VDF) le_dom
const Fluide_Dilatable_base & le_fluide() const
void mettre_a_jour(double temps) override
void associer_domaines(const Domaine_dis_base &, const Domaine_Cl_dis_base &) override
void divu_discvit(const DoubleTab &, DoubleTab &) override
Renvoie div(u) avec la meme discretisation que la vitesse : une valeur par face en VDF.
const DoubleTab & rho_discvit() const override
Renvoie rho avec la meme discretisation que la vitesse : une valeur par face en VDF.
DoubleTab tab_rho_face_np1
OBS_PTR(Domaine_Cl_dis_base) le_dom_Cl
double moyenne_vol(const DoubleTab &) const override
Calcule la moyenne volumique de la grandeur P0 donnee.
void secmembre_divU_Z(DoubleTab &) const override
Calcule le second membre de l'equation de continuite : div(rhoU) = W = -dZ/dT avec Z=rho.
const DoubleTab & rho_face_np1() const override
const DoubleTab & rho_face_n() const override
void calculer_rho_face_np1(const DoubleTab &rho) override
DoubleTab tab_rho_face_demi
DoubleTab tab_rho_face
classe Abstraite EOS_Tools_base
classe Fluide_Dilatable_base Cette classe represente un d'un fluide dilatable,