TrioCFD 1.9.9_beta
TrioCFD documentation
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 class EOS_Tools_VEF
28 *
29 * @brief This class is specific to VEF-type discretization.
30 *
31 * @sa Fluide_Dilatable_base EOS_Tools_base
32 */
33
35{
36 Declare_instanciable(EOS_Tools_VEF);
37public :
38 const DoubleTab& rho_discvit() const override;
39 const DoubleTab& rho_face_n() const override;
40 const DoubleTab& rho_face_np1() const override;
41 void associer_domaines(const Domaine_dis_base&,const Domaine_Cl_dis_base&) override;
42 void divu_discvit(const DoubleTab& , DoubleTab& ) override;
43 double moyenne_vol(const DoubleTab&) const override;
44 void secmembre_divU_Z(DoubleTab& ) const override;
45 inline void calculer_rho_face_np1(const DoubleTab& rho) override { /* Do nothing */ }
46 inline const Fluide_Dilatable_base& le_fluide() const { return le_fluide_.valeur(); }
47
48protected :
51 DoubleVect un_;
52};
53
54#endif /* EOS_Tools_VEF_included */
class Domaine_Cl_dis_base Domaine_Cl_dis_base objects represent discretized boundary conditions
class Domaine_VEF
Definition Domaine_VEF.h:53
class Domaine_dis_base This class is the base of the hierarchy of discretized domains.
class EOS_Tools_VEF
DoubleVect un_
double moyenne_vol(const DoubleTab &) const override
Computes the volumetric average of the given P1NC quantity.
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
Associates the domains to the ODE.
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
Computes the right-hand side of the continuity equation for a VEF_P1B discretization: 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
Returns rho with the same discretization as the velocity: one value per face in VEF.
const DoubleTab & rho_face_n() const override
Abstract base class for EOS tools used with dilatable fluids.
Base class for a dilatable fluid, inheriting from Fluide_base.