TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Schema_Phase_field.h
1/****************************************************************************
2* Copyright (c) 2015 - 2016, 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 Schema_Phase_field_included
17#define Schema_Phase_field_included
18
19#include <Convection_Diffusion_Phase_field.h>
20
21/*! @brief classe Schema_Phase_field
22 *
23 * @sa Schema_Temps_base
24 */
26{
27
28 Declare_instanciable(Schema_Phase_field);
29
30public :
31
32 ////////////////////////////////
33 // //
34 // Caracteristiques du schema //
35 // //
36 ////////////////////////////////
37
38 int nb_valeurs_temporelles() const override;
39 int nb_valeurs_futures() const override;
40 double temps_futur(int i) const override;
41 double temps_defaut() const override;
42
43 /////////////////////////////////////////
44 // //
45 // Fin des caracteristiques du schema //
46 // //
47 /////////////////////////////////////////
48
49 void initialize() override;
50 bool initTimeStep(double dt) override;
52 bool iterateTimeStep(bool& converged) override;
56 inline const DoubleTab& valeur_temps_intermediaire() const;
57 //virtual void lire(const Motcle&, Entree&);
58 void set_param(Param& titi) const override;
59 int lire_motcle_non_standard(const Motcle&, Entree&) override;
60 int mettre_a_jour() override;
61 bool corriger_dt_calcule(double&) const override;
62 void completer() override;
63 void changer_temps_courant(const double) override;
64 int stop() const override;
65 void imprimer(Sortie&) const override;
66
67 void associer_pb(const Probleme_base&) override;
68
69protected:
71};
72
73#endif /* Schema_Phase_field_included */
classe Convection_Diffusion_Phase_field Cas particulier de Convection_Diffusion_Concentration
classe Equation_base Le role d'une equation est le calcul d'un ou plusieurs champs....
Une chaine de caractere (Nom) en majuscules.
Definition Motcle.h:26
friend class Entree
Definition Objet_U.h:76
friend class Sortie
Definition Objet_U.h:75
Helper class to factorize the readOn method of Objet_U classes.
Definition Param.h:112
classe Probleme_base C'est un Probleme_U qui n'est pas un couplage.
classe Schema_Phase_field
bool iterateTimeStep(bool &converged) override
faire_un_pas_de_temps_pb_base avec NS = equation(0) et CH = equation(1) Sert a calculer l'equation de...
const DoubleTab & valeur_temps_intermediaire() const
virtual int faire_un_pas_de_temps_C_D_Phase_field(Convection_Diffusion_Phase_field &)
Effectue un pas de temps sur l'equation de type Convection_Diffusion_Phase_field.
void changer_temps_courant(const double) override
Appel a l'objet sous-jacent Change le temps courant.
int mettre_a_jour() override
Mise a jour du temps courant (t+=dt) et du nombre de pas de temps effectue (nb_pas_dt_++).
void completer() override
Complete les attributs de sch2.
int faire_un_pas_de_temps_eqn_base(Equation_base &) override
Effectue un pas de temps sur l'equation passee en parametre.
int stop() const override
Appel a l'objet sous-jacent Renvoie 1 si il y lieu de stopper le calcul pour differente raisons:
bool initTimeStep(double dt) override
int nb_valeurs_temporelles() const override
Renvoie le nombre de valeurs temporelles a conserver.
bool corriger_dt_calcule(double &) const override
Corrige le pas de temps dt_min <= dt <= dt_max.
void set_param(Param &titi) const override
virtual int premier_dt(Convection_Diffusion_Phase_field &eq_c)
Effectue le premier demi-pas de temps1 sur l'equation de type Convection_Diffusion_Phase_field.
virtual int deuxieme_dt(Convection_Diffusion_Phase_field &eq_c)
Effectue le deuxieme demi-pas de temps sur l'equation de type Convection_Diffusion_Phase_field.
void associer_pb(const Probleme_base &) override
void imprimer(Sortie &) const override
Appel a l'objet sous-jacent Imprime le schema en temp sur un flot de sortie (si il y a lieu).
void initialize() override
double temps_defaut() const override
Renvoie le le temps le temps que doivent rendre les champs a l'appel de valeurs().
int lire_motcle_non_standard(const Motcle &, Entree &) override
Lecture du nombre d'iterations pour l'etape de relaxation du Schema_Phase_field.
double temps_futur(int i) const override
Renvoie le le temps a la i-eme valeur future.
int nb_valeurs_futures() const override
Renvoie le nombre de valeurs temporelles futures.
OWN_PTR(Schema_Temps_base) sch_CH_
class Schema_Temps_base