TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Source_Con_Phase_field_Naire.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 Source_Con_Phase_field_Naire_included
17#define Source_Con_Phase_field_Naire_included
18
19#include <Convection_Diffusion_Concentration.h>
20#include <Source_Con_Phase_field.h>
21#include <Source_Con_Phase_field_base.h>
22#include <Equation_base.h>
23#include <Matrice_Morse.h>
24#include <SolveurSys.h>
25#include <TRUST_Ref.h>
26#include <EChaine.h>
27#include <Table.h>
28#include <math.h>
29
30class Domaine_Cl_VDF;
31class Domaine_VDF;
32
34{
35 Declare_instanciable(Source_Con_Phase_field_Naire);
36public:
37
38 void premier_demi_dt() override;
39
40protected:
41
42 DoubleTab& laplacien(const DoubleTab&, DoubleTab&) const ;
43 DoubleTab& div_kappa_grad(const DoubleTab&, const DoubleTab&, DoubleTab&) const ;
44 void calculer_div_alpha_rho_grad(const DoubleTab&, DoubleTab&) const ;
45 void calculer_div_alpha_grad(const DoubleTab&, DoubleTab&) const ;
46 void calculer_mutilde_demi(DoubleTab&, DoubleTab&) const ;
48 void calculer_mutilde(DoubleTab&) const ;
49
50 void calculer_residu_jfnk(const DoubleTab&, const Matrice_Morse&, DoubleTab&, const DoubleTab&) ;
51 void jacobian_vect(const DoubleTab&, const Matrice_Morse&, const DoubleTab&, const DoubleTab&, DoubleTab&) ;
52 int resolution_jfnk(const DoubleTab&, const DoubleTab&, const Matrice_Morse&, DoubleTab&, DoubleTab&) ;
53};
54
55#endif /* Source_Con_Phase_field_Naire_included */
class Domaine_Cl_VDF
class Domaine_VDF
Definition Domaine_VDF.h:64
Classe Matrice_Morse Represente une matrice M (creuse), non necessairement carree.
void calculer_div_alpha_grad(const DoubleTab &, DoubleTab &) const
Calcul de Div(alpha*rho*Grad((C)) au centre des elements.
void calculer_residu_jfnk(const DoubleTab &, const Matrice_Morse &, DoubleTab &, const DoubleTab &)
Construire le residu du JFNK.
void calculer_mutilde_demi(DoubleTab &, DoubleTab &) const
DoubleTab & laplacien(const DoubleTab &, DoubleTab &) const
void calculer_mutilde(DoubleTab &) const
Calcul de mutilde au centre des elements.
void assembler_matrice_mobilite_explicite(Matrice_Morse &)
Assemble la matrice pour le calcul du point fixe.
int resolution_jfnk(const DoubleTab &, const DoubleTab &, const Matrice_Morse &, DoubleTab &, DoubleTab &)
Algorithme résolution non linéaire par JFNK.
void calculer_div_alpha_rho_grad(const DoubleTab &, DoubleTab &) const
Calcul de Div(alpha*rho*Grad((C)) au centre des elements.
void jacobian_vect(const DoubleTab &, const Matrice_Morse &, const DoubleTab &, const DoubleTab &, DoubleTab &)
Construire le residu du JFNK.
DoubleTab & div_kappa_grad(const DoubleTab &, const DoubleTab &, DoubleTab &) const
void premier_demi_dt() override
Calcule le premier demi pas de temps dans le cas implicite Calcule le pas de temps dans le cas explic...