Outils pour utilisateurs

Outils du site


sunfluidh:numerical_methods_examples

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
sunfluidh:numerical_methods_examples [2017/09/25 16:14] yannsunfluidh:numerical_methods_examples [2018/12/01 16:43] (Version actuelle) – [Example 2 : An iterative method coupled with a multigrid procedure using a in-house development] yann
Ligne 1: Ligne 1:
 ===== Some examples illustrating how to use the relevant namelists to set the numerical methods for solving the equations ===== ===== Some examples illustrating how to use the relevant namelists to set the numerical methods for solving the equations =====
 +
 +[[new_numerical_methods_setup_namelist |Click here to come back to the previous page]]
  
 ==== Context : Heat driven incompressible flow ==== ==== Context : Heat driven incompressible flow ====
-<WRAP>+<WRAP info>
    * Numerical scheme for solving the governing equations of velocity and temperature     * Numerical scheme for solving the governing equations of velocity and temperature 
        * Time discretization : semi-implicit formulation with the 2nd order Backward Differentiation formula (BDF2)        * Time discretization : semi-implicit formulation with the 2nd order Backward Differentiation formula (BDF2)
Ligne 8: Ligne 10:
        * convective flux for momentum equation : 2nd order centered scheme, conservative form        * convective flux for momentum equation : 2nd order centered scheme, conservative form
        * advective flux for temperature equation : 2nd order centered scheme, conservative form        * advective flux for temperature equation : 2nd order centered scheme, conservative form
-       * Solving Poisson's equation : __**several examples**__+       * Solving Poisson's equation : see the following examples
 </WRAP> </WRAP>
  
Ligne 29: Ligne 31:
                                                      
                                                    
-==== Example 2 : An iterative method coupled with a multigrid procedure ("homemade" development====                         +==== Example 2 : An iterative method coupled with a multigrid procedure using a "in-house" development ====                          
 + 
 +<WRAP info>
  
 Suitable setting : Suitable setting :
Ligne 40: Ligne 44:
        * 15 on the prolongation step (going from coarsest to the finnest grid)        * 15 on the prolongation step (going from coarsest to the finnest grid)
    * The stopping criterion based on the residu of the computation is 1E-08     * The stopping criterion based on the residu of the computation is 1E-08 
-                         +</WRAP>                         
 As the fluid is incompressible, __the matrix coefficients of the Poisson's equation are constant__.\\ As the fluid is incompressible, __the matrix coefficients of the Poisson's equation are constant__.\\
 As a "homemade" method is used, two ways are possible : As a "homemade" method is used, two ways are possible :
Ligne 69: Ligne 73:
                           MomentumConvection_Scheme="Centered-O2-Conservative"                           MomentumConvection_Scheme="Centered-O2-Conservative"
                           TemperatureAdvection_Scheme="Centered-O2-Conservative" ,                             TemperatureAdvection_Scheme="Centered-O2-Conservative" ,  
-                          Poisson_NumericalMethod="Home-Multigrid-ConstantMatrixCoef"/+                          Poisson_NumericalMethod="Home-SORMultigrid-ConstantMatrixCoef"/
                                                      
 +      &HomeData_PoissonSolver   SolverName="SOR",
 +                                Number_max_Grid = 5                         ,
 +                                Number_max_Cycle= 10                      ,
 +                                Number_Iteration= 15,
 +                                Number_Iteration_FineToCoarseGrid= 5,
 +                                Number_Iteration_CoarsestGrid    = 15,
 +                                Number_Iteration_CoarseToFineGrid= 10,
 +                                Relaxation_Coefficient           = 1.70 , 
 +                                Convergence_Criterion            = 1.D-08 /        
 + 
 +==== Example 3 : An iterative method coupled with a multigrid procedure using the HYPRE library ====                         
 +
 +<WRAP info>
 +
 +Suitable setting :
 +
 +   * Selection of the PFMG method using a SOR relaxation method for non symmetrical matrix (even though the Poisson's operator could be symmetric in this context)
 +   * The number of iterations is :
 +       * The maximum iteration number is 20
 +       * 5 relaxation sweeps before coarse-grid correction
 +       * 10 relaxation sweeps after coarse-grid correction
 +   * The tolerance convergence is 1E-08 
 +</WRAP>                         
 +
 +=== Using the namelists "Numerical_Methods" and "HypreData_PoissonSolver" (new version only) === 
 +                 
 +           
 +      &Numerical_Methods  NS_NumericalMethod= "BDF2-SchemeO2",
 +                          MomentumConvection_Scheme="Centered-O2-Conservative"
 +                          TemperatureAdvection_Scheme="Centered-O2-Conservative" ,  
 +                          Poisson_NumericalMethod="Home-Multigrid-ConstantMatrixCoef"/
                                                      
-    &HomeData_PoissonSolver  SolverName="SOR-Redblack-MPI", +      &HypreData_PoissonSolver  SolverName="SOR-Redblack-Nonsym", 
-                             Number_max_Grid 5,  +                                Number_Iteration                 20 
-                             Number_max_Cycle= 10, +                                Number_Iteration_FineToCoarseGrid= 5,  
-                             Number_Iteration_FineToCoarseGrid= 5,  +                                Number_Iteration_CoarseToFineGrid= 10,  
-                             Number_Iteration_CoarsestGrid    = 15 , +                                Convergence_Criterion            = 1.D-08 /                         
-                             Number_Iteration_CoarseToFineGrid= 10,  +
-                             Relaxation_Coefficient           = 1.7 , +
-                             Convergence_Criterion            = 1.D-08 /                         +
                                                      
                                                    
-                       + [[new_numerical_methods_setup_namelist |Click here to come back to the previous page]]                      
sunfluidh/numerical_methods_examples.1506348855.txt.gz · Dernière modification : 2017/09/25 16:14 de yann

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki