TrioCFD 1.9.9_beta
TrioCFD documentation
Loading...
Searching...
No Matches
Convection_Diffusion_Fluide_Dilatable_base.h
1/****************************************************************************
2* Copyright (c) 2026, 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 Convection_Diffusion_Fluide_Dilatable_base_included
17#define Convection_Diffusion_Fluide_Dilatable_base_included
18
19#include <Convection_Diffusion_Fluide_Dilatable_Proto.h>
20#include <Convection_Diffusion_std.h>
21#include <TRUST_Ref.h>
22
24
25/*! @brief @brief Base class for convection-diffusion equations for a dilatable fluid.
26 *
27 * @sa Conv_Diffusion_std Convection_Diffusion_Temperature
28 */
29
32{
34
35public :
37 void associer_milieu_base(const Milieu_base& ) override;
38 int impr(Sortie& os) const override;
39 const Champ_Don_base& diffusivite_pour_transport() const override;
40 const Fluide_Dilatable_base& fluide() const;
42 const Milieu_base& milieu() const override;
43 Milieu_base& milieu() override;
44
45 void set_param(Param& titi) const override;
46 int lire_motcle_non_standard(const Motcle&, Entree&) override;
47
48 // TODO: to be refactored
49 void calculer_div_u_ou_div_rhou(DoubleTab& res) const override = 0;
50 bool is_thermal() const override = 0;
51 bool is_generic() const override = 0;
52
53 // Inline methods
54 inline const Champ_Inc_base& inconnue() const override { return l_inco_ch; }
55 inline Champ_Inc_base& inconnue() override { return l_inco_ch; }
56 inline const Domaine_Cl_dis_base& domaine_cl_modif() const { return zcl_modif_.valeur();}
57 inline Domaine_Cl_dis_base& domaine_cl_modif() { return zcl_modif_.valeur();}
58
59protected:
63};
64
65#endif /* Convection_Diffusion_Fluide_Dilatable_base_included */
class Champ_Don_base base class of Given Fields (not calculated)
Class Champ_Inc_base.
Base class for convection-diffusion equations for a dilatable fluid.
OBS_PTR(Fluide_Dilatable_base) le_fluide
int lire_motcle_non_standard(const Motcle &, Entree &) override
Reads non-simple-type parameters of an Objet_U from an input stream.
OWN_PTR(Domaine_Cl_dis_base) zcl_modif_
void calculer_div_u_ou_div_rhou(DoubleTab &res) const override=0
int impr(Sortie &os) const override
Prints the equation operators to an output stream, unconditionally.
Convection_Diffusion_std This class is the base for equations modelling the transport.
class Domaine_Cl_dis_base Domaine_Cl_dis_base objects represent discretized boundary conditions
Base class for a dilatable fluid, inheriting from Fluide_base.
Milieu_base This class is the base of the (physical) medium hierarchy.
Definition Milieu_base.h:50
A character string (Nom) in uppercase.
Definition Motcle.h:26
friend class Entree
Definition Objet_U.h:71
friend class Sortie
Definition Objet_U.h:70
Helper class to factorize the readOn method of Objet_U classes.
Definition Param.h:112