TrioCFD 1.9.9_beta
TrioCFD documentation
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 class Ensemble_Lagrange_base Base class for classes representing a geometric structure made up
23 *
24 * of a set of points tracked using Lagrangian tracking.
25 * Currently only one instantiable derived class: Maillage_FT_Disc.
26 * A Lagrangian set is characterized by the coordinates of its points.
27 *
28 * @sa Abstract class.
29 * @sa Abstract methods:
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; //name of the sub-domains where particles are generated
54 IntVect nb_marqs_sz; //number of markers per sub-domain
55 IntTab nb_marqs_par_dir; //number of markers in each direction of a sub-domain
56 //if uniform distribution over the sub-domain
57 OBS_PTR(Domaine) mon_dom_; //REF to the Eulerian mesh domain
58
59 DoubleTab sommets_lu_; //coordinates of vertices read in the case of reading from a file
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)
class Equation_base The role of an equation is the calculation of one or more fields....
An array of character strings (VECT(Nom)).
Definition Noms.h:26
Objet_U()
Default constructor: assigns a unique identifier to the object (object_id_) and registers the object ...
Definition Objet_U.cpp:54