TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Chimie.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 Chimie_included
17#define Chimie_included
18
19#include <Champs_compris_interface.h>
20#include <TRUST_List.h>
21
22#include <TRUST_Ref.h>
23#include <Reaction.h>
24#include <Objet_U.h>
25#include <Motcle.h>
26
27
28class Probleme_base;
31class Motcles;
32
34{
35 Declare_instanciable_with_param(Chimie);
36public:
37 virtual void completer(const Probleme_base& pb);
38 virtual int preparer_calcul();
39 void mettre_a_jour(double temps);
40 double calculer_pas_de_temps() const;
41 void discretiser(const Probleme_base&);
42 virtual const Champ_base& get_champ(const Motcle& nom) const;
43 virtual bool has_champ(const Motcle& nom, OBS_PTR(Champ_base) &ref_champ) const;
44 virtual bool has_champ(const Motcle& nom) const;
45 virtual void get_noms_champs_postraitables(Noms& nom,Option opt=NONE) const;
46 int sauvegarder(Sortie& ) const override;
47 int reprendre(Entree& ) override;
48
49protected:
50 LIST(Reaction) reactions_;
54 int nb_grains_ = -10;
60};
61#endif
Classe Champ_Inc_base.
classe Champ_base Cette classe est la base de la hierarchie des champs.
Definition Champ_base.h:43
liste_ngrains_
Definition Chimie.h:53
int sauvegarder(Sortie &) const override
Sauvegarde d'un Objet_U sur un flot de sortie Methode a surcharger.
Definition Chimie.cpp:591
Motcle espece_en_competition_micro_melange_
Definition Chimie.h:58
VECT(OBS_PTR(Champ_Inc_base)) liste_Y_
void discretiser(const Probleme_base &)
Definition Chimie.cpp:164
liste_ai_
Definition Chimie.h:53
int reprendre(Entree &) override
Reprise d'un Objet_U sur un flot d'entree Methode a surcharger.
Definition Chimie.cpp:596
virtual bool has_champ(const Motcle &nom, OBS_PTR(Champ_base) &ref_champ) const
virtual int preparer_calcul()
Definition Chimie.cpp:174
int modele_micro_melange_
Definition Chimie.h:56
virtual const Champ_base & get_champ(const Motcle &nom) const
Definition Chimie.cpp:560
double calculer_pas_de_temps() const
Definition Chimie.cpp:48
void mettre_a_jour(double temps)
Definition Chimie.cpp:181
virtual void completer(const Probleme_base &pb)
Definition Chimie.cpp:71
int marqueur_espece_en_competition_micro_melange_
Definition Chimie.h:59
OBS_PTR(Probleme_base) pb_
LIST(Reaction) reactions_
Motcles alias
Definition Chimie.h:52
liste_C_
Definition Chimie.h:53
DoubleTab Puissance_volumique_
Definition Chimie.h:55
liste_nd10_
Definition Chimie.h:53
int nb_grains_
Definition Chimie.h:54
double constante_modele_micro_melange_
Definition Chimie.h:57
virtual void get_noms_champs_postraitables(Noms &nom, Option opt=NONE) const
Definition Chimie.cpp:573
classe Discretisation_base Cette classe represente un schema de discretisation en espace,...
classe Domaine_dis_base Cette classe est la base de la hierarchie des domaines discretisees.
Une chaine de caractere (Nom) en majuscules.
Definition Motcle.h:26
Un tableau d'objets de la classe Motcle.
Definition Motcle.h:63
Un tableau de chaine de caracteres (VECT(Nom)).
Definition Noms.h:26
Inherits from Objet_U, adds the very common method set_param for the Objet_U hierarchy.
friend class Entree
Definition Objet_U.h:76
friend class Sortie
Definition Objet_U.h:75
classe Probleme_base C'est un Probleme_U qui n'est pas un couplage.