TrioCFD 1.9.9_beta
TrioCFD documentation
Loading...
Searching...
No Matches
Domaine_Cl_VEF.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 Domaine_Cl_VEF_included
17#define Domaine_Cl_VEF_included
18
19/*! @brief class Domaine_Cl_VEF
20 *
21 * @brief This class holds the arrays used to implement boundary conditions in the VEF formulation.
22 * volumes_entrelaces_Cl_ : volumes of the interlaced polyhedra around non-standard faces
23 * normales_facettes_Cl_ : normals to facets located in non-standard polyhedra
24 * type_elem_Cl_: type of non-standard polyhedra. The type_elem_Cl of a non-standard element
25 * depends on its number of Dirichlet faces and the position of those faces
26 * in the element (see Tri_VEF and Tetra_VEF)
27 *
28 *
29 * @sa Domaine_Cl_dis_base
30 */
31
32#include <Domaine_Cl_dis_base.h>
33
34
35class Domaine_VEF;
36
38{
39 Declare_instanciable(Domaine_Cl_VEF);
40public:
41 void associer(const Domaine_dis_base&) override;
42 void completer(const Domaine_dis_base&) override;
43 int initialiser(double temps) override;
44 void imposer_cond_lim(Champ_Inc_base&, double) override;
45
46 virtual void remplir_volumes_entrelaces_Cl(const Domaine_VEF&);
49
50 inline DoubleVect& volumes_entrelaces_Cl() { return volumes_entrelaces_Cl_; }
51 inline const DoubleVect& volumes_entrelaces_Cl() const { return volumes_entrelaces_Cl_; }
52 inline const double& volumes_entrelaces_Cl(int i) const { return volumes_entrelaces_Cl_[i]; }
53 inline double& volumes_entrelaces_Cl(int i) { return volumes_entrelaces_Cl_[i]; }
54 inline DoubleTab& normales_facettes_Cl() { return normales_facettes_Cl_; }
55 inline const DoubleTab& normales_facettes_Cl() const { return normales_facettes_Cl_; }
56 inline const double& normales_facettes_Cl(int num_poly, int num_fa7, int ncomp) const { return normales_facettes_Cl_(num_poly, num_fa7, ncomp); }
57 inline double& normales_facettes_Cl(int num_poly, int num_fa7, int ncomp) { return normales_facettes_Cl_(num_poly, num_fa7, ncomp); }
58 inline DoubleTab& vecteur_face_facette_Cl() { return vecteur_face_facette_Cl_; }
59 inline const DoubleTab& vecteur_face_facette_Cl() const { return vecteur_face_facette_Cl_; }
60 inline int type_elem_Cl(int i) const { return type_elem_Cl_[i]; }
61 inline const IntVect& type_elem_Cl() const { return type_elem_Cl_; }
62
63 int nb_faces_sortie_libre() const;
65 const Domaine_VEF& domaine_vef() const;
66
67 int nb_bord_periodicite() const;
68
69protected:
74
76};
77
78#endif /* Domaine_Cl_VEF_included */
Class Champ_Inc_base.
DoubleVect & volumes_entrelaces_Cl()
double & volumes_entrelaces_Cl(int i)
const double & volumes_entrelaces_Cl(int i) const
Domaine_VEF & domaine_vef()
int initialiser(double temps) override
Initializes the BCs. Unlike the update methods, the.
void imposer_cond_lim(Champ_Inc_base &, double) override
Imposes boundary conditions at the time "temps" of the Champ_Inc.
DoubleTab normales_facettes_Cl_
void associer(const Domaine_dis_base &) override
const DoubleTab & normales_facettes_Cl() const
int nb_bord_periodicite() const
const DoubleVect & volumes_entrelaces_Cl() const
const DoubleTab & vecteur_face_facette_Cl() const
int type_elem_Cl(int i) const
void remplir_type_elem_Cl(const Domaine_VEF &)
Called by remplir_volumes_entrelaces_Cl(): fills type_elem_Cl_.
virtual void remplir_volumes_entrelaces_Cl(const Domaine_VEF &)
Called by completer(): fills type_elem_Cl_ and volumes_entrelaces_Cl_.
DoubleTab & vecteur_face_facette_Cl()
void remplir_normales_facettes_Cl(const Domaine_VEF &)
Called by completer(): fills normales_facettes_Cl_ and vecteur_face_facette_Cl_.
IntVect type_elem_Cl_
const double & normales_facettes_Cl(int num_poly, int num_fa7, int ncomp) const
DoubleVect volumes_entrelaces_Cl_
int nb_faces_sortie_libre() const
void remplir_vecteur_face_facette_Cl(const Domaine_VEF &)
DoubleTab & normales_facettes_Cl()
DoubleTab vecteur_face_facette_Cl_
double & normales_facettes_Cl(int num_poly, int num_fa7, int ncomp)
const IntVect & type_elem_Cl() const
class Domaine_Cl_dis_base Domaine_Cl_dis_base objects represent discretized boundary conditions
void completer()
Calls Cond_lim_base::completer() on each boundary condition.
class Domaine_VEF
Definition Domaine_VEF.h:53
class Domaine_dis_base This class is the base of the hierarchy of discretized domains.