TRUST 1.9.8
HPC thermohydraulic platform
Loading...
Searching...
No Matches
Domaine_Cl_DG.cpp
1/****************************************************************************
2* Copyright (c) 2026, 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#include <Dirichlet_entree_fluide_leaves.h>
17#include <Champ_front_softanalytique.h>
18#include <Dirichlet_paroi_defilante.h>
19#include <Dirichlet_paroi_fixe.h>
20#include <Discretisation_base.h>
21#include <Domaine_Cl_DG.h>
22#include <Dirichlet_homogene.h>
23#include <Champ_Inc_P0_base.h>
24#include <Domaine_DG.h>
25#include <Equation_base.h>
26#include <Probleme_base.h>
27#include <Matrice_Morse.h>
28#include <Periodique.h>
29#include <Symetrie.h>
30#include <Debog.h>
31
32Implemente_instanciable(Domaine_Cl_DG, "Domaine_Cl_DG", Domaine_Cl_dis_base);
33
34Sortie& Domaine_Cl_DG::printOn(Sortie& os) const { return os; }
35
37
38/*! @brief Need to investigate
39 *
40 */
45
46
47/*! @brief Need to investigate: a priori, nothing to do for DG
48 *
49 */
51{
52// DoubleTab& ch_tab = ch.valeurs(temps);
53 if (sub_type(Champ_Inc_P0_base, ch)) { /* Do nothing */ }
54 else if (ch.is_scalar()) { /* Do nothing */ }
55 else
56 {
57 Cerr << "This type of Champ Inc: " << ch.que_suis_je() << " is not recognised in DG" << finl;
59 }
60// ch_tab.echange_espace_virtuel();
61// Debog::verifier("Domaine_Cl_DG::imposer_cond_lim ch_tab", ch_tab);
62}
63
65{
66 Process::exit("Function Domaine_Cl_DG::nb_faces_sortie_libre should not be used for DG");
67 return -1000000;
68}
69
71{
72 int compteur = 0;
73 for (int cl = 0; cl < les_conditions_limites_.size(); cl++)
74 {
75 if (sub_type(Periodique, les_conditions_limites_[cl].valeur()))
76 compteur++;
77 }
78 return compteur;
79}
80
82{
84
85 if (nb_bord_periodicite() > 0)
86 Process::exit("Periodic conditions are not coded yet for DG");
87 return 1;
88}
89
94
96{
97 return ref_cast(Domaine_VF, domaine_dis());
98}
: class Champ_Inc_P0_base
Classe Champ_Inc_base.
int nb_faces_sortie_libre() const
int nb_bord_periodicite() const
void imposer_cond_lim(Champ_Inc_base &, double) override
Need to investigate: a priori, nothing to do for DG.
Domaine_VF & domaine_vf()
int initialiser(double temps) override
Initialise les CLs Contrairement aux methodes mettre_a_jour, les methodes.
classe Domaine_Cl_dis_base Les objets Domaine_Cl_dis_base representent les conditions aux limites
virtual int initialiser(double temps)
Initialise les CLs Contrairement aux methodes mettre_a_jour, les methodes.
void completer()
Appel Cond_lim_base::completer() sur chaque condition aux limites.
Domaine_dis_base & domaine_dis()
Renvoie une reference sur le domaine discretise associe aux conditions aux limites.
class Domaine_VF
Definition Domaine_VF.h:44
classe Domaine_dis_base Cette classe est la base de la hierarchie des domaines discretisees.
Class defining operators and methods for all reading operation in an input flow (file,...
Definition Entree.h:42
bool is_scalar() const
Definition Field_base.h:86
const Nom & que_suis_je() const
renvoie la chaine identifiant la classe.
Definition Objet_U.cpp:104
virtual Entree & readOn(Entree &)
Lecture d'un Objet_U sur un flot d'entree Methode a surcharger.
Definition Objet_U.cpp:293
virtual Sortie & printOn(Sortie &) const
Ecriture de l'objet sur un flot de sortie Methode a surcharger.
Definition Objet_U.cpp:282
classe Periodique Cette classe represente une condition aux limites periodique.
Definition Periodique.h:31
static void exit(int exit_code=-1)
Routine de sortie de TRUST dans une region Kokkos.
Definition Process.cpp:455
Classe de base des flux de sortie.
Definition Sortie.h:52