TRUST 1.9.8
HPC thermohydraulic platform
Loading...
Searching...
No Matches
Champ_front_xyz_debit.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 Champ_front_xyz_debit_included
17#define Champ_front_xyz_debit_included
18
19#include <Champ_front_normal.h>
20
21#include <TRUST_Ref.h>
22#include <Parser_U.h>
23#include <Domaine_VF.h>
24
25class Champ_Inc_base;
26
27/*! @brief class Champ_front_xyz_debit
28 *
29 */
31{
32 Declare_instanciable(Champ_front_xyz_debit);
33public:
34 int initialiser(double tps, const Champ_Inc_base& inco) override;
35 virtual void update_coeff(double temps) { };
36 void mettre_a_jour(double temps) override;
37 void associer_fr_dis_base(const Frontiere_dis_base& fr) override;
38 virtual void set_temps_defaut(double temps) override;
39 void fixer_nb_valeurs_temporelles(int nb_cases) override;
40 void changer_temps_futur(double temps,int i) override;
41 int avancer(double temps) override;
42 int reculer(double temps) override;
43
44protected:
46 OWN_PTR(Champ_front_base) velocity_profil_;
48 // in TRUST the normal vector to a surface is stocked weighted by the area of the surface via "face_normales"
49 // here we want normal vectors only, formely known as normales_divisees_par_aire_
50 // We need the normal vector (only) because the velocity field will be perpendicular the surface
51 DoubleTab normal_vectors_;
52 DoubleTab coeff_;
53 DoubleTab integrale_;
55 bool update_coeff_ = false;
56
57 virtual void initialiser_coefficient(const Champ_Inc_base& inco, double tps);
58 void calculer_normales_et_integrale(const Front_VF& le_bord, DoubleTab& velocity_user);
59 void calculer_champ_vitesse(const Front_VF& le_bord, DoubleTab& velocity_field, DoubleTab& velocity_user, double temps);
60};
61
62#endif
Classe Champ_Inc_base.
classe Champ_front_base Classe de base pour la hierarchie des champs aux frontieres.
class Champ_front_normal
class Champ_front_xyz_debit
OWN_PTR(Champ_front_base) flow_rate_
void associer_fr_dis_base(const Frontiere_dis_base &fr) override
Associe une frontiere discretisee au champ.
virtual void set_temps_defaut(double temps) override
int avancer(double temps) override
Turn the wheel of the CL.
void mettre_a_jour(double temps) override
NE FAIT RIEN, a surcharger.
void fixer_nb_valeurs_temporelles(int nb_cases) override
Surcharge Champ_front_base::fixer_nb_valeurs_temporelles.
OWN_PTR(Champ_front_base) velocity_profil_
void calculer_champ_vitesse(const Front_VF &le_bord, DoubleTab &velocity_field, DoubleTab &velocity_user, double temps)
OBS_PTR(Champ_Inc_base) ch_inco_
virtual void initialiser_coefficient(const Champ_Inc_base &inco, double tps)
int reculer(double temps) override
Turn the wheel of the CL.
int initialiser(double tps, const Champ_Inc_base &inco) override
Initialisation en debut de calcul.
void calculer_normales_et_integrale(const Front_VF &le_bord, DoubleTab &velocity_user)
virtual void update_coeff(double temps)
void changer_temps_futur(double temps, int i) override
Change la valeur du temps pour la ieme valeur temporelle apres le present.
class Front_VF
Definition Front_VF.h:36
classe Frontiere_dis_base Classe representant une frontiere discretisee.