TrioCFD 1.9.9_beta
TrioCFD documentation
Loading...
Searching...
No Matches
Champ_front_synt.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 Champ_front_synt_included
17#define Champ_front_synt_included
18
19#include <Ch_front_var_instationnaire_dep.h>
20#include <TRUST_Ref.h>
21
22class Champ_Inc_base;
23
24/*! @brief Champ_front_synt Derived from Champ_front_base.
25 *
26 * @sa Champ_front_base
27 */
28
29
31{
32 Declare_instanciable(Champ_front_synt);
33
34 const double amp = 1.452762113;
35 const double pi=2.*acos(0.);
36 const double Cmu=0.09;
37
38public:
39
40 int initialiser(double temps, const Champ_Inc_base& inco) override;
41 Champ_front_base& affecter_(const Champ_front_base& ch) override;
42 void mettre_a_jour(double temps) override;
43
44protected :
46
47 DoubleVect moyenne;
48 DoubleVect dir_fluct;
49
50 int nbModes = -10;
51 double lenghtScale= 0.; // integral length scale in space
52 double timeScale= 0.; // integral length scale in time
53 double turbKinEn= 0.; // turbulent kinetic energy (k)
54 double turbDissRate= 0.; // turbulent dissipation rate (epsilon)
55 double KeOverKmin= 0.;
56 double ratioCutoffWavenumber= 0.; // instead of using kappa_mesh as the largest wavenumber, kappa_mesh/ratioCutoffWavenumber is used (ratioCutoffWavenumber>1 yields a better discretisation of the fluctuations => smoother result)
57 double temps_d_avant_= 0.;
58};
59
60#endif
61
class Ch_front_var_instationnaire_dep This abstract class represents a field on a boundary,
Class Champ_Inc_base.
class Champ_front_base Base class for the hierarchy of boundary fields.
Champ_front_synt Derived from Champ_front_base.
void mettre_a_jour(double temps) override
DOES NOTHING, to override.
Champ_front_base & affecter_(const Champ_front_base &ch) override
Not implemented!!
int initialiser(double temps, const Champ_Inc_base &inco) override
Updates the time.
OBS_PTR(Champ_Inc_base) ref_inco_