TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Operateur_Diff.h
1/****************************************************************************
2* Copyright (c) 2026, 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 Operateur_Diff_included
17#define Operateur_Diff_included
18
19#include <Operateur_Diff_base.h>
20#include <TRUST_Deriv.h>
21#include <Operateur.h>
22#include <TRUST_Ref.h>
23
24class Champ_base;
25
26/*! @brief classe Operateur_Diff Classe generique de la hierarchie des operateurs representant un terme
27 *
28 * de diffusion. Un objet Operateur_Diff peut referencer n'importe quel
29 * objet derivant de Operateur_Diff_base.
30 *
31 * @sa Operateur_Diff_base Operateur
32 */
33
34class Operateur_Diff: public Operateur, public OWN_PTR(Operateur_Diff_base)
35{
36 Declare_instanciable(Operateur_Diff);
37public:
38 Operateur_base& l_op_base() override;
39 const Operateur_base& l_op_base() const override;
40 DoubleTab& ajouter(const DoubleTab&, DoubleTab&) const override;
41 DoubleTab& calculer(const DoubleTab&, DoubleTab&) const override;
45 const Champ_base& diffusivite() const;
46 void typer() override;
47 void typer(const Nom&);
48 inline int op_non_nul() const override;
49
50protected:
51 OBS_PTR(Champ_base) la_diffusivite;
52};
53
55{
56 return this->operator bool();
57}
58#endif
classe Champ_base Cette classe est la base de la hierarchie des champs.
Definition Champ_base.h:43
class Nom Une chaine de caractere pour nommer les objets de TRUST
Definition Nom.h:31
classe Operateur_Diff Classe generique de la hierarchie des operateurs representant un terme
int op_non_nul() const override
OBS_PTR(Champ_base) la_diffusivite
DoubleTab & ajouter(const DoubleTab &, DoubleTab &) const override
Appel a l'objet sous-jacent.
const Champ_base & diffusivite() const
Renvoie le champ representant la diffusivite.
void associer_diffusivite_pour_pas_de_temps(const Champ_base &)
void associer_diffusivite(const Champ_base &)
Associe la diffusivite a l'operateur.
void associer_diffusivite_volumique(const Champ_base &)
void typer() override
Type l'operateur: se type "Op_Diff_"+discretisation() + ("_"ou"_Multi_inco_") + inconnue()....
DoubleTab & calculer(const DoubleTab &, DoubleTab &) const override
Appel a l'objet sous-jacent.
Operateur_base & l_op_base() override
Renvoie l'objet sous-jacent upcaste en Operateur_base.
classe Operateur_base Classe est la base de la hierarchie des objets representant un
classe Operateur Classe generique de la hierarchie des operateurs.
Definition Operateur.h:39