TrioCFD 1.9.9_beta
TrioCFD documentation
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 Transport_Interfaces_base This class is the base class for interface transport equations.
23 *
24 * Currently only one instantiable derived class: Transport_Interfaces_FT_Disc
25 *
26 *
27 * @sa Transport_Interfaces_FT_Disc, Abstract methods:, void modifier_vpoint_pour_imposer_vit(...), void integrer_ensemble_lagrange(...)
28 */
29
31{
32 Declare_base(Transport_Interfaces_base);
33
34public:
35
36 // The presence of a solid interface in a flow is accompanied by a source term
37 // in the momentum equation that cannot be considered as a classical source term
38 // but rather as a modification of vpoint to impose the interface velocity on the fluid.
39
40 // Applies the modification of vpoint (momentum equation)
41 // to impose the interface velocity on the fluid.
42 virtual void modifier_vpoint_pour_imposer_vit(const DoubleTab& inco_val,DoubleTab& vpoint0,DoubleTab& vpoint,
43 const DoubleTab& rho_faces,DoubleTab& source_val,
44 const double temps, const double dt,
45 const int is_explicite = 1, const double eta = 1.) = 0;
46 // Returns the tag of the interface mesh.
47 virtual int get_mesh_tag() const = 0;
48 // Returns the indicator field.
49 // TODO : Why virtual here? Why not getting the daughter version from Transport_Interfaces_FT_Disc directly here?
50 virtual const Champ_base& get_indicatrice() =0;
51 virtual void update_indicatrice() =0;
53
54
55 // Performs trajectory integration of point particles
56 // intended to mark the fluid.
57 // xn+1 = xn + v_interpolated*dt
58 virtual void integrer_ensemble_lagrange(const double temps) = 0;
59
60protected:
61
62 // In the future, other elements of Transport_Interfaces_FT_Disc may be factored out here.
63 // e.g.: OBS_PTR(Probleme_base) probleme_base_;
64 // This refactoring can be done once the recent developments
65 // purely related to Front-Tracking are integrated.
66
67private:
68
69};
70
71#endif
class Champ_base This class is the base of the fields hierarchy.
Definition Champ_base.h:43
class Equation_base The role of an equation is the calculation of one or more fields....
Transport_Interfaces_base This class is the base class for interface transport equations.
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