TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Mod_echelle_cv_forcee.cpp
1/****************************************************************************
2* Copyright (c) 2015 - 2016, 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 <Mod_echelle_cv_forcee.h>
17#include <EFichier.h>
18#include <SFichier.h>
19#include <Fluide_Incompressible.h>
20
21
22Implemente_instanciable(Mod_echelle_cv_forcee,"Mod_echelle_convection_forcee",Mod_echelle_LRM_base);
23
24// printOn()
25/////
26
28{
29 return os ;
30}
31
32//// readOn
33//
34
36{
37
38 return is;
39
40}
41
42double Mod_echelle_cv_forcee::calculer_vv_bar(double y, double k, double u, double visco_cin)
43{
44
45 //Attention : vv_bar est calcule en y pour ParoiVDF_LRM et en yc pour Diffu_k !
46 //Dans Mod_echelle_LRM il est calcule par defaut en y et donc a interpoler pour Diffu_k.
47
48 double y_star,vv_bar;
49
50 y_star=y*sqrt(k)/visco_cin;
51 vv_bar=k*(4.65*1.e-5*y_star*y_star+4*1.e-4*y_star);
52
53 return vv_bar;
54}
55
56
57double Mod_echelle_cv_forcee::calculer_l_eps( double y, double k, double u, double visco_cin)
58{
59
60 //l_eps est calcule en y
61
62 double y_nu, l_eps, vv_bar;
63 vv_bar=calculer_vv_bar(y, k, u, visco_cin);
64 y_nu=y*sqrt(vv_bar)/visco_cin;
65 l_eps=(1.3*y)/(1+(2.12/y_nu));
66
67 return l_eps;
68
69}
70
71double Mod_echelle_cv_forcee::calculer_l_mu( double y, double k, double u, double visco_cin)
72{
73
74 //l_mu est calcule en yc
75
76 double l_mu;
77
78 // vv_bar=calculer_vv_bar(y, k, u, visco_cin);
79 // y_nu=y*sqrt(vv_bar)/visco_cin;
80 l_mu=0.33*y;
81
82 return l_mu;
83}
84
85
Class defining operators and methods for all reading operation in an input flow (file,...
Definition Entree.h:42
Classe Mod_echelle_LRM_base.
Classe Mod_echelle_cv_forcee.
double calculer_vv_bar(double y, double k, double u, double visco_cin) override
double calculer_l_eps(double y, double k, double u, double visco_cin) override
double calculer_l_mu(double y, double k, double u, double visco_cin) override
virtual Entree & readOn(Entree &)
Lecture d'un Objet_U sur un flot d'entree Methode a surcharger.
Definition Objet_U.cpp:293
virtual Sortie & printOn(Sortie &) const
Ecriture de l'objet sur un flot de sortie Methode a surcharger.
Definition Objet_U.cpp:282
Classe de base des flux de sortie.
Definition Sortie.h:52