TrioCFD 1.9.9_beta
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 */
class Champ_Don_base base class of Given Fields (not calculated)
class Champ_Fonc_base Base class of fields that are functions of a calculated quantity
classe Convection_Diffusion_Phase_field Cas particulier de Convection_Diffusion_Concentration
void discretiser() override
Discretise l'equation.
int preparer_calcul() override
Everything that does not depend on other possible problems.
void completer() override
Completes the construction (initialization) of objects associated with the equation.
OBS_PTR(Fluide_base) le_fluide_
void mettre_a_jour(double) override
The value of the unknown at the time step has been calculated.
void associer_milieu_base(const Milieu_base &) override
Associates a physical medium to the equation; the medium is cast to Constituant and associated with t...
int lire_motcle_non_standard(const Motcle &, Entree &) override
Reads non-simple-type parameters of an Objet_U from an input stream.
const Champ_Don_base & diffusivite_pour_transport() const override
const Milieu_base & milieu() const override
Returns the physical medium of the 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
Base class for an incompressible fluid and its properties:
Definition Fluide_base.h:36
Milieu_base This class is the base of the (physical) medium hierarchy.
Definition Milieu_base.h:50
A character string (Nom) in uppercase.
Definition Motcle.h:26
Classe Operateur_Grad Generic class of the hierarchy of operators computing the gradient.
Helper class to factorize the readOn method of Objet_U classes.
Definition Param.h:112