TrioCFD 1.9.9_beta
TrioCFD documentation
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 * Convection operator for a scalar transport equation using the PolyMAC_CDO
27 * discretization. The convected field is scalar, the convection scheme is
28 * centered, the associated iterator is Iterateur_PolyMAC_CDO_Elem, and the
29 * associated evaluator is Eval_centre_PolyMAC_CDO_Elem.
30 *
31 */
32
34{
35
36 Declare_instanciable_sans_constructeur(Op_Conv_Centre_PolyMAC_CDO_Elem);
37
38public:
39
41 void associer(const Domaine_dis_base&, const Domaine_Cl_dis_base&, const Champ_Inc_base&) override;
42 void associer_vitesse(const Champ_base&) override;
43 const Champ_base& vitesse() const override;
44 Champ_base& vitesse() override;
45 inline void dimensionner(Matrice_Morse&) const override;
46 inline void dimensionner_bloc_vitesse(Matrice_Morse&) const override;
47 inline void modifier_pour_Cl(Matrice_Morse&, DoubleTab&) const override;
48
49protected:
51};
52
53// This constructor allows creating derived classes (e.g., front_tracking)
58
59/*! @brief Sizes the matrix.
60 *
61 */
63{
64 Op_PolyMAC_CDO_Elem::dimensionner(iter_->domaine(), iter_->domaine_Cl(), matrice);
65}
66
68{
69 Op_PolyMAC_CDO_Elem::dimensionner_bloc_vitesse(iter_->domaine(), iter_->domaine_Cl(), matrice);
70}
71
72inline void Op_Conv_Centre_PolyMAC_CDO_Elem::modifier_pour_Cl(Matrice_Morse& matrice, DoubleTab& secmem) const
73{
74 Op_PolyMAC_CDO_Elem::modifier_pour_Cl(iter_->domaine(), iter_->domaine_Cl(), matrice, secmem);
75}
76
77#endif
Class Champ_Inc_base.
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
class Domaine_dis_base This class is the base of the hierarchy of discretized domains.
Matrice_Morse class - Represents a (sparse) matrix M, not necessarily square,.
void dimensionner(Matrice_Morse &) const override
Sizes the matrix.
Op_Conv_Centre_PolyMAC_CDO_Elem()
Constructor. Initializes the iterator with a centered evaluator.
void associer_vitesse(const Champ_base &) override
Associates the velocity field to the evaluator.
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