TRUST 1.9.8
HPC thermohydraulic platform
Loading...
Searching...
No Matches
List_Equations_Scalaires_Passifs_Especes.h
1/****************************************************************************
2* Copyright (c) 2024, 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 List_Equations_Scalaires_Passifs_Especes_included
17#define List_Equations_Scalaires_Passifs_Especes_included
18
19#include <Equation_base.h>
20#include <TRUST_Deriv.h>
21#include <TRUST_List.h>
22#include <TRUST_Ref.h>
23
24class Milieu_base;
25
26/*! @brief classe List_Equations_Scalaires_Passifs_Especes Represente une liste d'equations de scalaires passifs ou especes
27 *
28 * List_Equations_Scalaires_Passifs_Especes comprend une liste d'equations
29 * de scalaires passifs ou especes et est vue comme une equation
30 * elle porte une vraie liste d'equations
31 *
32 */
33
35{
36 Declare_instanciable(List_Equations_Scalaires_Passifs_Especes);
37public :
38 const Equation_base& equation(int i) const { return list_eq(i).valeur(); }
39 int nb_equation() { return list_eq.size(); }
40 int nb_equation() const { return list_eq.size(); }
41 int complete() { return complet; }
42 int complete() const { return complet; }
43 void discretiser() override { }
44 void associer_milieu_equation() override;
45 void associer_milieu_base(const Milieu_base& mil1) override { mil=mil1; }
46 const Milieu_base& milieu() const override { return mil.valeur(); }
47 Milieu_base& milieu() override { return mil.valeur(); }
48 int nombre_d_operateurs() const override { return 0; }
49
51 {
52 if (nb_equation()==0)
53 {
54 Cerr << "\nError in List_Equations_Scalaires_Passifs_Especes::equation() : The equation list is empty !" << finl;
56 }
57 return list_eq(i).valeur();
58 }
59
60 const Operateur& operateur(int) const override { throw; }
61 Operateur& operateur(int) override { throw; }
62
63 const Champ_Inc_base& inconnue() const override { throw; }
64 Champ_Inc_base& inconnue() override { throw; }
65
66protected :
69 int complet = 0;
70};
71
72#endif /* List_Equations_Scalaires_Passifs_Especes_included */
Classe Champ_Inc_base.
classe Equation_base Le role d'une equation est le calcul d'un ou plusieurs champs....
OWN_PTR(Parametre_equation_base) &parametre_equation()
classe List_Equations_Scalaires_Passifs_Especes Represente une liste d'equations de scalaires passifs...
LIST(OWN_PTR(Equation_base)) list_eq
classe Milieu_base Cette classe est la base de la hierarchie des milieux (physiques)
Definition Milieu_base.h:50
classe Operateur Classe generique de la hierarchie des operateurs.
Definition Operateur.h:39
static void exit(int exit_code=-1)
Routine de sortie de TRUST dans une region Kokkos.
Definition Process.cpp:455