TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Source_QC_VDF_Face.cpp
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#include <Source_QC_VDF_Face.h>
17
18Implemente_instanciable(Acceleration_QC_VDF_Face,"Acceleration_QC_VDF_Face",Terme_Source_Acceleration_VDF_Face);
21DoubleTab& Acceleration_QC_VDF_Face::ajouter_mere(DoubleTab& resu) const { Terme_Source_Acceleration_VDF_Face::ajouter_blocs({},resu, {}); return resu; }
22void Acceleration_QC_VDF_Face::ajouter_blocs(matrices_t matrices, DoubleTab& secmem, const tabs_t& semi_impl) const
23{
24 const std::string& nom_inco = equation().inconnue().le_nom().getString();
25 Matrice_Morse* mat = matrices.count(nom_inco) ? matrices.at(nom_inco) : nullptr;
26 contribuer_a_avec_impl(secmem,*mat);
27 ajouter_impl(secmem);
28}
29
30
31Implemente_instanciable(Source_qdm_QC_VDF_Face,"Source_qdm_QC_VDF_Face",Terme_Source_Qdm_VDF_Face);
34DoubleTab& Source_qdm_QC_VDF_Face::ajouter_mere(DoubleTab& resu) const { Terme_Source_Qdm_VDF_Face::ajouter_blocs({},resu, {}); return resu; }
35void Source_qdm_QC_VDF_Face::ajouter_blocs(matrices_t matrices, DoubleTab& secmem, const tabs_t& semi_impl) const
36{
37 const std::string& nom_inco = equation().inconnue().le_nom().getString();
38 Matrice_Morse* mat = matrices.count(nom_inco) ? matrices.at(nom_inco) : nullptr;
39 contribuer_a_avec_impl(secmem,*mat);
40 ajouter_impl(secmem);
41}
42
43Implemente_instanciable(Perte_Charge_Reguliere_QC_VDF_Face,"Perte_Charge_Reguliere_QC_VDF_Face",Perte_Charge_Reguliere_VDF_Face);
46DoubleTab& Perte_Charge_Reguliere_QC_VDF_Face::ajouter_mere(DoubleTab& resu) const { Perte_Charge_Reguliere_VDF_Face::ajouter_blocs({},resu, {}); return resu; }
47#pragma clang optimize off
48void Perte_Charge_Reguliere_QC_VDF_Face::ajouter_blocs(matrices_t matrices, DoubleTab& secmem, const tabs_t& semi_impl) const
49{
50 const std::string& nom_inco = equation().inconnue().le_nom().getString();
51 Matrice_Morse* mat = matrices.count(nom_inco) ? matrices.at(nom_inco) : nullptr;
52 contribuer_a_avec_impl(secmem,*mat);
53 ajouter_impl(secmem);
54}
55#pragma clang optimize on
56
57Implemente_instanciable(Perte_Charge_Singuliere_QC_VDF_Face,"Perte_Charge_Singuliere_QC_VDF_Face",Perte_Charge_Singuliere_VDF_Face);
60DoubleTab& Perte_Charge_Singuliere_QC_VDF_Face::ajouter_mere(DoubleTab& resu) const { Perte_Charge_Singuliere_VDF_Face::ajouter_blocs({},resu, {}); return resu; }
61#pragma clang optimize off
62void Perte_Charge_Singuliere_QC_VDF_Face::ajouter_blocs(matrices_t matrices, DoubleTab& secmem, const tabs_t& semi_impl) const
63{
64 const std::string& nom_inco = equation().inconnue().le_nom().getString();
65 Matrice_Morse* mat = matrices.count(nom_inco) ? matrices.at(nom_inco) : nullptr;
66 contribuer_a_avec_impl(secmem,*mat);
67 ajouter_impl(secmem);
68}
69#pragma clang optimize on
70
71Implemente_instanciable(Darcy_QC_VDF_Face,"Darcy_QC_VDF_Face",Source_Darcy_VDF_Face);
74DoubleTab& Darcy_QC_VDF_Face::ajouter_mere(DoubleTab& resu) const { Source_Darcy_VDF_Face::ajouter_blocs({},resu, {}); return resu; }
75
76#pragma clang optimize off
77void Darcy_QC_VDF_Face::ajouter_blocs(matrices_t matrices, DoubleTab& secmem, const tabs_t& semi_impl) const
78{
79 const std::string& nom_inco = equation().inconnue().le_nom().getString();
80 Matrice_Morse* mat = matrices.count(nom_inco) ? matrices.at(nom_inco) : nullptr;
81 contribuer_a_avec_impl(secmem,*mat);
82 ajouter_impl(secmem);
83}
84#pragma clang optimize on
85
86Implemente_instanciable(Forchheimer_QC_VDF_Face,"Forchheimer_QC_VDF_Face",Source_Forchheimer_VDF_Face);
89DoubleTab& Forchheimer_QC_VDF_Face::ajouter_mere(DoubleTab& resu) const { Source_Forchheimer_VDF_Face::ajouter_blocs({},resu, {}); return resu; }
90
91#pragma clang optimize off
92void Forchheimer_QC_VDF_Face::ajouter_blocs(matrices_t matrices, DoubleTab& secmem, const tabs_t& semi_impl) const
93{
94 const std::string& nom_inco = equation().inconnue().le_nom().getString();
95 Matrice_Morse* mat = matrices.count(nom_inco) ? matrices.at(nom_inco) : nullptr;
96 contribuer_a_avec_impl(secmem,*mat);
97 ajouter_impl(secmem);
98}
99#pragma clang optimize on
void ajouter_blocs(matrices_t matrices, DoubleTab &secmem, const tabs_t &semi_impl) const override
DoubleTab & ajouter_mere(DoubleTab &) const
void ajouter_blocs(matrices_t matrices, DoubleTab &secmem, const tabs_t &semi_impl) const override
DoubleTab & ajouter_mere(DoubleTab &) const
Class defining operators and methods for all reading operation in an input flow (file,...
Definition Entree.h:42
virtual const Champ_Inc_base & inconnue() const =0
const Nom & le_nom() const override
Renvoie le nom du champ.
DoubleTab & ajouter_mere(DoubleTab &) const
void ajouter_blocs(matrices_t matrices, DoubleTab &secmem, const tabs_t &semi_impl) const override
Classe Matrice_Morse Represente une matrice M (creuse), non necessairement carree.
const Equation_base & equation() const
Renvoie la reference sur l'equation pointe par MorEqn::mon_equation.
Definition MorEqn.h:62
const std::string & getString() const
Definition Nom.h:92
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
void ajouter_blocs(matrices_t matrices, DoubleTab &secmem, const tabs_t &semi_impl) const override
DoubleTab & ajouter_mere(DoubleTab &) const
class Perte_Charge_Reguliere_VDF_Face
void ajouter_blocs(matrices_t matrices, DoubleTab &secmem, const tabs_t &semi_impl) const override
void ajouter_blocs(matrices_t matrices, DoubleTab &secmem, const tabs_t &semi_impl) const override
DoubleTab & ajouter_mere(DoubleTab &) const
class Perte_Charge_Singuliere_VDF_Face
void ajouter_blocs(matrices_t matrices, DoubleTab &secmem, const tabs_t &semi_impl) const override
Classe de base des flux de sortie.
Definition Sortie.h:52
class Source_Darcy_VDF_Face Cette classe represente le terme de Darcy pour les ecoulement en milieux ...
void contribuer_a_avec_impl(const DoubleTab &, Matrice_Morse &) const
class Source_Forchheimer_VDF_Face Cette classe represente le terme de Forchheimer pour les ecoulement...
virtual void ajouter_blocs(matrices_t matrices, DoubleTab &secmem, const tabs_t &semi_impl={ }) const
DoubleTab & ajouter_mere(DoubleTab &) const
void ajouter_blocs(matrices_t matrices, DoubleTab &secmem, const tabs_t &semi_impl) const override
Terme source d'acceleration specialise pour la discretisation VDF.
void ajouter_blocs(matrices_t matrices, DoubleTab &secmem, const tabs_t &semi_impl) const override
Ajoute le terme (la_source_ * rho * volume_entrelace) au champ resu.
class Terme_Source_Qdm_VDF_Face
void ajouter_blocs(matrices_t matrices, DoubleTab &secmem, const tabs_t &semi_impl) const override