TrioCFD 1.9.9_beta
TrioCFD documentation
Loading...
Searching...
No Matches
Convection_Diffusion_Turbulent.h
1/****************************************************************************
2* Copyright (c) 2025, 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 Convection_Diffusion_Turbulent_included
17#define Convection_Diffusion_Turbulent_included
18
19#include <Modele_turbulence_scal_base.h>
20#include <Equation_base.h>
21#include <TRUST_Deriv.h>
22
23class Operateur_Diff;
24
25/*! @brief Mixin class for turbulent convection-diffusion of one or more scalar quantities.
26 *
27 * Handles temperature, a single concentration, or multiple concentrations in a fluid
28 * satisfying the incompressibility condition div U = 0, with turbulence modelling.
29 * This class is not, on its own, part of the equation hierarchy (Objet_U/Equation_base);
30 * it is meant to be combined via multiple inheritance to produce turbulent equation classes
31 * (see e.g. Convection_Diffusion_Temperature_Turbulent).
32 *
33 * @sa Convection_Diffusion_std Mod_turb_scal, Convection_Diffusion_Temperature_Turbulent, Convection_Diffusion_Concentration_Turbulent
34 */
36{
37public :
39
40 // Now accessed via equation().get_modele(TURBULENCE) to retrieve
41 // the turbulence model and then the turbulent diffusion values array
42 void completer();
43 virtual bool initTimeStep(double dt);
44 int preparer_calcul();
45 virtual std::vector<YAML_data> data_a_sauvegarder() const;
46 virtual int sauvegarder(Sortie&) const;
47 virtual int reprendre(Entree&);
48 virtual void mettre_a_jour(double);
50
51protected:
53 OWN_PTR(Modele_turbulence_scal_base) le_modele_turbulence;
54};
55
56#endif /* Convection_Diffusion_Turbulent_included */
Mixin class for turbulent convection-diffusion of one or more scalar quantities.
int preparer_calcul()
Prepares the computation.
void completer()
Completes the turbulence model.
Entree & lire_op_diff_turbulent(Entree &, const Equation_base &, Operateur_Diff &)
Entree & lire_modele(Entree &, const Equation_base &)
virtual int sauvegarder(Sortie &) const
Simple call to Modele_turbulence_scal_base::sauvegarder(Sortie&) on the turbulence member.
virtual void mettre_a_jour(double)
Time update of the turbulence model.
OWN_PTR(Modele_turbulence_scal_base) le_modele_turbulence
virtual int reprendre(Entree &)
Restores from a checkpoint via an input stream.
virtual std::vector< YAML_data > data_a_sauvegarder() const
for PDI IO: retrieve name, type and dimensions of the fields to save/restore
Class defining operators and methods for all reading operation in an input flow (file,...
Definition Entree.h:42
class Equation_base The role of an equation is the calculation of one or more fields....
Base class for scalar turbulence models coupled to a Navier-Stokes convection-diffusion equation.
Operateur_Diff Generic class of the hierarchy of operators representing a diffusion.
Base class for output streams.
Definition Sortie.h:52