TrioCFD 1.9.9_beta
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}
class Domaine_Cl_dis_base Domaine_Cl_dis_base objects represent discretized boundary conditions
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()
Returns the discretized boundary condition domain associated with the equation.
Milieu_base This class is the base of the (physical) medium hierarchy.
Definition Milieu_base.h:50
virtual Entree & readOn(Entree &)
Reads an Objet_U from an input stream. Virtual method to override.
Definition Objet_U.cpp:289
virtual Sortie & printOn(Sortie &) const
Writes the object to an output stream. Virtual method to override.
Definition Objet_U.cpp:278
Energie_Multiphase_Enthalpie eq_energie_enthalpie_
int verifier() override
Checks the compatibility of the thermal and hydraulic equations.
void associer_milieu_base(const Milieu_base &) override
Associates the medium with the problem.
Multiphase thermohydraulics problem of type "3*N equations":
virtual Equation_base & equation_qdm()
virtual Equation_base & equation_masse()
Base class for output streams.
Definition Sortie.h:52