TrioCFD 1.9.9_beta
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
class Equation_base The role of an equation is the calculation of one or more fields....
Matrice_Base class - Base class of the matrix hierarchy.
Helper class to factorize the readOn method of Objet_U classes.
Definition Param.h:112
Probleme_Couple This is the historical coupling class of TRUST.
bool isStationary() const override
Returns 1 if during the last time step, the problem has not evolved.
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
Updates the current time (t+=dt) and the number of time steps performed (nb_pas_dt_++).
bool corriger_dt_calcule(double &dt_calc) const override
Corrects the computed time step passed as parameter and verifies it is not "too" small (< dt_min_).
void ajouter_inertie(Matrice_Base &mat_morse, DoubleTab &secmem, const Equation_base &eqn) const override
int reprendre(Entree &) override
Restores an Objet_U from an input stream. Virtual method to override.