TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Cahn_Hilliard_Convection.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 Cahn_Hilliard_Convection_included
17#define Cahn_Hilliard_Convection_included
18
19#include <Equation_base.h>
20#include <Cahn_Hilliard.h>
21
22/*! @brief classe Cahn_Hilliard_Convection
23 *
24 * Hérite de la classe Cahn-Hilliard, et rajoute un terme d'advection.
25 *
26 * @sa Cahn_Hilliard
27 */
29{
30 Declare_instanciable(Cahn_Hilliard_Convection);
31public:
32
33 void set_param(Param&) const override;
34 int lire_motcle_non_standard(const Motcle&, Entree&) override;
35
36 int nombre_d_operateurs() const override;
37 int nombre_d_operateurs_tot() const override;
38 const Operateur& operateur(int) const override;
39 Operateur& operateur(int) override;
40
41 DoubleTab& derivee_en_temps_inco(DoubleTab&) override;
42 inline void associer_vitesse(const Champ_base& vit) { vitesse_ = ref_cast(Champ_Inc_base,vit); }
44
45
46 DoubleTab fonction_residu(const DoubleTab&) override;
47
48protected:
49
50
51 // La vitesse
53
54 // Terme convectif
56};
57
58#endif /* Cahn_Hilliard_Convection_included */
59
classe Cahn_Hilliard_Convection
const Champ_base & vitesse_pour_transport() const
int nombre_d_operateurs() const override
Renvoie le nombre d'operateurs de l'equation: Pour Cahn-Hilliard c'est 3.
const Operateur & operateur(int) const override
Renvoie le i-eme operateur de l'equation:
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.
OBS_PTR(Champ_Inc_base) vitesse_
DoubleTab fonction_residu(const DoubleTab &) override
Construit la fonction résidu pour un algorithme de Newton :
void associer_vitesse(const Champ_base &vit)
DoubleTab & derivee_en_temps_inco(DoubleTab &) override
Returns the time derivative of the unknown I of the equation: dI/dt = M-1*(sum(operators(I) + sources...
int nombre_d_operateurs_tot() const override
void set_param(Param &) const override
classe Cahn_Hilliard
Classe Champ_Inc_base.
classe Champ_base Cette classe est la base de la hierarchie des champs.
Definition Champ_base.h:43
Une chaine de caractere (Nom) en majuscules.
Definition Motcle.h:26
friend class Entree
Definition Objet_U.h:76
classe Operateur_Conv Classe generique de la hierarchie des operateurs representant un terme
classe Operateur Classe generique de la hierarchie des operateurs.
Definition Operateur.h:39
Helper class to factorize the readOn method of Objet_U classes.
Definition Param.h:112