TrioCFD 1.9.9_beta
TrioCFD documentation
Loading...
Searching...
No Matches
AssembleurPVDF_PF.h
1/****************************************************************************
2* Copyright (c) 2015 - 2016, 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 AssembleurPVDF_PF_included
17#define AssembleurPVDF_PF_included
18
19#include <Assembleur_P_VDF.h>
20
23class Front_VF;
24
26{
27 Declare_instanciable(AssembleurPVDF_PF);
28
29public:
30 void associer_domaine_dis_base(const Domaine_dis_base&) override;
32 const Domaine_dis_base& domaine_dis_base() const override;
33 const Domaine_Cl_dis_base& domaine_Cl_dis_base() const override;
34 int assembler(Matrice&) override;
35 int assembler_rho_variable(Matrice&, const Champ_Don_base& rho) override;
36 int assembler_QC(const DoubleTab&, Matrice&) override;
37 int modifier_secmem(DoubleTab&) override;
38 int modifier_solution(DoubleTab&) override;
39 void completer(const Equation_base&) override;
40
41protected:
42 int construire(Matrice& la_matrice);
43 int remplir(Matrice& la_matrice, const Champ_Don_base *rho_ptr);
44 void modifier_secmem_pression_imposee(const Neumann_sortie_libre& cond_lim, const Front_VF& frontiere_vf, DoubleTab& secmem);
45 void modifier_secmem_vitesse_imposee(const Entree_fluide_vitesse_imposee& cond_lim, const Front_VF& frontiere_vf, DoubleTab& secmem);
46 int liste_faces_periodiques(ArrOfInt& faces);
47
48 OBS_PTR(Domaine_VDF) le_dom_VDF_;
49 OBS_PTR(Domaine_Cl_VDF) le_dom_Cl_VDF_;
51
52 // Drapeau, indique si la pression est imposee quelque part sur une C.L.
53 int has_P_ref_ = 0;
54};
55
56#endif /* AssembleurPVDF_PF_included */
const Domaine_dis_base & domaine_dis_base() const override
int liste_faces_periodiques(ArrOfInt &faces)
Remplit le tableau faces avec la liste des indices des faces periodiques dans le tableau faces_voisin...
void completer(const Equation_base &) override
OBS_PTR(Domaine_VDF) le_dom_VDF_
ArrOfDouble les_coeff_pression_
int assembler_rho_variable(Matrice &, const Champ_Don_base &rho) override
Assemblage de la matrice de pression M telle que M*P = div(porosite/rho * grad (P)).
const Domaine_Cl_dis_base & domaine_Cl_dis_base() const override
int assembler_QC(const DoubleTab &, Matrice &) override
Assemble la matrice de pression pour un fluide quasi compressible.
int assembler(Matrice &) override
Assemblage de la matrice de pression M telle que M*P = div(porosite * grad (P)).
void modifier_secmem_pression_imposee(const Neumann_sortie_libre &cond_lim, const Front_VF &frontiere_vf, DoubleTab &secmem)
Modification du second membre du solveur en pression pour une condition "Neumann_sortie_libre".
void modifier_secmem_vitesse_imposee(const Entree_fluide_vitesse_imposee &cond_lim, const Front_VF &frontiere_vf, DoubleTab &secmem)
Modification du second membre du systeme en pression pour une condition aux limites de vitesse impose...
void associer_domaine_dis_base(const Domaine_dis_base &) override
OBS_PTR(Domaine_Cl_VDF) le_dom_Cl_VDF_
int modifier_secmem(DoubleTab &) override
Modification du second membre pour appliquer les conditions aux limites.
int construire(Matrice &la_matrice)
Determine les elements non nuls de la matrice et prepare le stockage.
int modifier_solution(DoubleTab &) override
int remplir(Matrice &la_matrice, const Champ_Don_base *rho_ptr)
Calcul des coefficients de la matrice de pression avec un champ de rho.
void associer_domaine_cl_dis_base(const Domaine_Cl_dis_base &) override
class Champ_Don_base base class of Given Fields (not calculated)
class Domaine_Cl_VDF
class Domaine_Cl_dis_base Domaine_Cl_dis_base objects represent discretized boundary conditions
class Domaine_VDF
Definition Domaine_VDF.h:61
class Domaine_dis_base This class is the base of the hierarchy of discretized domains.
Entree_fluide_vitesse_imposee Special case of the class Dirichlet_entree_fluide.
class Equation_base The role of an equation is the calculation of one or more fields....
class Front_VF
Definition Front_VF.h:36
Matrice class - Generic class in the matrix hierarchy.
Definition Matrice.h:34
Neumann_sortie_libre This class represents an open boundary without imposed velocity.