TrioCFD 1.9.9_beta
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 class Champ_front_var_instationnaire Derived class from Champ_front_var that represents fields on
24 *
25 * boundaries variable in space and in time.
26 * Champ_front_var_instationnaire fields are classified depending on whether
27 * their values depend or not on parameters external to
28 * the equation, as Champ_front_var_instationnaire_indep and
29 * Champ_front_var_instationnaire_dep.
30 * The implementation of the field computation must be done in the
31 * mettre_a_jour method.
32 * In the first case (indep), the initialiser method may
33 * call the mettre_a_jour method, but not in the second case
34 * (dep). In either case, it can use the unknown passed
35 * as a parameter as a first estimate.
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
Class Champ_Inc_base.
class Champ_front_var_instationnaire Derived class from Champ_front_var that represents fields on
void fixer_nb_valeurs_temporelles(int nb_cases) override
Overrides Champ_front_base::fixer_nb_valeurs_temporelles.
int reculer(double temps) override
Goes back to the desired time.
int initialiser(double temps, const Champ_Inc_base &inco) override
Initializes the current time and Gpoint.
DoubleTab & valeurs_au_temps(double temps) override
Returns the values at the desired time.
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
Advances to the desired time.
class Champ_front_var Derived class from Champ_front_base that represents a field on
static void exit(int exit_code=-1)
Exit routine for TRUST within a Kokkos region.
Definition Process.cpp:466