TrioCFD 1.9.9_beta
TrioCFD documentation
Loading...
Searching...
No Matches
Operateur_Diff_base.h
1/****************************************************************************
2* Copyright (c) 2025, 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_base_included
17#define Operateur_Diff_base_included
18
19#include <Support_Champ_Masse_Volumique.h>
20#include <Correlation_base.h>
21#include <Operateur_base.h>
22#include <TRUST_Ref.h>
23
24class Champ_base;
25
26/*! @brief Operateur_Diff_base This class is the base of the hierarchy of operators representing
27 *
28 * a diffusion term in an equation. The choice of term depends
29 * on the laminar or turbulent modelling of the flow, on the
30 * discretisation and on the type of the diffusivity field. These variants
31 * give rise to derived classes of Operateur_Diff_base.
32 *
33 * @sa Operateur_base Operateur_Diff, Abstract class, Abstract method, void associer_diffusivite(const Champ_Don_base& ), const Champ_Don_base& diffusivite() const
34 */
37{
38 Declare_base(Operateur_Diff_base);
39public:
40 virtual void associer_diffusivite(const Champ_base&) = 0;
42 virtual void associer_diffusivite_volumique(const Champ_base&);
43 virtual const Champ_base& diffusivite() const=0;
44 inline virtual void calculer_borne_locale(DoubleVect& ,double,double ) const {};
45
46 //list of Op_Diff from problems solved simultaneously (monolithic thermal)
47 mutable std::vector<const Operateur_Diff_base *> op_ext;
48 virtual void init_op_ext() const { op_ext = { this }; } //filling of op_ext (cannot be done in completer(), too early)
49
50 virtual bool is_turb() const { return false; }
51 virtual const Correlation_base* correlation_viscosite_turbulente() const { return nullptr; }
52 virtual void calculer_von_mises(const DoubleTab& deplacement, DoubleTab& deformation, DoubleTab& contraintes, DoubleTab& von_mises) const { throw; }
53
54protected:
55 virtual const Champ_base& diffusivite_pour_pas_de_temps() const;
56 OBS_PTR(Champ_base) diffusivite_pour_pas_de_temps_;
57};
58
59#endif
class Champ_base This class is the base of the fields hierarchy.
Definition Champ_base.h:43
Operateur_Diff_base This class is the base of the hierarchy of operators representing.
OBS_PTR(Champ_base) diffusivite_pour_pas_de_temps_
std::vector< const Operateur_Diff_base * > op_ext
virtual const Correlation_base * correlation_viscosite_turbulente() const
virtual void associer_diffusivite(const Champ_base &)=0
virtual void calculer_von_mises(const DoubleTab &deplacement, DoubleTab &deformation, DoubleTab &contraintes, DoubleTab &von_mises) const
virtual void calculer_borne_locale(DoubleVect &, double, double) const
virtual void associer_diffusivite_volumique(const Champ_base &)
virtual bool is_turb() const
virtual const Champ_base & diffusivite() const =0
virtual void associer_diffusivite_pour_pas_de_temps(const Champ_base &)
Associates the true diffusivity in m^2/s (in QC for example, the operator is applied to rho*u,...
virtual const Champ_base & diffusivite_pour_pas_de_temps() const
Returns the field corresponding to the true diffusivity of the medium used for the time step computat...
virtual void init_op_ext() const
class Operateur_base This class is the base of the hierarchy of objects representing an
Support_Champ_Masse_Volumique()
Constructor of the class.