TRUST 1.9.8
HPC thermohydraulic platform
Loading...
Searching...
No Matches
Sch_CN_EX_iteratif.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 Sch_CN_EX_iteratif_included
17#define Sch_CN_EX_iteratif_included
18
19#include <Sch_CN_iteratif.h>
20/*! @brief classe Sch_CN_EX_iteratif
21 *
22 * Ce schema en temps implemente quelques astuces en plus de Sch_CN_iteratif pour
23 * le stabiliser au-dela de son domaine de stabilite naturel (facsec<2).
24 *
25 * Un facteur d'amortissement des iterations est defini : omega.
26 * Il ameliore la stabilite, mais deterore la qualite de la resolution :
27 * Aux petits nombres d'iterations, les derivees temporelles sont sous-estimees
28 * et les lois de conservation ne sont plus necessairement satisfaites.
29 *
30 * Pour augmenter le pas de temps, les equations autres que Navier-Stokes sont resolues
31 * via le calcul de plusieurs pas de temps d'Euler explicite.
32 * A chaque iteration de Sch_CN_iteratif, les n pas de temps d'Euler explicite sont recalcules.
33 *
34 * Ce schema est adapte aux cas industriels de type gros calculs hydrauliques LES avec
35 * thermique couplee a du solide
36 *
37 *
38 * @sa Sch_CN_iteratif
39 */
41{
42 Declare_instanciable(Sch_CN_EX_iteratif);
43
44public :
45
46 void set_param(Param& titi) const override;
47 void mettre_a_jour_dt_stab() override;
48
49protected :
50
51 bool iterateTimeStepOnEquation(int i,bool& converged) override;
52 virtual bool iterateTimeStepOnNS(int i,bool& converged);
53 virtual bool iterateTimeStepOnOther(int i,bool& converged);
54
55 double omega=0.1;
56 void ajuster_facsec(type_convergence cv) override;
57
58};
59
60#endif
Helper class to factorize the readOn method of Objet_U classes.
Definition Param.h:112
classe Sch_CN_EX_iteratif
virtual bool iterateTimeStepOnOther(int i, bool &converged)
void mettre_a_jour_dt_stab() override
Ne tient compte que de l'equation de Navier Stokes du probleme (s'il y en a une) Les autres ne sont p...
virtual bool iterateTimeStepOnNS(int i, bool &converged)
void ajuster_facsec(type_convergence cv) override
void set_param(Param &titi) const override
bool iterateTimeStepOnEquation(int i, bool &converged) override
Calcule une iteration de la resolution sur l'equation i.
classe Sch_CN_iteratif Schema en temps alternant un demi-pas de temps d'Euler implicite et un demi-pa...