TrioCFD 1.9.9_beta
TrioCFD documentation
Loading...
Searching...
No Matches
Navier_Stokes_Turbulent_QC.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 Navier_Stokes_Turbulent_QC_included
17#define Navier_Stokes_Turbulent_QC_included
18
19#include <Navier_Stokes_Fluide_Dilatable_Proto.h>
20#include <Navier_Stokes_Turbulent.h>
21
22/*! @brief Navier-Stokes equation for a quasi-compressible fluid with turbulence modelling.
23 *
24 * Inherits from Navier_Stokes_Turbulent and Navier_Stokes_Fluide_Dilatable_Proto.
25 * Contains an OWN_PTR(Modele_turbulence_hyd_base) member representing the turbulence model.
26 *
27 * @sa Navier_Stokes_Turbulent OWN_PTR(Modele_turbulence_hyd_base) Pb_Thermohydraulique_Turbulent_QC
28 */
30{
31 Declare_instanciable(Navier_Stokes_Turbulent_QC);
32public:
33
34 void completer() override;
35 void mettre_a_jour(double) override;
36 bool initTimeStep(double dt) override;
37
38 int preparer_calcul() override;
39 int impr(Sortie&) const override;
40 void imprimer(Sortie& os) const override;
41
42 DoubleTab& derivee_en_temps_inco(DoubleTab&) override;
43 void assembler(Matrice_Morse& mat_morse, const DoubleTab& present, DoubleTab& secmem) override;
44 void assembler_avec_inertie(Matrice_Morse& mat_morse, const DoubleTab& present, DoubleTab& secmem) override;
45 inline const Champ_Inc_base& rho_la_vitesse() const override { return rho_la_vitesse_; }
46 void discretiser() override;
47 const Champ_base& get_champ(const Motcle& nom) const override;
48 bool has_champ(const Motcle& nom, OBS_PTR(Champ_base) &ref_champ) const override;
49 bool has_champ(const Motcle& nom) const override;
50 const Champ_Don_base& diffusivite_pour_transport() const override;
51};
52
53#endif /* Navier_Stokes_Turbulent_QC_included */
class Champ_Don_base base class of Given Fields (not calculated)
Class Champ_Inc_base.
class Champ_base This class is the base of the fields hierarchy.
Definition Champ_base.h:43
Matrice_Morse class - Represents a (sparse) matrix M, not necessarily square,.
A character string (Nom) in uppercase.
Definition Motcle.h:26
Navier-Stokes equation for a quasi-compressible fluid with turbulence modelling.
const Champ_Don_base & diffusivite_pour_transport() const override
void discretiser() override
Discretizes the equation.
int preparer_calcul() override
See Equation_base::preparer_calcul(). Assembles the pressure solver and initializes the pressure.
bool initTimeStep(double dt) override
Allocation and initialization of the unknown and boundary conditions until present+dt.
const Champ_Inc_base & rho_la_vitesse() const override
void assembler_avec_inertie(Matrice_Morse &mat_morse, const DoubleTab &present, DoubleTab &secmem) override
DoubleTab & derivee_en_temps_inco(DoubleTab &) override
Computes the time derivative of the velocity unknown, i.e. the acceleration dU/dt,...
void mettre_a_jour(double) override
Calls Navier_Stokes_Turbulent::mettre_a_jour and Convection_Diffusion_Chaleur_Turbulent_QC::mettre_a_...
void assembler(Matrice_Morse &mat_morse, const DoubleTab &present, DoubleTab &secmem) override
bool has_champ(const Motcle &nom, OBS_PTR(Champ_base) &ref_champ) const override
int impr(Sortie &) const override
Prints some information to an output stream: - maximum of div U.
void imprimer(Sortie &os) const override
Prints the equation operators if the time scheme indicates it is necessary.
void completer() override
Successive calls to: Navier_Stokes_std::completer().
const Champ_base & get_champ(const Motcle &nom) const override
Navier-Stokes equation for a viscous incompressible fluid (div U = 0) with turbulence modelling.
OBS_PTR(Fluide_base) le_fluide
Base class for output streams.
Definition Sortie.h:52