TrioCFD 1.9.9_beta
TrioCFD documentation
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
Class 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
Initializes the BCs. Unlike the update methods, the.
class Domaine_Cl_dis_base Domaine_Cl_dis_base objects represent discretized boundary conditions
virtual int initialiser(double temps)
Initializes the BCs. Unlike the update methods, the.
void completer()
Calls Cond_lim_base::completer() on each boundary condition.
Domaine_dis_base & domaine_dis()
Returns a reference to the discretized domain associated with the boundary conditions.
class Domaine_VF
Definition Domaine_VF.h:44
class Domaine_dis_base This class is the base of the hierarchy of discretized domains.
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
Returns the string identifying the class.
Definition Objet_U.cpp:104
virtual Entree & readOn(Entree &)
Reads an Objet_U from an input stream. Virtual method to override.
Definition Objet_U.cpp:289
virtual Sortie & printOn(Sortie &) const
Writes the object to an output stream. Virtual method to override.
Definition Objet_U.cpp:278
class Periodique This class represents a periodic boundary condition.
Definition Periodique.h:31
static void exit(int exit_code=-1)
Exit routine for TRUST within a Kokkos region.
Definition Process.cpp:466
Base class for output streams.
Definition Sortie.h:52