TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Eval_Dift_VDF_leaves.cpp
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#include <Eval_Dift_VDF_leaves.h>
17
19{
20 ind_Fluctu_Term = 0;
21 if (!loipar) ind_Fluctu_Term = 1;
22}
23
25{
27 ind_Fluctu_Term = 0;
28}
29
31{
33 if (le_modele_turbulence->has_loi_paroi_hyd())
34 {
35 // Modif E. Saikali : on fait le ref seulement si le tableau a ete initialise, sinon pointeur nulle
36 const DoubleTab& tab = le_modele_turbulence->loi_paroi().Cisaillement_paroi();
37 if (tab.size_array() > 0) tau_tan_.ref(tab);
38 }
39}
40
41double Eval_Dift_VDF_Face::tau_tan_impl(int face, int k) const
42{
43 const int nb_faces = le_dom->nb_faces();
44 const ArrOfInt& ind_faces_virt_bord = le_dom->ind_faces_virt_bord();
45 int f = (face >= tau_tan_.dimension(0)) ? ind_faces_virt_bord[face-nb_faces] : face;
46 if(f >= tau_tan_.dimension_tot(0))
47 {
48 Cerr << "Erreur dans tau_tan " << finl;
49 Cerr << "dimension : " << tau_tan_.dimension(0) << finl;
50 Cerr << "dimension_tot : " << tau_tan_.dimension_tot(0) << finl;
51 Cerr << "face : " << face << finl;
53 }
54 return tau_tan_(f,k);
55}
void associer_loipar(const Turbulence_paroi_scal_base &loi_paroi) override
void init_ind_fluctu_term() override
void mettre_a_jour() override
double tau_tan_impl(int face, int k) const
void mettre_a_jour() override
virtual void associer_loipar(const Turbulence_paroi_scal_base &loi_paroi)
static void exit(int exit_code=-1)
Routine de sortie de TRUST dans une region Kokkos.
Definition Process.cpp:455
_SIZE_ size_array() const
Classe Turbulence_paroi_scal_base Classe de base pour la hierarchie des classes representant les mode...