TrioCFD 1.9.9_beta
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 class EOS_Tools_VDF This class is specific to VDF-type discretization.
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 */
class Domaine_Cl_dis_base Domaine_Cl_dis_base objects represent discretized boundary conditions
class Domaine_VDF
Definition Domaine_VDF.h:61
class Domaine_dis_base This class is the base of the hierarchy of discretized domains.
class EOS_Tools_VDF This class is specific to VDF-type discretization.
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
Returns div(u) with the same discretization as the velocity: one value per face in VDF.
const DoubleTab & rho_discvit() const override
Returns rho with the same discretization as the velocity: one value per face in VDF.
DoubleTab tab_rho_face_np1
OBS_PTR(Domaine_Cl_dis_base) le_dom_Cl
double moyenne_vol(const DoubleTab &) const override
Computes the volumetric average of the given P0 quantity.
void secmembre_divU_Z(DoubleTab &) const override
Computes the right-hand side of the continuity equation: div(rhoU) = W = -dZ/dT with 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
Abstract base class for EOS tools used with dilatable fluids.
Base class for a dilatable fluid, inheriting from Fluide_base.