TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Source_Masse_Fluide_Dilatable_base.h
1/****************************************************************************
2* Copyright (c) 2025, 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 Source_Masse_Fluide_Dilatable_base_included
17#define Source_Masse_Fluide_Dilatable_base_included
18
19#include <Champ_front_base.h>
20#include <TRUST_Deriv.h>
21#include <TRUST_Ref.h>
22
26
27/*! @brief : classe Source_Masse_Fluide_Dilatable_base Une source speciale pour l'equation de masse (utilisee seulement lors de la projection/correction donc).
28 *
29 */
31{
33public :
34 void completer();
35
36 // Managing properly the champ_front - not done automatically because we are not in the scope of boundary conditions.
37 // The three methods below take care of this.
38 // This is all inspired by what happens in Conds_lim::completer() and Conds_lim::initialiser()
39 // and Equation_base::initTimeStep() and Equation_base::updateGivenFields()
40 void mettre_a_jour(double temps);
41 void changer_temps_futur(double temps, int i);
42 void set_temps_defaut(double temps);
43
44 virtual void associer_domaine_cl(const Domaine_Cl_dis_base&);
45
46 inline int nb_comp() { return ncomp_; }
47
48 void fill_val_flux_tab(DoubleTrav& val_flux) const;
49
50 // methodes virtuelles pures
51 virtual void ajouter_eq_espece(const Convection_Diffusion_Fluide_Dilatable_base& eqn, const Fluide_Dilatable_base& fluide, const bool is_expl, DoubleVect& resu) const = 0;
52 virtual void ajouter_projection(const Fluide_Dilatable_base& fluide, DoubleVect& resu) const = 0;
53
54protected :
55 int ncomp_ = -1;
57 OWN_PTR(Champ_front_base) ch_front_source_;
58 OBS_PTR(Domaine_Cl_dis_base) domaine_cl_dis_;
59};
60
61#endif /* Source_Masse_Fluide_Dilatable_base_included */
classe Champ_front_base Classe de base pour la hierarchie des champs aux frontieres.
classe Convection_Diffusion_Fluide_Dilatable_base pour un fluide dilatable
classe Domaine_Cl_dis_base Les objets Domaine_Cl_dis_base representent les conditions aux limites
classe Fluide_Dilatable_base Cette classe represente un d'un fluide dilatable,
class Nom Une chaine de caractere pour nommer les objets de TRUST
Definition Nom.h:31
Objet_U()
Constructeur par defaut : attribue un numero d'identifiant unique a l'objet (object_id_),...
Definition Objet_U.cpp:55
: classe Source_Masse_Fluide_Dilatable_base Une source speciale pour l'equation de masse (utilisee se...
virtual void ajouter_eq_espece(const Convection_Diffusion_Fluide_Dilatable_base &eqn, const Fluide_Dilatable_base &fluide, const bool is_expl, DoubleVect &resu) const =0
OBS_PTR(Domaine_Cl_dis_base) domaine_cl_dis_
virtual void associer_domaine_cl(const Domaine_Cl_dis_base &)
OWN_PTR(Champ_front_base) ch_front_source_
virtual void ajouter_projection(const Fluide_Dilatable_base &fluide, DoubleVect &resu) const =0