TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Convection_Diffusion_Phase_field.h
1/****************************************************************************
2* Copyright (c) 2021, 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 Convection_Diffusion_Phase_field_included
17#define Convection_Diffusion_Phase_field_included
18
19#include <Convection_Diffusion_Concentration.h>
20#include <Operateur_Grad.h>
21#include <Constituant.h>
22#include <TRUST_Ref.h>
23
24class Fluide_base;
25
26/*! @brief classe Convection_Diffusion_Phase_field Cas particulier de Convection_Diffusion_Concentration
27 *
28 * pour un ou plusieurs constituants.
29 * Dans le cas de plusieurs constituants les champs
30 * concentration et diffusivite sont vectoriels.
31 *
32 * @sa Convection_Diffusion_Concentration
33 */
35{
36 Declare_instanciable(Convection_Diffusion_Phase_field);
37public:
38
39 void set_param(Param& titi) const override;
40 int lire_motcle_non_standard(const Motcle&, Entree&) override;
41 void discretiser() override;
42 Champ_Fonc_base& set_mutilde_() { return ch_mutilde_; }
43 DoubleTab& set_mutilde() { return mutilde_; }
44 DoubleTab& set_mutilde_demi() { return mutilde_demi_; }
45 DoubleTab& set_c_demi() { return c_demi_; }
47 DoubleTab& set_div_alpha_gradC() { return div_alpha_gradC_; }
49 DoubleTab& set_pression_thermo() { return pression_thermo_; }
50 const Champ_Fonc_base& get_mutilde_() const { return ch_mutilde_; }
51 const DoubleTab& get_mutilde() const { return mutilde_; }
52 const DoubleTab& get_mutilde_demi() const { return mutilde_demi_; }
53 const DoubleTab& get_c_demi() const { return c_demi_; }
54 const DoubleTab& get_div_alpha_rho_gradC() const { return div_alpha_rho_gradC_; }
55 const DoubleTab& get_div_alpha_gradC() const { return div_alpha_gradC_; }
56 const DoubleTab& get_alpha_gradC_carre() const { return alpha_gradC_carre_; }
57 const DoubleTab& get_pression_thermo() const { return pression_thermo_; }
58 int preparer_calcul() override;
61 void completer() override;
62
63 inline int& get_mutype_() { return mutype_; }
64 inline int get_mutype_() const { return mutype_; }
65
66 /*
67 * XXX Elie Saikali : on surcharge les methodes de la classe mere pour eviter la classe Constituant ...
68 */
69
70 void associer_milieu_base(const Milieu_base& ) override;
71 const Champ_Don_base& diffusivite_pour_transport() const override;
72 const Milieu_base& milieu() const override;
73 Milieu_base& milieu() override;
74 void mettre_a_jour(double) override;
75
76protected:
81
82 int mutype_ = 0;
83
84 /*
85 * XXX Elie Saikali : on evite la classe Constituant ...
86 */
87 OBS_PTR(Fluide_base) le_fluide_;
88};
89
90#endif /* Convection_Diffusion_Phase_field_included */
classe Champ_Don_base classe de base des Champs donnes (non calcules)
classe Champ_Fonc_base Classe de base des champs qui sont fonction d'une grandeur calculee
classe Convection_Diffusion_Phase_field Cas particulier de Convection_Diffusion_Concentration
void discretiser() override
Discretise l'equation.
int preparer_calcul() override
Tout ce qui ne depend pas des autres problemes eventuels.
void completer() override
Complete la construction (initialisation) des objets associes a l'equation.
OBS_PTR(Fluide_base) le_fluide_
void mettre_a_jour(double) override
La valeur de l'inconnue sur le pas de temps a ete calculee.
void associer_milieu_base(const Milieu_base &) override
Associe un milieu physique a l'equation, le milieu est en fait caste en Constituant et associe a l'eq...
int lire_motcle_non_standard(const Motcle &, Entree &) override
Lecture des parametres de type non simple d'un objet_U a partir d'un flot d'entree.
const Champ_Don_base & diffusivite_pour_transport() const override
const Milieu_base & milieu() const override
Renvoie le milieu physique de l'equation.
OWN_PTR(Champ_Fonc_base) ch_mutilde_
Class defining operators and methods for all reading operation in an input flow (file,...
Definition Entree.h:42
classe Fluide_base Cette classe represente un d'un fluide incompressible ainsi que
Definition Fluide_base.h:38
classe Milieu_base Cette classe est la base de la hierarchie des milieux (physiques)
Definition Milieu_base.h:50
Une chaine de caractere (Nom) en majuscules.
Definition Motcle.h:26
Classe Operateur_Grad Classe generique de la hierarchie des operateurs calculant le gradient.
Helper class to factorize the readOn method of Objet_U classes.
Definition Param.h:112