TrioCFD 1.9.9_beta
TrioCFD documentation
Loading...
Searching...
No Matches
Convection_Diffusion_Espece_Binaire_WC.cpp
1/****************************************************************************
2* Copyright (c) 2025, 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 <Convection_Diffusion_Fluide_Dilatable_Proto.h>
17#include <Convection_Diffusion_Espece_Binaire_WC.h>
18#include <Fluide_Weakly_Compressible.h>
19#include <Loi_Etat_Binaire_GP_WC.h>
20
21Implemente_instanciable(Convection_Diffusion_Espece_Binaire_WC,"Convection_Diffusion_Espece_Binaire_WC",Convection_Diffusion_Espece_Binaire_base);
22// XD convection_diffusion_espece_binaire_WC eqn_base convection_diffusion_espece_binaire_WC INHERITS_BRACE Species
23// XD_CONT conservation equation for a binary weakly-compressible fluid.
24
26{
28}
29
31{
33}
34
36{
37 assert(le_fluide->loi_etat()->que_suis_je() == "Loi_Etat_Binaire_Gaz_Parfait_WC");
39}
40
46
52
54{
55 double temps = schema_temps().temps_courant();
56 return Convection_Diffusion_Fluide_Dilatable_Proto::Reprendre_WC(is,temps,*this, le_fluide.valeur(),l_inco_ch,probleme());
57}
Convection_Diffusion_Espece_Binaire_WC class Special case of Convection_Diffusion_Espece_Binaire_base...
int reprendre(Entree &) override
Restores an Objet_U from an input stream. Virtual method to override.
std::vector< YAML_data > data_a_sauvegarder() const override
for PDI IO: retrieve name, type and dimensions of the data to save/restore. This has to be overrode f...
void completer() override
Completes the construction (initialization) of objects associated with the equation.
int sauvegarder(Sortie &) const override
Saves an Objet_U to an output stream. Virtual method to override.
Particular case of Convection_Diffusion_Espece_Fluide_Dilatable_base for an isothermal and isobaric d...
void completer() override
Completes the construction (initialization) of objects associated with the equation.
static std::vector< YAML_data > data_a_sauvegarder(const Convection_Diffusion_std &eq, const Fluide_Dilatable_base &fld)
static int Reprendre_WC(Entree &is, double temps, Convection_Diffusion_std &eq, Fluide_Dilatable_base &fld, Champ_Inc_base &inco, Probleme_base &pb)
static int Sauvegarder_WC(Sortie &os, const Convection_Diffusion_std &eq, const Fluide_Dilatable_base &fld)
Class defining operators and methods for all reading operation in an input flow (file,...
Definition Entree.h:42
Schema_Temps_base & schema_temps()
Returns the time scheme associated with the equation.
Fluide_Weakly_Compressible class This class represents a weakly compressible fluid,...
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
double temps_courant() const
Returns the current time.
Base class for output streams.
Definition Sortie.h:52