TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Pb_Multiphase_Enthalpie.cpp
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#include <Pb_Multiphase_Enthalpie.h>
17
18Implemente_instanciable(Pb_Multiphase_Enthalpie, "Pb_Multiphase_Enthalpie|Pb_Multiphase_h", Pb_Multiphase);
19// XD Pb_Multiphase_Enthalpie Pb_Multiphase Pb_Multiphase_h INHERITS_BRACE A problem that allows the resolution of
20// XD_CONT N-phases with 3*N equations
21// XD attr milieu_composite bloc_lecture milieu_composite OPT The composite medium associated with the problem.
22// XD attr correlations bloc_lecture correlations OPT List of correlations used in specific source terms (i.e.
23// XD_CONT interfacial flux, interfacial friction, ...)
24// XD attr QDM_Multiphase QDM_Multiphase QDM_Multiphase REQ Momentum conservation equation for a multi-phase problem
25// XD_CONT where the unknown is the velocity
26// XD attr Masse_Multiphase Masse_Multiphase Masse_Multiphase REQ Mass consevation equation for a multi-phase problem
27// XD_CONT where the unknown is the alpha (void fraction)
28// XD attr Energie_Multiphase_h Energie_Multiphase_Enthalpie Energie_Multiphase_Enthalpie REQ Internal energy
29// XD_CONT conservation equation for a multi-phase problem where the unknown is the enthalpy
30// XD attr Energie_Multiphase suppress_param Energie_Multiphase OPT del
31
33
35
42
44{
45 const Domaine_Cl_dis_base& domaine_Cl_hydr = equation_qdm().domaine_Cl_dis();
46 const Domaine_Cl_dis_base& domaine_Cl_th = eq_energie_enthalpie_.domaine_Cl_dis();
47 return tester_compatibilite_hydr_thermique(domaine_Cl_hydr,domaine_Cl_th);
48}
classe Domaine_Cl_dis_base Les objets Domaine_Cl_dis_base representent les conditions aux limites
Class defining operators and methods for all reading operation in an input flow (file,...
Definition Entree.h:42
virtual void associer_milieu_base(const Milieu_base &)=0
virtual Domaine_Cl_dis_base & domaine_Cl_dis()
Renvoie le domaine des conditions aux limite discretisee associee a l'equation.
classe Milieu_base Cette classe est la base de la hierarchie des milieux (physiques)
Definition Milieu_base.h:50
virtual Entree & readOn(Entree &)
Lecture d'un Objet_U sur un flot d'entree Methode a surcharger.
Definition Objet_U.cpp:293
virtual Sortie & printOn(Sortie &) const
Ecriture de l'objet sur un flot de sortie Methode a surcharger.
Definition Objet_U.cpp:282
Energie_Multiphase_Enthalpie eq_energie_enthalpie_
int verifier() override
Teste la compatibilite des equations de la thermique et de l'hydraulique.
void associer_milieu_base(const Milieu_base &) override
Associe le milieu au probleme Le milieu doit etre de type fluide incompressible.
classe Pb_Multiphase Cette classe represente un probleme de thermohydraulique multiphase de type "3*N...
virtual Equation_base & equation_qdm()
virtual Equation_base & equation_masse()
Classe de base des flux de sortie.
Definition Sortie.h:52