TRUST 1.9.8
HPC thermohydraulic platform
Loading...
Searching...
No Matches
Solveur_Implicite_base.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 Solveur_Implicite_base_included
17#define Solveur_Implicite_base_included
18
19#include <Parametre_implicite.h>
20
22{
23 Declare_base(Solveur_Implicite_base);
24
25public :
26 virtual bool iterer_eqn(Equation_base& equation, const DoubleTab& inconnue, DoubleTab& result, double dt, int numero_iteration, int& ok) =0;
27 virtual bool iterer_eqs(LIST(OBS_PTR(Equation_base)) eqs, int n, int& ok);
28 virtual bool est_compatible_avec_th_mono() const /* ce solveur est-il compatible avec une resolution monolithique de la thermique ? */
29 {
30 return 1; /* par defaut oui */
31 }
32 virtual int nb_valeurs_temporelles_pression() const /* nombre de valeurs temporelles des champs de pression dont le solveur a besoin */
33 {
34 return 1; /* par defaut 1 */
35 }
36 virtual double get_default_facsec_max() const /* facsec_max recommande pour ce schema */
37 {
38 return DMAXFLOAT; /* par defaut pas de limite : on est en implicite */
39 }
40 virtual double get_default_growth_factor() const /* taux de croissance du pas de temps */
41 {
42 return DMAXFLOAT; /* par defaut pas de limite : on est en implicite */
43 }
44 virtual OWN_PTR(Parametre_equation_base)& get_and_set_parametre_equation(Equation_base&);
46 {
47 return ref_cast(Parametre_implicite, get_and_set_parametre_equation(eqn).valeur());
48 }
49
50
51protected :
56 virtual Entree& lire(const Motcle&, Entree&);
57 virtual int get_controle_residu() const { return 0; }
58
59};
60
61#endif /* Solveur_Implicite_base_included */
classe Equation_base Le role d'une equation est le calcul d'un ou plusieurs champs....
Une chaine de caractere (Nom) en majuscules.
Definition Motcle.h:26
friend class Entree
Definition Objet_U.h:76
Objet_U()
Constructeur par defaut : attribue un numero d'identifiant unique a l'objet (object_id_),...
Definition Objet_U.cpp:55
classe Parametre_equation_base Un objet Parametre_equation_base est un objet regroupant les different...
classe Parametre_implicite Un objet Parametre_implicite est un objet regroupant les differentes
virtual int get_controle_residu() const
virtual Entree & lire(const Motcle &, Entree &)
virtual OWN_PTR(Parametre_equation_base) &get_and_set_parametre_equation(Equation_base &)
virtual bool iterer_eqs(LIST(OBS_PTR(Equation_base)) eqs, int n, int &ok)
Parametre_implicite & get_and_set_parametre_implicite(Equation_base &eqn)
Parametre_implicite param_defaut_
virtual int nb_valeurs_temporelles_pression() const
virtual double get_default_facsec_max() const
virtual bool iterer_eqn(Equation_base &equation, const DoubleTab &inconnue, DoubleTab &result, double dt, int numero_iteration, int &ok)=0
virtual double get_default_growth_factor() const
virtual bool est_compatible_avec_th_mono() const