TRUST 1.9.8
HPC thermohydraulic platform
Loading...
Searching...
No Matches
Transport_Interfaces_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 Transport_Interfaces_base_included
17#define Transport_Interfaces_base_included
18
19#include <Equation_base.h>
20
21
22/*! @brief classe Transport_Interfaces_base Cette classe constitue la classe de base des equations de transport d interfaces
23 *
24 * Actuellement une seule classe instanciable derivant : Transport_Interfaces_FT_Disc
25 *
26 *
27 * @sa Transport_Interfaces_FT_Disc, Methodes abstraites:, void modifier_vpoint_pour_imposer_vit(...), void integrer_ensemble_lagrange(...)
28 */
29
31{
32 Declare_base(Transport_Interfaces_base);
33
34public:
35
36 //La presence d'une interface solide dans un ecoulement s accompagne d un terme source
37 //dans l equation de quantite de mouvement qui ne peut etre considere comme un terme
38 //source classique mais plutot comme une modification de vpoint pour imposer au fluide
39 //la vitesse de l interface
40
41 //Effectue la modification de vpoint (equation de quantite de mouvement)
42 //pour imposer au fluide la vitesse de l interface
43 virtual void modifier_vpoint_pour_imposer_vit(const DoubleTab& inco_val,DoubleTab& vpoint0,DoubleTab& vpoint,
44 const DoubleTab& rho_faces,DoubleTab& source_val,
45 const double temps, const double dt,
46 const int is_explicite = 1, const double eta = 1.) = 0;
47 // Recupere le tag du maillage de l'interface
48 virtual int get_mesh_tag() const = 0;
49 // Recupere le champ de l'indicatrice
50 // TODO : Why virtual here? Why not getting the daughter version from Transport_Interfaces_FT_Disc directly here?
51 virtual const Champ_base& get_indicatrice() =0;
52 virtual void update_indicatrice() =0;
54
55
56 //Effectue l integration de trajectoire de particules ponctuelles
57 //destinees a marquer le fluide
58 //xn+1 = xn + v_interpolee*dt
59 virtual void integrer_ensemble_lagrange(const double temps) = 0;
60
61protected:
62
63 // A terme d autres elements de Transport_Interfaces_FT_Disc sont susceptibles d etre factorises
64 // ex : OBS_PTR(Probleme_base) probleme_base_;
65 // Cette factorisation pourra etre realisee quand les developpements recents
66 // lies purement au Front-Tracking seront integres
67
68private:
69
70};
71
72#endif
classe Champ_base Cette classe est la base de la hierarchie des champs.
Definition Champ_base.h:43
classe Equation_base Le role d'une equation est le calcul d'un ou plusieurs champs....
classe Transport_Interfaces_base Cette classe constitue la classe de base des equations de transport ...
virtual void check_indicatrice_is_up_to_date()=0
virtual const Champ_base & get_indicatrice()=0
virtual void modifier_vpoint_pour_imposer_vit(const DoubleTab &inco_val, DoubleTab &vpoint0, DoubleTab &vpoint, const DoubleTab &rho_faces, DoubleTab &source_val, const double temps, const double dt, const int is_explicite=1, const double eta=1.)=0
virtual int get_mesh_tag() const =0
virtual void update_indicatrice()=0
virtual void integrer_ensemble_lagrange(const double temps)=0