TRUST 1.9.8
HPC thermohydraulic platform
Loading...
Searching...
No Matches
Terme_Puissance_Thermique.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_Puissance_Thermique_included
17#define Terme_Puissance_Thermique_included
18
19#include <TRUST_Ref.h>
20#include <TRUST_Deriv.h>
21#include <TRUSTTabs_forward.h>
22#include <Champ_Don_base.h>
23
26class Equation_base;
27class Probleme_base;
28class Champ_base;
29class Entree;
30
31/*! @brief Classe Terme_Puissance_Thermique Cette classe represente un terme source de l'equation de la thermique
32 *
33 * du type degagement volumique de puissance thermique.
34 * Un objet Terme_Puissance_Thermique contient la puissance (OWN_PTR(Champ_base) donne
35 * utilisateur) et des references a la masse volumique (rho) et la chaleur.
36 * specifique (Cp).
37 *
38 * @sa Classe non instanciable., L'implementation des termes dependra de leur discretisation.
39 */
41{
42public :
43 void lire_donnees(Entree&,const Equation_base& eqn);
44 void mettre_a_jour(double temps);
45 void modify_name_file(Nom& ) const;
46 const DoubleTab& puissance_thermique() const { return la_puissance->valeurs(); }
48 void resetTime(double t);
49
50protected:
52};
53
54#endif
classe Champ_Don_base classe de base des Champs donnes (non calcules)
classe Champ_base Cette classe est la base de la hierarchie des champs.
Definition Champ_base.h:43
classe Domaine_Cl_dis_base Les objets Domaine_Cl_dis_base representent les conditions aux limites
classe Domaine_dis_base Cette classe est la base de la hierarchie des domaines discretisees.
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
classe Probleme_base C'est un Probleme_U qui n'est pas un couplage.
Classe Terme_Puissance_Thermique Cette classe represente un terme source de l'equation de la thermiqu...
void initialiser_champ_puissance(const Equation_base &eqn)
void lire_donnees(Entree &, const Equation_base &eqn)
Lit le terme de puissance thermique a partir d'un flot d'entree et d une equation pour eventuellement...
const DoubleTab & puissance_thermique() const
OWN_PTR(Champ_Don_base) la_puissance_lu