TrioCFD 1.9.9_beta
TrioCFD documentation
Loading...
Searching...
No Matches
Op_EF_base.h
1/****************************************************************************
2* Copyright (c) 2022, 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_EF_base_included
17#define Op_EF_base_included
18
19#include <TRUSTTabs_forward.h>
20#include <Matrice_Morse.h>
21#include <SFichier.h>
22
23//class Matrice_Morse;
24class Domaine_EF;
25class Domaine_Cl_EF;
26class Equation_base;
27class Sortie;
28class Operateur_base;
29
31{
32public :
33 void dimensionner(const Domaine_EF&, const Domaine_Cl_EF&, Matrice_Morse&) const;
34 void modifier_pour_Cl(const Domaine_EF&, const Domaine_Cl_EF&, Matrice_Morse&, DoubleTab&)const ;
35 void modifier_flux(const Operateur_base&) const;
36 int impr(Sortie&, const Operateur_base&) const;
37 int elem_contribue(const int elem) const;
38 void marque_elem( const Equation_base& eqn);
39protected:
41private:
42 mutable int controle_modifier_flux_;
43 ArrOfInt marqueur_elem_;
44 mutable SFichier Flux, Flux_moment, Flux_sum; // Fichiers .out
45};
46
47#endif
48
49
50
class Domaine_EF
Definition Domaine_EF.h:56
class Equation_base The role of an equation is the calculation of one or more fields....
Matrice_Morse class - Represents a (sparse) matrix M, not necessarily square,.
void dimensionner(const Domaine_EF &, const Domaine_Cl_EF &, Matrice_Morse &) const
Sizes the matrix that will receive the coefficients from the convection and diffusion operators for t...
void marque_elem(const Equation_base &eqn)
Matrice_Morse matrice_sto_
Definition Op_EF_base.h:40
int impr(Sortie &, const Operateur_base &) const
Prints the boundary fluxes of an EF operator at faces (i.e., diffusion, convection).
int elem_contribue(const int elem) const
void modifier_pour_Cl(const Domaine_EF &, const Domaine_Cl_EF &, Matrice_Morse &, DoubleTab &) const
Modification of the matrix coefficients and the right-hand side for Dirichlet conditions.
void modifier_flux(const Operateur_base &) const
Multiplies the boundary flux by rho cp or rho if necessary.
class Operateur_base This class is the base of the hierarchy of objects representing an
SFichier is to the C++ ofstream class what Sortie is to the C++ ostream class.
Definition SFichier.h:29
Base class for output streams.
Definition Sortie.h:52