TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Navier_Stokes_Variable_Density.h
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
17#ifndef Navier_Stokes_Variable_Density_included
18#define Navier_Stokes_Variable_Density_included
19
20#include <Navier_Stokes_std.h>
21
22/*! @brief : class Navier_Stokes_Variable_Density
23 *
24 * <Description of class Navier_Stokes_Variable_Density>
25 */
26
28{
29
30 Declare_instanciable( Navier_Stokes_Variable_Density ) ;
31
32public :
34 {
35 public :
36 virtual ~Interface_Milieu() {};
37 virtual const Champ_Don_base& masse_volumique_variable() const = 0;
38 };
39 void associer_sch_tps_base(const Schema_Temps_base&) override;
40 const Champ_Don_base& diffusivite_pour_transport() const override;
41 void discretiser() override;
42 int preparer_calcul() override;
43 DoubleTab& derivee_en_temps_inco(DoubleTab&) override;
44// DoubleTab& corriger_derivee_impl(DoubleTab& derivee) override;
45 virtual void calculer_la_pression_en_pa() override;
46
47protected :
48 void modify_initial_gradP(DoubleTrav&) override;
49
50private :
51 void rho_aux_faces(const DoubleTab& tab_rho, DoubleTab& tab_rho_face);
52
53 OWN_PTR(Champ_Don_base) rho_faces_;
54};
55
56#endif /* Navier_Stokes_Variable_Density_included */
classe Champ_Don_base classe de base des Champs donnes (non calcules)
virtual const Champ_Don_base & masse_volumique_variable() const =0
: class Navier_Stokes_Variable_Density
int preparer_calcul() override
cf Equation_base::preparer_calcul() Assemblage du solveur pression et
DoubleTab & derivee_en_temps_inco(DoubleTab &) override
Returns the time derivative of the unknown I of the equation: dI/dt = M-1*(sum(operators(I) + sources...
void associer_sch_tps_base(const Schema_Temps_base &) override
S'associe au schema_en_temps.
void discretiser() override
Dicretise l'equation.
virtual void calculer_la_pression_en_pa() override
Calcul de "la_pression_en_pa" en fonction de "la_pression".
const Champ_Don_base & diffusivite_pour_transport() const override
class Schema_Temps_base