sunfluidh:numerical_methods_examples
Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
sunfluidh:numerical_methods_examples [2017/09/25 15:33] – créée yann | sunfluidh: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 ===== | ||
- | ==== Context : Heat driven incompressible flow ==== | + | [[new_numerical_methods_setup_namelist |Click here to come back to the previous page]] |
+ | ==== Context : Heat driven incompressible flow ==== | ||
+ | <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' | + | * Solving Poisson' |
+ | </ | ||
- | ==== Example 1 : Solving the Poisson' | + | ==== Example 1 : Partial |
Only one namelist is required : " | Only one namelist is required : " | ||
Ligne 28: | Ligne 31: | ||
| | ||
- | ==== Example 2 : Solving the Poisson' | + | ==== Example 2 : An iterative method coupled with a multigrid procedure |
+ | |||
+ | <WRAP info> | ||
+ | |||
+ | Suitable setting : | ||
+ | |||
+ | * A SOR solver with a relaxation coefficient of 1.7, using a red-black alogorithm in a MPI-parallel context. | ||
+ | * The nV-cycle multigrid procedure is composed of 5 grid levels, with a maximum number of cycles n= 10. | ||
+ | * The number of SOR iterations is : | ||
+ | * 5 on the restriction step (going from finnest to the coarsest grid) | ||
+ | * 20 on the coarsest 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 | ||
+ | </ | ||
+ | As the fluid is incompressible, | ||
+ | As a " | ||
+ | * Using the namelist " | ||
+ | * Using the namelists " | ||
+ | |||
+ | === Using the namelist " | ||
+ | |||
| | ||
+ | & | ||
+ | Convective_Flux_Discretization_Type | ||
+ | Temperature_Advective_Flux_Discretization_Type = 1 , | ||
+ | |||
+ | Numerical_Method_Poisson_Equation | ||
+ | Iterative_Method_Selection | ||
+ | Number_max_Grid = 5 , | ||
+ | Number_max_Cycle= 10 , | ||
+ | Number_Iteration= 15, | ||
+ | Number_Iteration_FineToCoarseGrid= 5, | ||
+ | Number_Iteration_CoarsestGrid | ||
+ | Number_Iteration_CoarseToFineGrid= 10, | ||
+ | Relaxation_Coefficient | ||
+ | Convergence_Criterion | ||
| | ||
+ | === Using the namelists " | ||
+ | |||
+ | & | ||
+ | MomentumConvection_Scheme=" | ||
+ | TemperatureAdvection_Scheme=" | ||
+ | Poisson_NumericalMethod=" | ||
| | ||
+ | & | ||
+ | Number_max_Grid = 5 , | ||
+ | Number_max_Cycle= 10 , | ||
+ | Number_Iteration= 15, | ||
+ | Number_Iteration_FineToCoarseGrid= 5, | ||
+ | Number_Iteration_CoarsestGrid | ||
+ | Number_Iteration_CoarseToFineGrid= 10, | ||
+ | Relaxation_Coefficient | ||
+ | Convergence_Criterion | ||
+ | |||
+ | ==== 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' | ||
+ | * 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 | ||
+ | </ | ||
+ | |||
+ | === Using the namelists " | ||
+ | |||
+ | |||
+ | & | ||
+ | MomentumConvection_Scheme=" | ||
+ | TemperatureAdvection_Scheme=" | ||
+ | Poisson_NumericalMethod=" | ||
| | ||
+ | & | ||
+ | Number_Iteration | ||
+ | Number_Iteration_FineToCoarseGrid= 5, | ||
+ | Number_Iteration_CoarseToFineGrid= 10, | ||
+ | Convergence_Criterion | ||
| | ||
- | + | ||
- | + | [[new_numerical_methods_setup_namelist |Click here to come back to the previous page]] | |
- | + | ||
- | + | ||
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | + |
sunfluidh/numerical_methods_examples.1506346409.txt.gz · Dernière modification : 2017/09/25 15:33 de yann