TrioCFD 1.9.9_beta
TrioCFD documentation
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 Time scheme that splits the time step between a Navier-Stokes sub-scheme and a scalar sub-scheme.
22 *
23 * @sa Schema_Temps_base
24 */
26{
27
28 Declare_instanciable(Multi_Sch_ThHyd);
29
30public :
31
32 ////////////////////////////////
33 // //
34 // Scheme characteristics //
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 // End of scheme characteristics //
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
class Equation_base The role of an equation is the calculation of one or more fields....
Time scheme that splits the time step between a Navier-Stokes sub-scheme and a scalar sub-scheme.
int faire_un_pas_de_temps_eqn_base(Equation_base &) override
Performs one explicit Euler time step on the given equation.
void completer() override
void imprimer(Sortie &) const override
Call to the underlying object. Prints the time scheme to an output stream (if applicable).
int nb_valeurs_futures() const override
Returns the number of future time values.
int mettre_a_jour() override
Updates the current time (t+=dt) and the number of time steps performed (nb_pas_dt_++).
int stop() const override
Call to the underlying object. Returns 1 if the calculation should be stopped for various reasons:
int nb_valeurs_temporelles() const override
Returns the number of time values to keep.
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
Returns the time that fields should return when calling valeurs().
bool corriger_dt_calcule(double &) const override
Corrects the time step so that dt_min <= dt <= dt_max.
double temps_futur(int i) const override
Returns the time at the i-th future value.
void changer_temps_courant(const double) override
Call to the underlying object. Changes the current time.
friend class Sortie
Definition Objet_U.h:70
Helper class to factorize the readOn method of Objet_U classes.
Definition Param.h:112
class Schema_Temps_base