TRUST 1.9.8
HPC thermohydraulic platform
Loading...
Searching...
No Matches
Assembleur_P_EF.h
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#ifndef Assembleur_P_EF_included
17#define Assembleur_P_EF_included
18
19#include <Matrice_Morse_Sym.h>
20#include <Assembleur_base.h>
21#include <TRUST_Ref.h>
22
23class Domaine_Cl_EF;
24class Domaine_EF;
25
27{
28 Declare_instanciable(Assembleur_P_EF);
29
30public:
31 void associer_domaine_dis_base(const Domaine_dis_base&) override;
33 const Domaine_dis_base& domaine_dis_base() const override;
34 const Domaine_Cl_dis_base& domaine_Cl_dis_base() const override;
35 int assembler(Matrice&) override;
36 int assembler_rho_variable(Matrice&, const Champ_Don_base& rho) override;
37 int assembler_QC(const DoubleTab&, Matrice&) override;
38 int assembler_mat(Matrice&, const DoubleVect&, int incr_pression, int resoudre_en_u) override;
39 int modifier_secmem(DoubleTab&) override;
40 int modifier_solution(DoubleTab&) override;
41 void completer(const Equation_base&) override;
42 inline const Equation_base& equation() const;
43
44protected:
45 OBS_PTR(Equation_base) mon_equation;
46 OBS_PTR(Domaine_EF) le_dom_EF;
47 OBS_PTR(Domaine_Cl_EF) le_dom_Cl_EF;
49 int has_P_ref = 0;
50};
51
53{
54 if (!mon_equation)
55 {
56 Cerr << "\nError in Assembleur_P_EF::equation() : The equation is unknown !" << finl;
58 }
59 return mon_equation.valeur();
60}
61
62#endif
const Domaine_dis_base & domaine_dis_base() const override
void associer_domaine_cl_dis_base(const Domaine_Cl_dis_base &) override
OBS_PTR(Domaine_Cl_EF) le_dom_Cl_EF
OBS_PTR(Equation_base) mon_equation
void associer_domaine_dis_base(const Domaine_dis_base &) override
const Domaine_Cl_dis_base & domaine_Cl_dis_base() const override
OBS_PTR(Domaine_EF) le_dom_EF
void completer(const Equation_base &) override
int modifier_solution(DoubleTab &) override
DoubleTab les_coeff_pression
int assembler(Matrice &) override
int assembler_QC(const DoubleTab &, Matrice &) override
Assemble la matrice de pression pour un fluide quasi compressible laplacein(P) est remplace par div(g...
const Equation_base & equation() const
int assembler_mat(Matrice &, const DoubleVect &, int incr_pression, int resoudre_en_u) override
int modifier_secmem(DoubleTab &) override
int assembler_rho_variable(Matrice &, const Champ_Don_base &rho) override
Assemblage de la matrice div( porosite/rho * grad P ) Le type du champ "rho" a fournir depend de la d...
classe Champ_Don_base classe de base des Champs donnes (non calcules)
classe Domaine_Cl_dis_base Les objets Domaine_Cl_dis_base representent les conditions aux limites
class Domaine_EF
Definition Domaine_EF.h:59
classe Domaine_dis_base Cette classe est la base de la hierarchie des domaines discretisees.
classe Equation_base Le role d'une equation est le calcul d'un ou plusieurs champs....
Classe Matrice Classe generique de la hierarchie des matrices.
Definition Matrice.h:34
static void exit(int exit_code=-1)
Routine de sortie de TRUST dans une region Kokkos.
Definition Process.cpp:455