TrioCFD 1.9.9_beta
TrioCFD documentation
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 Class Terme_Puissance_Thermique: represents a volumetric thermal power source term in the energy equation.
32 *
33 * A Terme_Puissance_Thermique object holds the power field (user-provided OWN_PTR(Champ_base))
34 * together with references to the density (rho) and specific heat (Cp).
35 *
36 * @sa Non-instantiable class. The implementation of the terms depends on the discretisation.
37 */
39{
40public :
41 void lire_donnees(Entree&,const Equation_base& eqn);
42 void mettre_a_jour(double temps);
43 void modify_name_file(Nom& ) const;
44 const DoubleTab& puissance_thermique() const { return la_puissance->valeurs(); }
46 void resetTime(double t);
47
48protected:
50};
51
52#endif
class Champ_Don_base base class of Given Fields (not calculated)
class Champ_base This class is the base of the fields hierarchy.
Definition Champ_base.h:43
class Domaine_Cl_dis_base Domaine_Cl_dis_base objects represent discretized boundary conditions
class Domaine_dis_base This class is the base of the hierarchy of discretized domains.
Class defining operators and methods for all reading operation in an input flow (file,...
Definition Entree.h:42
class Equation_base The role of an equation is the calculation of one or more fields....
class Nom: a character string for naming TRUST objects.
Definition Nom.h:31
class Probleme_base It is a Probleme_U that is not a coupling.
Class Terme_Puissance_Thermique: represents a volumetric thermal power source term in the energy equa...
void initialiser_champ_puissance(const Equation_base &eqn)
void lire_donnees(Entree &, const Equation_base &eqn)
Reads the thermal power term from an input stream and an equation, possibly using the discretisation ...
const DoubleTab & puissance_thermique() const
OWN_PTR(Champ_Don_base) la_puissance_lu