TRUST 1.9.8
HPC thermohydraulic platform
Loading...
Searching...
No Matches
Multi_Sch_ThHyd.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 Multi_Sch_ThHyd_included
17#define Multi_Sch_ThHyd_included
18
19#include <Schema_Temps_base.h>
20
21/*! @brief classe Multi_Sch_ThHyd
22 *
23 * @sa Schema_Temps_base
24 */
26{
27
28 Declare_instanciable(Multi_Sch_ThHyd);
29
30public :
31
32 ////////////////////////////////
33 // //
34 // Caracteristiques du schema //
35 // //
36 ////////////////////////////////
37
38 int nb_valeurs_temporelles() const override;
39 int nb_valeurs_futures() const override;
40 double temps_futur(int i) const override;
41 double temps_defaut() const override;
42
43 /////////////////////////////////////////
44 // //
45 // Fin des caracteristiques du schema //
46 // //
47 /////////////////////////////////////////
48
50 bool iterateTimeStep(bool& converged) override;
51 //virtual void lire(const Motcle&, Entree&);
52 void set_param(Param& titi) const override;
53 int mettre_a_jour() override;
54
55 bool corriger_dt_calcule(double&) const override;
56 void completer() override;
57 void changer_temps_courant(const double) override;
58 int stop() const override;
59 void imprimer(Sortie&) const override;
60 /* virtual int lsauv() const; */
61
62
63private :
64 int nb_ss_pas_dt_=0;
65 OWN_PTR(Schema_Temps_base) sch_ns_;
66 OWN_PTR(Schema_Temps_base) sch_scalaires_;
67};
68
69
70#endif
classe Equation_base Le role d'une equation est le calcul d'un ou plusieurs champs....
classe Multi_Sch_ThHyd
int faire_un_pas_de_temps_eqn_base(Equation_base &) override
Effectue un pas de temps d'Euler explicite sur l'equation passee en parametre.
void completer() override
void imprimer(Sortie &) const override
Appel a l'objet sous-jacent Imprime le schema en temp sur un flot de sortie (si il y a lieu).
int nb_valeurs_futures() const override
Renvoie le nombre de valeurs temporelles futures.
int mettre_a_jour() override
Mise a jour du temps courant (t+=dt) et du nombre de pas de temps effectue (nb_pas_dt_++).
int stop() const override
Appel a l'objet sous-jacent Renvoie 1 si il y lieu de stopper le calcul pour differente raisons:
int nb_valeurs_temporelles() const override
Renvoie le nombre de valeurs temporelles a conserver.
void set_param(Param &titi) const override
bool iterateTimeStep(bool &converged) override
Calculate the U(n+1) unknown for each equation (if solved) of the problem with the selected time sche...
double temps_defaut() const override
Renvoie le le temps le temps que doivent rendre les champs a l'appel de valeurs().
bool corriger_dt_calcule(double &) const override
Corrige le pas de temps dt_min <= dt <= dt_max.
double temps_futur(int i) const override
Renvoie le le temps a la i-eme valeur future.
void changer_temps_courant(const double) override
Appel a l'objet sous-jacent Change le temps courant.
friend class Sortie
Definition Objet_U.h:75
Helper class to factorize the readOn method of Objet_U classes.
Definition Param.h:112
class Schema_Temps_base