TrioCFD 1.9.9_beta
TrioCFD documentation
Loading...
Searching...
No Matches
Op_Dift_VDF_Elem_leaves.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_Dift_VDF_Elem_leaves_included
17#define Op_Dift_VDF_Elem_leaves_included
18
19#include <Op_Dift_VDF_Elem_base.h>
20#include <Eval_Dift_VDF_leaves.h>
21#include <Op_Diff_Dift_VDF.h>
22
23
24/// \cond DO_NOT_DOCUMENT
25class Op_Dift_VDF_Elem_leaves
26{ };
27/// \endcond
28
29class Champ_base;
30
49
50// ===========================================================================================================================================
51
70
71// ===========================================================================================================================================
72
73class Op_Dift_VDF_Multi_inco_Elem : public Op_Dift_VDF_Elem_base, public Op_Diff_Dift_VDF<Op_Dift_VDF_Multi_inco_Elem>
74{
75 Declare_instanciable_sans_constructeur(Op_Dift_VDF_Multi_inco_Elem);
76public:
78 inline double calculer_dt_stab() const override { return calculer_dt_stab_elem(); }
79 inline double alpha_(const int i) const override
80 {
81 const DoubleTab& alpha = diffusivite_pour_pas_de_temps().valeurs();
82 const int is_var = sub_type(Champ_Uniforme, diffusivite()) ? 0 : 1;
83 double alpha_lam = alpha(is_var * i,0);
84 for (int k = 1; k < alpha.line_size(); k++) alpha_lam = std::max(alpha_lam, alpha(is_var * i,k));
85 return alpha_lam;
86 }
91 inline const Champ_base& diffusivite() const override { return diffusivite_impl<Eval_Dift_VDF_Multi_inco_Elem>(); }
97};
98
99// ===========================================================================================================================================
100
101class Op_Dift_VDF_Multi_inco_Elem_Axi : public Op_Dift_VDF_Elem_base, public Op_Diff_Dift_VDF<Op_Dift_VDF_Multi_inco_Elem_Axi>
102{
103 Declare_instanciable_sans_constructeur(Op_Dift_VDF_Multi_inco_Elem_Axi);
104public:
106 inline double calculer_dt_stab() const override { return calculer_dt_stab_elem_axi(); }
107 inline double alpha_(const int i) const override
108 {
109 const DoubleTab& alpha = diffusivite().valeurs();
110 const int is_var = sub_type(Champ_Uniforme, diffusivite()) ? 0 : 1;
111 double alpha_lam = alpha(is_var * i,0);
112 for (int k = 1; k < alpha.line_size(); k++) alpha_lam = std::max(alpha_lam, alpha(i,k));
113 return alpha_lam;
114 }
115
126};
127
128#endif /* Op_Dift_VDF_Elem_leaves_included */
class Champ_Fonc_base Base class of fields that are functions of a calculated quantity
Class Champ_Inc_base.
virtual DoubleTab & valeurs()=0
Champ_Uniforme Represents a field that is constant in space and time.
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.
const Equation_base & equation() const
Returns the reference to the equation pointed to by MorEqn::mon_equation.
Definition MorEqn.h:62
void associer_diffusivite_impl(const Champ_base &ch_diff)
const double & alpha_impl(const int i) const
std::enable_if_t< _TYPE_==Type_Operateur::Op_DIFF_ELEM||_TYPE_==Type_Operateur::Op_DIFT_ELEM||_TYPE_==Type_Operateur::Op_DIFT_MULTIPHASE_ELEM, void > associer_impl(const Domaine_dis_base &domaine_dis, const Domaine_Cl_dis_base &domaine_cl_dis, const Champ_Inc_base &ch_diffuse)
const Champ_base & diffusivite_impl() const
void associer_pb(const Probleme_base &pb)
std::enable_if_t< _TYPE_==Type_Operateur::Op_DIFT_ELEM||_TYPE_==Type_Operateur::Op_DIFT_FACE, void > associer_diffusivite_turbulente_impl(const Champ_Fonc_base &visc_ou_diff_turb)
std::enable_if_t< _TYPE_==Type_Operateur::Op_DIFT_ELEM, void > completer_impl()
std::enable_if_t< _TYPE_==Type_Operateur::Op_DIFT_ELEM, void > associer_loipar_impl(const Turbulence_paroi_scal_base &loi_paroi)
double calculer_dt_stab() const override
Computes dt_stab.
void completer() override
Associates the operator with the domaine_dis, the domaine_Cl_dis, and the unknown of its equation.
void associer_diffusivite_turbulente(const Champ_Fonc_base &ch)
void associer_diffusivite(const Champ_base &ch) override
void associer_loipar(const Turbulence_paroi_scal_base &lp)
double alpha_(const int i) const override
const Champ_base & diffusivite() const override
void associer(const Domaine_dis_base &zd, const Domaine_Cl_dis_base &zcd, const Champ_Inc_base &ch) override
double calculer_dt_stab_elem_axi() const
Op_Dift_VDF_Elem_base(const Iterateur_VDF_base &iter_base)
double alpha_(const int i) const override
void associer_diffusivite_turbulente(const Champ_Fonc_base &ch)
const Champ_base & diffusivite() const override
void associer(const Domaine_dis_base &zd, const Domaine_Cl_dis_base &zcd, const Champ_Inc_base &ch) override
double calculer_dt_stab() const override
Computes dt_stab.
void associer_diffusivite(const Champ_base &ch) override
void associer_loipar(const Turbulence_paroi_scal_base &lp)
void completer() override
Associates the operator with the domaine_dis, the domaine_Cl_dis, and the unknown of its equation.
const Champ_base & diffusivite() const override
double calculer_dt_stab() const override
Computes dt_stab.
void associer_loipar(const Turbulence_paroi_scal_base &lp)
double alpha_(const int i) const override
void associer_diffusivite(const Champ_base &ch) override
void associer_diffusivite_turbulente(const Champ_Fonc_base &ch)
void associer(const Domaine_dis_base &zd, const Domaine_Cl_dis_base &zcd, const Champ_Inc_base &ch) override
void completer() override
Associates the operator with the domaine_dis, the domaine_Cl_dis, and the unknown of its equation.
void associer_diffusivite(const Champ_base &ch) override
double calculer_dt_stab() const override
Computes dt_stab.
void associer_loipar(const Turbulence_paroi_scal_base &lp)
void associer_diffusivite_turbulente(const Champ_Fonc_base &ch)
void associer(const Domaine_dis_base &zd, const Domaine_Cl_dis_base &zcd, const Champ_Inc_base &ch) override
const Champ_base & diffusivite() const override
void completer() override
Associates the operator with the domaine_dis, the domaine_Cl_dis, and the unknown of its equation.
double alpha_(const int i) const override
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...
int line_size() const
Definition TRUSTVect.tpp:67
Base class for the hierarchy of scalar wall-law models computing turbulent quantities near walls....