TrioCFD 1.9.9_beta
TrioCFD documentation
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 /* is this solver compatible with a monolithic thermal resolution? */
29 {
30 return 1; /* default: yes */
31 }
32 virtual int nb_valeurs_temporelles_pression() const /* number of temporal values of pressure fields needed by the solver */
33 {
34 return 1; /* default: 1 */
35 }
36 virtual double get_default_facsec_max() const /* recommended facsec_max for this scheme */
37 {
38 return DMAXFLOAT; /* default: no limit (we are in implicit) */
39 }
40 virtual double get_default_growth_factor() const /* time step growth factor */
41 {
42 return DMAXFLOAT; /* default: no limit (we are in implicit) */
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 */
class Equation_base The role of an equation is the calculation of one or more fields....
A character string (Nom) in uppercase.
Definition Motcle.h:26
friend class Entree
Definition Objet_U.h:71
Objet_U()
Default constructor: assigns a unique identifier to the object (object_id_) and registers the object ...
Definition Objet_U.cpp:54
Parametre_equation_base A Parametre_equation_base object groups the various.
class Parametre_implicite A Parametre_implicite object groups together the various
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