TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Terme_Source_Constituant.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 Terme_Source_Constituant_included
17#define Terme_Source_Constituant_included
18
19#include <Equation_base.h>
20#include <TRUST_Ref.h>
21
22#include <SFichier.h>
23
24class Champ_base;
25class Champ_Don_base;
26
27/*! @brief Classe Terme_Source_Constituant Cette classe represente un terme source de l'equation de transport des constituants
28 *
29 * de type degagement volumique de puissance thermique.!!!!A MODIFIER
30 * Un objet Terme_Source_Constituant contient la puissance (OWN_PTR(Champ_base) donne
31 * utilisateur) et des references a la masse volumique (rho) et la chaleur.
32 * specifique (Cp).
33 *
34 * @sa Classe non instanciable., L'implementation des termes dependra de leur discretisation.
35 */
37{
38
39public :
40
41 inline void associer_champs(const Champ_base&);
42 void lire_donnees(Entree& );
43 void ouvrir_fichier(const Equation_base& eq, const Nom& out, const Nom& qsj, const Nom& description, SFichier& os,const Nom& type, const int flag) const;
44 int completer(const Champ_Inc_base& inco);
45
46 inline const Champ_Don_base& get_source() const
47 {
48 return la_source_constituant ;
49 };
50
51 void mettre_a_jour(double temps)
52 {
53 la_source_constituant->mettre_a_jour(temps);
54 };
55
56protected:
57 int colw_;
59 OWN_PTR(Champ_Don_base) la_source_constituant;
60
61};
62
63
64/*! @brief Associe les champs donnes rho (masse volumique) et Cp (chaleur specifique) a l'objet.
65 *
66 * @param (Champ_Don_base& rho) champ donne representant la masse volumique
67 * @param (Champ_Don_base& cp) champ donne representant la chaleur specifique
68 */
70{
71 rho_ref=rho;
72}
73
74#endif
classe Champ_Don_base classe de base des Champs donnes (non calcules)
Classe Champ_Inc_base.
classe Champ_base Cette classe est la base de la hierarchie des champs.
Definition Champ_base.h:43
Class defining operators and methods for all reading operation in an input flow (file,...
Definition Entree.h:42
classe Equation_base Le role d'une equation est le calcul d'un ou plusieurs champs....
class Nom Une chaine de caractere pour nommer les objets de TRUST
Definition Nom.h:31
Cette classe est a la classe C++ ofstream ce que la classe Sortie est a la classe C++ ostream Elle re...
Definition SFichier.h:27
Classe Terme_Source_Constituant Cette classe represente un terme source de l'equation de transport de...
const Champ_Don_base & get_source() const
void lire_donnees(Entree &)
Lit le terme de puissance a partir d'un flot d'entree.
OWN_PTR(Champ_Don_base) la_source_constituant
OBS_PTR(Champ_base) rho_ref
void associer_champs(const Champ_base &)
Associe les champs donnes rho (masse volumique) et Cp (chaleur specifique) a l'objet.
int completer(const Champ_Inc_base &inco)
void ouvrir_fichier(const Equation_base &eq, const Nom &out, const Nom &qsj, const Nom &description, SFichier &os, const Nom &type, const int flag) const