TrioCFD 1.9.9_beta
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 Special mass source term for the mass equation (used only during the projection/correction step).
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 // Pure virtual methods
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 */
class Champ_front_base Base class for the hierarchy of boundary fields.
Base class for convection-diffusion equations for a dilatable fluid.
class Domaine_Cl_dis_base Domaine_Cl_dis_base objects represent discretized boundary conditions
Base class for a dilatable fluid, inheriting from Fluide_base.
class Nom: a character string for naming TRUST objects.
Definition Nom.h:31
Objet_U()
Default constructor: assigns a unique identifier to the object (object_id_) and registers the object ...
Definition Objet_U.cpp:54
Special mass source term for the mass equation (used only during the projection/correction step).
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