TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Schema_Euler_Implicite_Stationnaire.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#ifndef Schema_Euler_Implicite_Stationnaire_included
17#define Schema_Euler_Implicite_Stationnaire_included
18
19/*! @brief class Schema_Euler_Implicite_Stationnaire Inherits from Schema_Euler_Implicite and uses the Implicit_steady solver
20 *
21 * to perform time steps using a local (per-face) pseudo-time step.
22 *
23 */
24#include <Schema_Euler_Implicite.h>
25
26class Probleme_Couple;
27
29{
30
31 Declare_instanciable(Schema_Euler_Implicite_Stationnaire);
32
33public :
34 void set_param(Param& ) const override;
35 int mettre_a_jour() override;
36 int reprendre(Entree& ) override;
37 void ajouter_inertie(Matrice_Base& mat_morse,DoubleTab& secmem,const Equation_base& eqn) const override;
38 void initialize() override;
39
40 void mettre_a_jour_dt_stab() override;
41 bool corriger_dt_calcule(double& dt_calc) const override;
42 bool iterateTimeStep(bool& converged) override;
44 inline DoubleVect& get_dt_loc() { return dt_loc_; }
45 bool isStationary() const override;
46
47protected:
48 double max_dt_loc_ = 1.0; // max of dt_loc_
49 double steady_security_factor_ = 0.8; // CFL safety factor for local time step
50 DoubleVect dt_loc_; // local time steps used by all 3 steps; updated from dt_locaux_ only when variation exceeds seuil_variation_dt_
51
52};
53
54#endif
55
Class defining operators and methods for all reading operation in an input flow (file,...
Definition Entree.h:42
classe Equation_base Le role d'une equation est le calcul d'un ou plusieurs champs....
Classe Matrice_Base Classe de base de la hierarchie des matrices.
Helper class to factorize the readOn method of Objet_U classes.
Definition Param.h:112
classe Probleme_Couple C'est la classe historique de couplage de TRUST.
bool isStationary() const override
Retourne 1 si lors du dernier pas de temps, le probleme n'a pas evolue.
bool iterateTimeStep(bool &converged) override
Calculate the U(n+1) unknown for each equation (if solved) of the problem with the selected time sche...
int mettre_a_jour() override
Mise a jour du temps courant (t+=dt) et du nombre de pas de temps effectue (nb_pas_dt_++).
bool corriger_dt_calcule(double &dt_calc) const override
Corrige le pas de temps calcule que l'on passe en parametre et verifie qu'il n'est pas "trop" petit (...
void ajouter_inertie(Matrice_Base &mat_morse, DoubleTab &secmem, const Equation_base &eqn) const override
int reprendre(Entree &) override
Reprise d'un Objet_U sur un flot d'entree Methode a surcharger.