TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Op_Diff_PolyMAC_MPFA_Elem.h
1/****************************************************************************
2* Copyright (c) 2025, 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 Op_Diff_PolyMAC_MPFA_Elem_included
17#define Op_Diff_PolyMAC_MPFA_Elem_included
18
19#include <Couplage_Parietal_PolyMAC_MPFA_helper.h>
20#include <Op_Diff_PolyMAC_MPFA_base.h>
21
22class Matrice_Morse;
23
25{
26
27 Declare_instanciable_sans_constructeur( Op_Diff_PolyMAC_MPFA_Elem ) ;
28
29public :
31 void completer() override;
32 void init_op_ext() const override; //fait plus de travail qu'en PolyMAC_HFV: op_ext + som_ext, pe_ext...
33
34 /* interface {dimensionner,ajouter}_blocs */
35 int has_interface_blocs() const override { return 1; }
36 double calculer_dt_stab() const override;
37 void dimensionner_blocs(matrices_t matrices, const tabs_t& semi_impl = {}) const override;
38 void ajouter_blocs(matrices_t matrices, DoubleTab& secmem, const tabs_t& semi_impl = {}) const override;
39 void modifier_pour_Cl(Matrice_Morse& la_matrice, DoubleTab& secmem) const override { }
40 void mettre_a_jour(double t) override;
41
42 /* flux paroi_interface : d_nucleation(e, k) : diametre de nucleation de la phase k dans l'element e */
43 const DoubleTab& d_nucleation() const;
44
45 inline const bool& has_echange_contact() const { return has_echange_contact_; }
46 inline const Couplage_Parietal_PolyMAC_MPFA_helper& couplage_parietal_helper() const { return couplage_parietal_helper_; }
47
48private:
49 bool is_pb_multi_ = false, is_pb_coupl_ = false, has_echange_contact_ = false, has_flux_par_ = false;
50 Couplage_Parietal_PolyMAC_MPFA_helper couplage_parietal_helper_;
51};
52
53/* comme des synonymes, mais avec l'info de ce qu'on est dans que_suis_je() */
55{
56 Declare_instanciable( Op_Dift_PolyMAC_MPFA_Elem ) ;
57};
58
59#endif /* Op_Diff_PolyMAC_MPFA_Elem_included */
Classe Matrice_Morse Represente une matrice M (creuse), non necessairement carree.
void mettre_a_jour(double t) override
DOES NOTHING - to override in derived classes.
void completer() override
Associe l'operateur au domaine_dis, le domaine_Cl_dis, et a l'inconnue de son equation.
int has_interface_blocs() const override
void ajouter_blocs(matrices_t matrices, DoubleTab &secmem, const tabs_t &semi_impl={}) const override
Assembles the diffusion contribution to the linear system.
void modifier_pour_Cl(Matrice_Morse &la_matrice, DoubleTab &secmem) const override
DOES NOTHING - to override in derived classes.
void dimensionner_blocs(matrices_t matrices, const tabs_t &semi_impl={}) const override
Dimensions the matrix blocks for the linear system.
const bool & has_echange_contact() const
double calculer_dt_stab() const override
Calcul dt_stab.
const DoubleTab & d_nucleation() const
const Couplage_Parietal_PolyMAC_MPFA_helper & couplage_parietal_helper() const
class Op_Diff_PolyMAC_MPFA_base