TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Champ_front_var_instationnaire.h
1/****************************************************************************
2* Copyright (c) 2025, 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
17#ifndef Champ_front_var_instationnaire_included
18#define Champ_front_var_instationnaire_included
19
20#include <Champ_front_var.h>
21
22
23/*! @brief classe Champ_front_var_instationnaire Classe derivee de Champ_front_var qui represente les champs aux
24 *
25 * frontieres variables en espace et dans le temps.
26 * Les Champ_front_var_instationnaire sont classes suivant que
27 * leurs valeurs dependent ou non de parametres externes a
28 * l'equation, en Champ_front_var_instationnaire_indep et
29 * Champ_front_var_instationnaire_dep.
30 * L'implementation du calcul du champ doit se faire dans la
31 * methode mettre_a_jour.
32 * Dans le premier cas (indep), la methode initialiser peut
33 * appeler la methode mettre_a_jour, mais pas dans le second cas
34 * (dep). Elle peut de toutes facons utiliser l'inconnue qui lui
35 * est passee en parametre comme une premiere estimation.
36 *
37 * @sa Champ_front_var
38 */
40{
41
43
44public:
45 void fixer_nb_valeurs_temporelles(int nb_cases) override;
46 int initialiser(double temps, const Champ_Inc_base& inco) override;
47 bool has_valeurs_au_temps(double temps) const override ;
48 DoubleTab& valeurs_au_temps(double temps) override;
49 const DoubleTab& valeurs_au_temps(double temps) const override;
50 int avancer(double temps) override;
51 int reculer(double temps) override;
52
53 virtual double valeur_au_temps_et_au_point(double temps,int som,double x,double y, double z,int comp) const
54 {
55 Cerr<<"valeur_au_temps_et_au_point mut be defined si valeur_au_temps_et_au_point_disponible()==1"<<finl;
56 exit();
57 return 0;
58 };
59 inline virtual int valeur_au_temps_et_au_point_disponible() const
60 {
61 return 0;
62 };
63protected :
64};
65
66#endif
Classe Champ_Inc_base.
classe Champ_front_var_instationnaire Classe derivee de Champ_front_var qui represente les champs aux
void fixer_nb_valeurs_temporelles(int nb_cases) override
Surcharge Champ_front_base::fixer_nb_valeurs_temporelles.
int reculer(double temps) override
Recule jusqu'au temps desire.
int initialiser(double temps, const Champ_Inc_base &inco) override
Initialise le temps courant et Gpoint.
DoubleTab & valeurs_au_temps(double temps) override
Renvoie les valeurs au temps desire.
virtual double valeur_au_temps_et_au_point(double temps, int som, double x, double y, double z, int comp) const
bool has_valeurs_au_temps(double temps) const override
int avancer(double temps) override
Avance jusqu'au temps desire.
classe Champ_front_var Classe derivee de Champ_front_base qui represente un champ sur
static void exit(int exit_code=-1)
Routine de sortie de TRUST dans une region Kokkos.
Definition Process.cpp:455