TrioCFD 1.9.9_beta
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 Operateur_Diff Generic class of the hierarchy of operators representing a diffusion
27 *
28 * term. An Operateur_Diff object can reference any object
29 * derived from 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
class Champ_base This class is the base of the fields hierarchy.
Definition Champ_base.h:43
class Nom: a character string for naming TRUST objects.
Definition Nom.h:31
Operateur_Diff Generic class of the hierarchy of operators representing a diffusion.
int op_non_nul() const override
OBS_PTR(Champ_base) la_diffusivite
DoubleTab & ajouter(const DoubleTab &, DoubleTab &) const override
Call to the underlying object.
const Champ_base & diffusivite() const
Returns the field representing the diffusivity.
void associer_diffusivite_pour_pas_de_temps(const Champ_base &)
void associer_diffusivite(const Champ_base &)
Associates the diffusivity to the operator.
void associer_diffusivite_volumique(const Champ_base &)
void typer() override
Types the operator: types as "Op_Diff_"+discretisation() + ("_" or "_Multi_inco_") + inconnue()....
DoubleTab & calculer(const DoubleTab &, DoubleTab &) const override
Call to the underlying object.
Operateur_base & l_op_base() override
Returns the underlying object upcast to Operateur_base.
class Operateur_base This class is the base of the hierarchy of objects representing an
class Operateur Generic class of the operator hierarchy.
Definition Operateur.h:39