TRUST 1.9.8
HPC thermohydraulic platform
Loading...
Searching...
No Matches
Ensemble_Lagrange_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#ifndef Ensemble_Lagrange_base_included
16#define Ensemble_Lagrange_base_included
17
18#include <Domaine.h>
19
20class Equation_base;
21
22/*! @brief classe Ensemble_Lagrange_base Classe de base des classes representant une structure geometrique constituee
23 *
24 * d'un ensemble de points dont on realise un suivi Lagrangien
25 * Actuellement une seule classe derivant instanciable : Maillage_FT_Disc
26 * -un ensemble Lagrangien est caracterise par les coordonnees de ses points
27 *
28 * @sa Classe abstraite.
29 * @sa Methodes abstraites:
30 * void associer_equation_transport)
31 * Equation_base& equation_associee()
32 */
33
35{
36 Declare_base_sans_constructeur(Ensemble_Lagrange_base);
37
38public :
41 equation) = 0;
42 virtual const Equation_base& equation_associee() const = 0;
43 void associer_domaine(const Domaine& domaine);
44 virtual inline const Domaine& domaine() const;
45 void remplir_sommets_tmp(DoubleTab& soms_tmp);
46 void generer_marqueurs_sz(DoubleTab& soms_tmp);
47 inline const IntVect& nb_marqs_par_sz() const;
48 inline const DoubleTab& sommets_lu() const;
49 inline DoubleTab& sommets_lu();
50
51protected :
52
53 Noms nom_sz; //nom des sous domaines ou l on genere des particules
54 IntVect nb_marqs_sz; //nombre de marqueurs par sous domaine
55 IntTab nb_marqs_par_dir; //nombre de marqueurs dans chacune des directions d un sous domaine
56 //si distribution uniforme sur la sous domaine
57 OBS_PTR(Domaine) mon_dom_; //REF au Domaine du maillage Eulerien
58
59 DoubleTab sommets_lu_; //Coordonnees des sommets lus dans le cas d une lecture dans un fichier
60
61private :
62
63};
64
65inline const Domaine& Ensemble_Lagrange_base::domaine() const
66{
67 return mon_dom_.valeur();
68}
69
70inline const IntVect& Ensemble_Lagrange_base::nb_marqs_par_sz() const
71{
72 return nb_marqs_sz;
73}
74
75inline const DoubleTab& Ensemble_Lagrange_base::sommets_lu() const
76{
77 return sommets_lu_;
78}
79
81{
82 return sommets_lu_;
83}
84
85#endif
void associer_domaine(const Domaine &domaine)
virtual void associer_equation_transport(const Equation_base &equation)=0
OBS_PTR(Domaine) mon_dom_
void remplir_sommets_tmp(DoubleTab &soms_tmp)
virtual const Equation_base & equation_associee() const =0
const DoubleTab & sommets_lu() const
virtual const Domaine & domaine() const
const IntVect & nb_marqs_par_sz() const
void generer_marqueurs_sz(DoubleTab &soms_tmp)
classe Equation_base Le role d'une equation est le calcul d'un ou plusieurs champs....
Un tableau de chaine de caracteres (VECT(Nom)).
Definition Noms.h:26
Objet_U()
Constructeur par defaut : attribue un numero d'identifiant unique a l'objet (object_id_),...
Definition Objet_U.cpp:55