TRUST 1.9.8
HPC thermohydraulic platform
Loading...
Searching...
No Matches
Op_Conv_Centre_PolyMAC_CDO_Elem.h
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#ifndef Op_Conv_Centre_PolyMAC_CDO_Elem_included
17#define Op_Conv_Centre_PolyMAC_CDO_Elem_included
18
19#include <Op_Conv_PolyMAC_CDO_iterateur_base.h>
20#include <Eval_centre_PolyMAC_CDO_Elem.h>
21#include <Iterateur_PolyMAC_CDO_Elem.h>
22#include <Op_PolyMAC_CDO_Elem.h>
23
24/*! @brief class Op_Conv_Centre_PolyMAC_CDO_Elem
25 *
26 * Cette classe represente l'operateur de convection associe a une equation de
27 * transport d'un scalaire.
28 * La discretisation est PolyMAC_CDO
29 * Le champ convecte est scalaire
30 * Le schema de convection est du type Centre
31 * L'iterateur associe est de type Iterateur_PolyMAC_CDO_Elem
32 * L'evaluateur associe est de type Eval_centre_PolyMAC_CDO_Elem
33 *
34 */
35
37{
38
39 Declare_instanciable_sans_constructeur(Op_Conv_Centre_PolyMAC_CDO_Elem);
40
41public:
42
44 void associer(const Domaine_dis_base&, const Domaine_Cl_dis_base&, const Champ_Inc_base&) override;
45 void associer_vitesse(const Champ_base&) override;
46 const Champ_base& vitesse() const override;
47 Champ_base& vitesse() override;
48 inline void dimensionner(Matrice_Morse&) const override;
49 inline void dimensionner_bloc_vitesse(Matrice_Morse&) const override;
50 inline void modifier_pour_Cl(Matrice_Morse&, DoubleTab&) const override;
51
52protected:
54};
55
56// Ce constructeur permet de creer des classes filles (exemple : front_tracking)
61
62/*! @brief on dimensionne notre matrice.
63 *
64 */
66{
67 Op_PolyMAC_CDO_Elem::dimensionner(iter_->domaine(), iter_->domaine_Cl(), matrice);
68}
69
71{
72 Op_PolyMAC_CDO_Elem::dimensionner_bloc_vitesse(iter_->domaine(), iter_->domaine_Cl(), matrice);
73}
74
75inline void Op_Conv_Centre_PolyMAC_CDO_Elem::modifier_pour_Cl(Matrice_Morse& matrice, DoubleTab& secmem) const
76{
77 Op_PolyMAC_CDO_Elem::modifier_pour_Cl(iter_->domaine(), iter_->domaine_Cl(), matrice, secmem);
78}
79
80#endif
Classe Champ_Inc_base.
classe Champ_base Cette classe est la base de la hierarchie des champs.
Definition Champ_base.h:43
classe Domaine_Cl_dis_base Les objets Domaine_Cl_dis_base representent les conditions aux limites
classe Domaine_dis_base Cette classe est la base de la hierarchie des domaines discretisees.
Classe Matrice_Morse Represente une matrice M (creuse), non necessairement carree.
void dimensionner(Matrice_Morse &) const override
on dimensionne notre matrice.
void associer_vitesse(const Champ_base &) override
associe le champ de vitesse a l'evaluateur
void dimensionner_bloc_vitesse(Matrice_Morse &) const override
void associer(const Domaine_dis_base &, const Domaine_Cl_dis_base &, const Champ_Inc_base &) override
void modifier_pour_Cl(Matrice_Morse &, DoubleTab &) const override
DOES NOTHING - to override in derived classes.
const Champ_base & vitesse() const override
Op_Conv_PolyMAC_CDO_iterateur_base(const Iterateur_PolyMAC_CDO_base &iter_base)
void dimensionner(const Domaine_PolyMAC_CDO &, const Domaine_Cl_PolyMAC_family &, Matrice_Morse &) const
void dimensionner_bloc_vitesse(const Domaine_PolyMAC_CDO &, const Domaine_Cl_PolyMAC_family &, Matrice_Morse &) const
void modifier_pour_Cl(const Domaine_PolyMAC_CDO &, const Domaine_Cl_PolyMAC_family &, Matrice_Morse &, DoubleTab &) const