TrioCFD 1.9.9_beta
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 This class represents a source term of the constituent transport equation
28 *
29 * of the volumetric thermal power release type.!!!!TO MODIFY
30 * A Terme_Source_Constituant object contains the power (OWN_PTR(Champ_base) given
31 * by the user) and references to the density (rho) and the specific heat (Cp).
32 *
33 * @sa Non-instantiable class., The implementation of the terms will depend on their discretization.
34 */
36{
37
38public :
39
40 inline void associer_champs(const Champ_base&);
41 void lire_donnees(Entree& );
42 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;
43 int completer(const Champ_Inc_base& inco);
44
45 inline const Champ_Don_base& get_source() const
46 {
47 return la_source_constituant ;
48 };
49
50 void mettre_a_jour(double temps)
51 {
52 la_source_constituant->mettre_a_jour(temps);
53 };
54
55protected:
56 int colw_;
58 OWN_PTR(Champ_Don_base) la_source_constituant;
59
60};
61
62
63/*! @brief Associates the given fields rho (density) and Cp (specific heat) to the object.
64 *
65 * @param (Champ_Don_base& rho) given field representing density
66 * @param (Champ_Don_base& cp) given field representing specific heat
67 */
69{
70 rho_ref=rho;
71}
72
73#endif
class Champ_Don_base base class of Given Fields (not calculated)
Class Champ_Inc_base.
class Champ_base This class is the base of the fields hierarchy.
Definition Champ_base.h:43
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
SFichier is to the C++ ofstream class what Sortie is to the C++ ostream class.
Definition SFichier.h:29
Classe Terme_Source_Constituant This class represents a source term of the constituent transport equa...
const Champ_Don_base & get_source() const
void lire_donnees(Entree &)
Reads the power term from an input stream.
OWN_PTR(Champ_Don_base) la_source_constituant
OBS_PTR(Champ_base) rho_ref
void associer_champs(const Champ_base &)
Associates the given fields rho (density) and Cp (specific heat) to the object.
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