TrioCFD 1.9.9_beta
TrioCFD documentation
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 List_Equations_Scalaires_Passifs_Especes Represents a list of passive scalar or species equations
27 *
28 * List_Equations_Scalaires_Passifs_Especes contains a list of equations
29 * for passive scalars or species and is seen as a single equation
30 * it holds a real list of 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 */
Class Champ_Inc_base.
class Equation_base The role of an equation is the calculation of one or more fields....
OWN_PTR(Parametre_equation_base) &parametre_equation()
List_Equations_Scalaires_Passifs_Especes Represents a list of passive scalar or species equations.
LIST(OWN_PTR(Equation_base)) list_eq
Milieu_base This class is the base of the (physical) medium hierarchy.
Definition Milieu_base.h:50
class Operateur Generic class of the operator hierarchy.
Definition Operateur.h:39
static void exit(int exit_code=-1)
Exit routine for TRUST within a Kokkos region.
Definition Process.cpp:466