TrioCFD 1.9.9_beta
TrioCFD documentation
Loading...
Searching...
No Matches
Op_Conv_PolyMAC_CDO_iterateur_base.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_PolyMAC_CDO_iterateur_base_included
17#define Op_Conv_PolyMAC_CDO_iterateur_base_included
18
19#include <Iterateur_PolyMAC_CDO_base.h>
20#include <Operateur_Conv.h>
21#include <TRUST_Deriv.h>
22
24{
26public:
27 Op_Conv_PolyMAC_CDO_iterateur_base(const Iterateur_PolyMAC_CDO_base& iter_base) { iter_ = iter_base; }
28
29 inline DoubleTab& ajouter(const DoubleTab& inco, DoubleTab& resu) const override { return iter_->ajouter(inco, resu); }
30 inline DoubleTab& calculer(const DoubleTab& inco, DoubleTab& resu) const override { return iter_->calculer(inco, resu); }
31 inline void contribuer_a_avec(const DoubleTab& inco, Matrice_Morse& matrice) const override { iter_->ajouter_contribution(inco, matrice); }
32 inline void contribuer_bloc_vitesse(const DoubleTab& inco, Matrice_Morse& matrice) const override { iter_->ajouter_contribution_vitesse(inco, matrice); }
33 inline void contribuer_au_second_membre(DoubleTab& resu) const override { iter_->contribuer_au_second_membre(resu); }
34 virtual const Champ_base& vitesse() const =0;
35 virtual Champ_base& vitesse()=0;
36 void completer() override;
37 double calculer_dt_stab() const override;
38 void calculer_pour_post(Champ_base& espace_stockage, const Nom& option, int comp) const override;
39 Motcle get_localisation_pour_post(const Nom& option) const override;
40 int impr(Sortie& os) const override;
41 void associer_domaine_cl_dis(const Domaine_Cl_dis_base&) override;
42
43protected:
45};
46
47inline void eval_fluent(const double, const int, const int, DoubleVect&);
48
49#endif /* Op_Conv_PolyMAC_CDO_iterateur_base_included */
class Champ_base This class is the base of the fields hierarchy.
Definition Champ_base.h:43
class Domaine_Cl_dis_base Domaine_Cl_dis_base objects represent discretized boundary conditions
Matrice_Morse class - Represents a (sparse) matrix M, not necessarily square,.
A character string (Nom) in uppercase.
Definition Motcle.h:26
class Nom: a character string for naming TRUST objects.
Definition Nom.h:31
friend class Sortie
Definition Objet_U.h:70
OWN_PTR(Iterateur_PolyMAC_CDO_base) iter_
Op_Conv_PolyMAC_CDO_iterateur_base(const Iterateur_PolyMAC_CDO_base &iter_base)
double calculer_dt_stab() const override
Computes dt_stab.
DoubleTab & calculer(const DoubleTab &inco, DoubleTab &resu) const override
void associer_domaine_cl_dis(const Domaine_Cl_dis_base &) override
void contribuer_au_second_membre(DoubleTab &resu) const override
DOES NOTHING - to override in derived classes.
virtual const Champ_base & vitesse() const =0
Motcle get_localisation_pour_post(const Nom &option) const override
void completer() override
Associates the operator with the domaine_dis, the domaine_Cl_dis, and the unknown of its equation.
int impr(Sortie &os) const override
DOES NOTHING - to override in derived classes.
void contribuer_bloc_vitesse(const DoubleTab &inco, Matrice_Morse &matrice) const override
void calculer_pour_post(Champ_base &espace_stockage, const Nom &option, int comp) const override
DoubleTab & ajouter(const DoubleTab &inco, DoubleTab &resu) const override
virtual Champ_base & vitesse()=0
void contribuer_a_avec(const DoubleTab &inco, Matrice_Morse &matrice) const override
DOES NOTHING - to override in derived classes.
Operateur_Conv_base This class is the base of the hierarchy of operators representing.