TrioCFD 1.9.9_beta
TrioCFD documentation
Loading...
Searching...
No Matches
Source_QC_VEF_P1NC.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_VEF_P1NC.h>
17
18Implemente_instanciable(Acceleration_QC_VEF_P1NC,"Acceleration_QC_VEF_P1NC",Terme_Source_Acceleration_VEF_Face);
22DoubleTab& Acceleration_QC_VEF_P1NC::ajouter(DoubleTab& resu ) const { return ajouter_impl(resu); }
23void Acceleration_QC_VEF_P1NC::contribuer_a_avec(const DoubleTab& resu, Matrice_Morse& mat) const { contribuer_a_avec_impl(resu,mat); }
24
25Implemente_instanciable(Perte_Charge_Circulaire_QC_VEF_P1NC,"Perte_Charge_Circulaire_QC_VEF_P1NC",Perte_Charge_Circulaire_VEF_P1NC);
29DoubleTab& Perte_Charge_Circulaire_QC_VEF_P1NC::ajouter(DoubleTab& resu ) const { return ajouter_impl(resu); }
31
32Implemente_instanciable(Perte_Charge_Anisotrope_QC_VEF_P1NC,"Perte_Charge_Anisotrope_QC_VEF_P1NC",Perte_Charge_Anisotrope_VEF_P1NC);
36DoubleTab& Perte_Charge_Anisotrope_QC_VEF_P1NC::ajouter(DoubleTab& resu ) const { return ajouter_impl(resu); }
38
39Implemente_instanciable(Perte_Charge_Directionnelle_QC_VEF_P1NC,"Perte_Charge_Directionnelle_QC_VEF_P1NC",Perte_Charge_Directionnelle_VEF_P1NC);
43DoubleTab& Perte_Charge_Directionnelle_QC_VEF_P1NC::ajouter(DoubleTab& resu ) const { return ajouter_impl(resu); }
45
46Implemente_instanciable(Perte_Charge_Isotrope_QC_VEF_P1NC,"Perte_Charge_Isotrope_QC_VEF_P1NC",Perte_Charge_Isotrope_VEF_P1NC);
50DoubleTab& Perte_Charge_Isotrope_QC_VEF_P1NC::ajouter(DoubleTab& resu ) const { return ajouter_impl(resu); }
52
53Implemente_instanciable(Perte_Charge_Reguliere_QC_VEF_P1NC,"Perte_Charge_Reguliere_QC_VEF_P1NC",Perte_Charge_Reguliere_VEF_P1NC);
57DoubleTab& Perte_Charge_Reguliere_QC_VEF_P1NC::ajouter(DoubleTab& resu ) const { return ajouter_impl(resu); }
59
60Implemente_instanciable(Perte_Charge_Singuliere_QC_VEF_P1NC,"Perte_Charge_Singuliere_QC_VEF_P1NC",Perte_Charge_Singuliere_VEF_Face);
64DoubleTab& Perte_Charge_Singuliere_QC_VEF_P1NC::ajouter(DoubleTab& resu ) const { return ajouter_impl(resu); }
66
67Implemente_instanciable(Source_qdm_QC_VEF_P1NC,"Source_qdm_QC_VEF_P1NC",Terme_Source_Qdm_VEF_Face);
70DoubleTab& Source_qdm_QC_VEF_P1NC::ajouter_mere(DoubleTab& resu) const { return Terme_Source_Qdm_VEF_Face::ajouter(resu); }
71DoubleTab& Source_qdm_QC_VEF_P1NC::ajouter(DoubleTab& resu ) const { return ajouter_impl(resu); }
72void Source_qdm_QC_VEF_P1NC::contribuer_a_avec(const DoubleTab& resu, Matrice_Morse& mat) const { contribuer_a_avec_impl(resu,mat); }
73
74Implemente_instanciable(Darcy_QC_VEF_P1NC,"Darcy_QC_VEF_P1NC",Source_Darcy_VEF_Face);
77DoubleTab& Darcy_QC_VEF_P1NC::ajouter_mere(DoubleTab& resu) const { return Source_Darcy_VEF_Face::ajouter(resu); }
78DoubleTab& Darcy_QC_VEF_P1NC::ajouter(DoubleTab& resu ) const { return ajouter_impl(resu); }
79void Darcy_QC_VEF_P1NC::contribuer_a_avec(const DoubleTab& resu, Matrice_Morse& mat) const { contribuer_a_avec_impl(resu,mat); }
80
81Implemente_instanciable(Forchheimer_QC_VEF_P1NC,"Forchheimer_QC_VEF_P1NC",Source_Forchheimer_VEF_Face);
84DoubleTab& Forchheimer_QC_VEF_P1NC::ajouter_mere(DoubleTab& resu) const { return Source_Forchheimer_VEF_Face::ajouter(resu); }
85DoubleTab& Forchheimer_QC_VEF_P1NC::ajouter(DoubleTab& resu ) const { return ajouter_impl(resu); }
86void Forchheimer_QC_VEF_P1NC::contribuer_a_avec(const DoubleTab& resu, Matrice_Morse& mat) const { contribuer_a_avec_impl(resu,mat); }
void contribuer_a_avec(const DoubleTab &, Matrice_Morse &) const override
contribution to the implicit matrix of source terms, by default no contribution
DoubleTab & ajouter_mere(DoubleTab &) const
DoubleTab & ajouter(DoubleTab &) const override
DoubleTab & ajouter_mere(DoubleTab &) const
DoubleTab & ajouter(DoubleTab &) const override
void contribuer_a_avec(const DoubleTab &, Matrice_Morse &) const override
contribution to the implicit matrix of source terms, by default no contribution
Class defining operators and methods for all reading operation in an input flow (file,...
Definition Entree.h:42
void contribuer_a_avec(const DoubleTab &, Matrice_Morse &) const override
contribution to the implicit matrix of source terms, by default no contribution
DoubleTab & ajouter_mere(DoubleTab &) const
DoubleTab & ajouter(DoubleTab &) const override
Matrice_Morse class - Represents a (sparse) matrix M, not necessarily square,.
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
void contribuer_a_avec(const DoubleTab &, Matrice_Morse &) const override
contribution to the implicit matrix of source terms, by default no contribution
DoubleTab & ajouter(DoubleTab &) const override
DoubleTab & ajouter_mere(DoubleTab &) const
Anisotropic pressure drop (along a unit vector v and in the plane orthogonal to this vector).
DoubleTab & ajouter_mere(DoubleTab &) const
DoubleTab & ajouter(DoubleTab &) const override
void contribuer_a_avec(const DoubleTab &, Matrice_Morse &) const override
contribution to the implicit matrix of source terms, by default no contribution
Anisotropic pressure drop (along a unit vector v and in the plane orthogonal to this vector).
DoubleTab & ajouter_mere(DoubleTab &) const
DoubleTab & ajouter(DoubleTab &) const override
void contribuer_a_avec(const DoubleTab &, Matrice_Morse &) const override
contribution to the implicit matrix of source terms, by default no contribution
Directional pressure drop (along a unit vector v).
void contribuer_a_avec(const DoubleTab &, Matrice_Morse &) const override
contribution to the implicit matrix of source terms, by default no contribution
DoubleTab & ajouter(DoubleTab &) const override
DoubleTab & ajouter_mere(DoubleTab &) const
Isotropic pressure drop (proportional to -u).
DoubleTab & ajouter(DoubleTab &) const override
DoubleTab & ajouter_mere(DoubleTab &) const
void contribuer_a_avec(const DoubleTab &, Matrice_Morse &) const override
contribution to the implicit matrix of source terms, by default no contribution
class Perte_Charge_Reguliere_VEF_P1NC
DoubleTab & ajouter(DoubleTab &) const override
DoubleTab & ajouter_mere(DoubleTab &) const
DoubleTab & ajouter(DoubleTab &) const override
void contribuer_a_avec(const DoubleTab &, Matrice_Morse &) const override
contribution to the implicit matrix of source terms, by default no contribution
class Perte_Charge_Singuliere_VEF_Face
DoubleTab & ajouter(DoubleTab &) const override
Base class for output streams.
Definition Sortie.h:52
class Source_Darcy_VEF_Face
void contribuer_a_avec_impl(const DoubleTab &, Matrice_Morse &) const
class Source_Forchheimer_VEF_Face
virtual DoubleTab & ajouter(DoubleTab &) const
DoubleTab & ajouter(DoubleTab &) const override
void contribuer_a_avec(const DoubleTab &, Matrice_Morse &) const override
contribution to the implicit matrix of source terms, by default no contribution
DoubleTab & ajouter_mere(DoubleTab &) const
Acceleration source term specialized for the VEF discretization.
DoubleTab & ajouter(DoubleTab &) const override
Adds the term (la_source_ * rho * volume_entrelace) to the resu field.
class Terme_Source_Qdm_VEF_Face
DoubleTab & ajouter(DoubleTab &) const override