TrioCFD 1.9.9_beta
TrioCFD documentation
Loading...
Searching...
No Matches
Frottement_impose_base.h
1/****************************************************************************
2* Copyright (c) 2024, 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 Frottement_impose_base_included
17#define Frottement_impose_base_included
18
19#include <Frontiere_dis_base.h>
20#include <TRUST_Ref.h>
21#include <TRUSTTab.h>
22#include <Navier.h>
23#include <Param.h>
24
25/*! @brief Classe Frottement_impose_base Base class for Navier-type boundary conditions (v.
26 *
27 * n zero, v_t by imposed stress)
28 * in which the imposed stress follows a friction coefficient:
29 * (applied force) = - friction_coefficient * (tangential velocity)
30 * The tangential velocity can be taken directly at each face (class Frottement_externe_impose),
31 * or taken at the neighbouring element of the face (class Frottement_global_impose)
32 *
33 * @sa Navier
34 */
36{
37 Declare_base(Frottement_impose_base);
38public:
39 virtual void liste_faces_loi_paroi(IntTab&) =0;
40 void associer_fr_dis_base(const Frontiere_dis_base& fr) override { la_frontiere_dis = fr; }
41 int initialiser(double temps) override =0;
42 void associer_domaine_cl_dis_base(const Domaine_Cl_dis_base& zcl) override { mon_dom_cl_dis = zcl; }
43
44 // cond_lim_base functions that require le_champ_front: set to zero because we abstract away the boundary field
45 void completer() override { }
46 void fixer_nb_valeurs_temporelles(int nb_cases) override { }
47 inline Frontiere_dis_base& frontiere_dis() override { return la_frontiere_dis; }
48 inline const Frontiere_dis_base& frontiere_dis() const override { return la_frontiere_dis; }
49 void changer_temps_futur(double temps, int i) override { }
50 void set_temps_defaut(double temps) override { }
51 void calculer_coeffs_echange(double temps) override { }
52 void verifie_ch_init_nb_comp() const override { }
53
54protected:
55 OBS_PTR(Frontiere_dis_base) la_frontiere_dis;
56 double mon_temps = -1e10;
57// int is_calc_qdm = 1 ;
58};
59
60#endif
class Domaine_Cl_dis_base Domaine_Cl_dis_base objects represent discretized boundary conditions
class Frontiere_dis_base Class representing a discretized boundary.
Classe Frottement_impose_base Base class for Navier-type boundary conditions (v.
void fixer_nb_valeurs_temporelles(int nb_cases) override
Called by Conds_lim::completer. Calls cha_front_base::fixer_nb_valeurs_temporelles.
virtual void liste_faces_loi_paroi(IntTab &)=0
void associer_domaine_cl_dis_base(const Domaine_Cl_dis_base &zcl) override
Associates the Domaine_Cl_dis_base (domain of discretized boundary conditions) with the object.
OBS_PTR(Frontiere_dis_base) la_frontiere_dis
void set_temps_defaut(double temps) override
Changes the i-th future time of the BC.
void changer_temps_futur(double temps, int i) override
Changes the i-th future time of the BC.
void completer() override
DOES NOTHING must be overridden in derived classes.
Frontiere_dis_base & frontiere_dis() override
Returns the discretized boundary to which the boundary conditions apply.
void calculer_coeffs_echange(double temps) override
Computation of exchange coefficients for coupling via Champ_front_contact_VEF.
void associer_fr_dis_base(const Frontiere_dis_base &fr) override
Associates the boundary with the object.
void verifie_ch_init_nb_comp() const override
Calls the verification of the field read through the equation for which the boundary condition is con...
int initialiser(double temps) override=0
Initialization at the beginning of the calculation.
const Frontiere_dis_base & frontiere_dis() const override
Returns the discretized boundary to which the boundary conditions apply.
Navier Velocity boundary condition of type "Navier":
Definition Navier.h:31