TrioCFD 1.9.9_beta
TrioCFD documentation
Loading...
Searching...
No Matches
Op_Dift_Multiphase_VDF_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_Dift_Multiphase_VDF_Elem_included
17#define Op_Dift_Multiphase_VDF_Elem_included
18
19#include <Transport_turbulent_base.h>
20#include <Op_Dift_Multiphase_proto.h>
21#include <Op_Dift_VDF_Elem_base.h>
22#include <Eval_Dift_VDF_leaves.h>
23#include <Op_Diff_Dift_VDF.h>
24
25class Op_Dift_Multiphase_VDF_Elem : public Op_Dift_VDF_Elem_base, public Op_Diff_Dift_VDF<Op_Dift_Multiphase_VDF_Elem>, public Op_Dift_Multiphase_proto
26{
27 Declare_instanciable_sans_constructeur(Op_Dift_Multiphase_VDF_Elem);
28public:
30
31 void creer_champ(const Motcle& motlu) override;
32 void get_noms_champs_postraitables(Noms& nom, Option opt = NONE) const override;
33 void completer() override;
34 void mettre_a_jour(double ) override;
37
38 bool is_turb() const override { return true; }
39 double calculer_dt_stab() const override;
40 double alpha_(const int i) const override { throw; }
41 const Correlation_base* correlation_viscosite_turbulente() const override { return &(corr_.valeur()); }
42 inline const Correlation_base& correlation() const { return corr_.valeur(); }
43 inline const DoubleTab& alpha_() const { return tab_alpha_impl<Eval_Dift_Multiphase_VDF_Elem>(); }
44
49
54
55 inline const Champ_base& diffusivite() const override
56 {
58 }
59
60 int dimension_min_nu() const // so that the correlation forces the anisotropic mode (cf. GGDH)
61 {
62 throw;
63 }
64
69};
70
71#endif /* Op_Dift_Multiphase_VDF_Elem_included */
class Champ_Fonc_base Base class of fields that are functions of a calculated quantity
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.
A character string (Nom) in uppercase.
Definition Motcle.h:26
An array of character strings (VECT(Nom)).
Definition Noms.h:26
void associer_diffusivite_impl(const Champ_base &ch_diff)
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)
std::enable_if_t< _TYPE_==Type_Operateur::Op_DIFT_MULTIPHASE_FACE||_TYPE_==Type_Operateur::Op_DIFT_MULTIPHASE_ELEM, const DoubleTab & > get_diffusivite_turbulente_multiphase_impl() const
const DoubleTab & get_diffusivite_turbulente() const
void get_noms_champs_postraitables(Noms &nom, Option opt=NONE) const override
void associer_diffusivite(const Champ_base &ch) override
void associer_diffusivite_turbulente(const Champ_Fonc_base &ch)
const Correlation_base & correlation() const
const Correlation_base * correlation_viscosite_turbulente() const override
double alpha_(const int i) const override
void completer() override
Associates the operator with the domaine_dis, the domaine_Cl_dis, and the unknown of its equation.
double calculer_dt_stab() const override
Computes dt_stab.
void creer_champ(const Motcle &motlu) override
void mettre_a_jour(double) override
DOES NOTHING - to override in derived classes.
void associer_loipar(const Turbulence_paroi_scal_base &)
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
Op_Dift_VDF_Elem_base(const Iterateur_VDF_base &iter_base)
Base class for the hierarchy of scalar wall-law models computing turbulent quantities near walls....