Outils pour utilisateurs

Outils du site


sunfluidh:new_numerical_methods_setup_namelist

Namelist "Numerical_Methods" (new version)

Not for the release SUNFLUIDH_EDU

This new data setup is also devoted to the selection of the numerical methods and schemes used in order to solve the conservation equations for velocity components, temperature, species mass fractions and density (in particuliar cases) and Poisson equation for the pressure. Some parameter setting could be also considered in respect with the numerical method selected. The data are divided in three groups in order to define:

  • the numerical method applied for solving the conservation equations (for velocity, temperature, species, …)
  • the choice of advective or convective flux discretization (for 2nd order schemes only). The viscous, conductive or diffusive fluxes are always discretized with a centered 2nd order or 4th order scheme according to the previous choice.
  • the numerical methods (and associated parameters) for solving the Poisson's equation according to the type of problem considered. Several methods are presented based on direct or iterative approaches.
  • This version allows the user to select the numerical methods by means of characters strings instead of option numbers as in the old version Numerical_Methods (old version) .
  • For the sake of clarity, the iterative method parameters used for solving the Poisson's equation are set in individual namelists :
  • Click here to get some examples illustrating how to use the namelists “Numerical_Methods”, “HomeData_PoissonSolver” or “HypreData_PoissonSolver”

Full data set of the namelist

 &Numerical_Methods  NS_NumericalMethod= "BDF2-SchemeO2",
                     MomentumConvection_Scheme="Centered-O2-Conservative" , 
                     TemperatureAdvection_Scheme="Centered-O2-Conservative" ,  
                     SpeciesAdvection_Scheme="Centered-O2-Convective" ,
                     Poisson_NumericalMethod="Hypre-VariableMatrixCoef"  /
                     
                     
  • Depending on the problem, some numerical methods are better adapted than others, this point is precised for each available option.
  • The partial diagonalization method (Poisson_NumericalMethod = “Home-PartialDiagonalization”) used for solving the Poisson equation is only permitted for separable problems.
  • The HYPRE library solvers for solving the Poisson's equation are only available if the HYPRE library has been installed.

Definition of the data set


Solving the conservation equations


NS_NumericalMethod

(equivalent to “Numerical_Scheme” in the previous release, see Numerical_Methods (old version) )

  • Type: character string
  • Selection of the numerical scheme for solving the conservation equations :
    • “BDF2-SchemeO2” : 2nd order Backward Differentiation Formula for the time discretization. Semi-implicit scheme on the viscous or diffusion terms. 2nd order spatial discretization (centered for the viscous/diffusion terms, different schemes are available for the convection/advection terms - see further).
      Preferentially used for incompressible or low Mach-number flows without multi-species components (except two phase incompressible flows).
    • “CN-SchemeO2” : 2nd order Crank-Nicolson scheme (semi-implicit scheme on the viscous or diffusion terms. 2nd order spatial discretization (centered for the viscous/diffusion terms, different schemes are available for the convection/advection terms - see further).
      Preferentially used for incompressible or low Mach-number flows without multi-species components (except two phase incompressible flows). Not for the release SUNFLUIDH_EDU .
    • “BDF1-SchemeO2” : 1st order Backward Differentiation Formula. Semi-implicit scheme on the viscous or diffusion terms. 2nd order spatial discretization (centered for the viscous/diffusion terms, different schemes are available for the convection/advection terms - see further). Not for the release SUNFLUIDH_EDU .
    • “ExplicitPredCorO2-SchemeO2-Knio” : Explicit predictor-corrector scheme : 2nd order Adams Bashforth - Runge-Kutta scheme (Knio et al., JCP 1998).
      This scheme is mainly used for low Mach Number flows with multi-species components. Not for the release SUNFLUIDH_EDU .
    • “ExplicitPredCorO2-SchemeO2-Njam” : 2nd order Explicit scheme based on Strang's operator-splitting with a multi-timestep procedure on the viscous/diffusion terms (2nd order Adams Bashforth - Runge-Kutta schemes) The density is explicitly solved from the differential formulation of the equation of state and the Temperature is deduced from the equation of state. The projection method is based on the Chorin's formulation by considering Poisson's Operator with constant coefficients (Njam et al., JCP 1999).
      This scheme is mainly used for reactive flows under low Mach number hypothesis. Not for the release SUNFLUIDH_EDU .
    • “ExplicitPredCorO2-SchemeO2-Rixen” : 2nd order Explicit scheme based on Strang's operator-splitting with multistep a multi-timestep procedure on the viscous/diffusion terms (2nd order Adams Bashforth - Runge-Kutta schemes). The temperature is explicitly solved from the enthalpy equation and the density is deduced from the equation of state. The projection method is based on the Goda's formulation by considering Poisson's Operator with variable coefficients (Rixin Yu et al., JCP 2012). Not for the release SUNFLUIDH_EDU .
    • “ExplRKO3-CompactSchemeO4” : 4th order hermittian scheme in space + 3rd order explicit Runge-Kutta scheme in time. The projection method is based on the Goda's formulation by considering Poisson's Operator with constant coefficients (Knikker, ijnmf 2008, 2009).
      This numerical scheme is used for incompressible or low Mach number flows with or without heat transfer. Not for the release SUNFLUIDH_EDU .
    • “CN-CompactSchemeO4” : 4th order hermittian scheme in space + semi-implicit Crank-Nicolson scheme in time. The projection method is based on the Goda's formulation by considering Poisson's Operator with constant coefficients (Knikker, ijnmf 2008, 2009).
      This numerical scheme is used for incompressible or low Mach number flows with or without heat transfer. Not for the release SUNFLUIDH_EDU .
    • “RK3CN-CompactSchemeO4” : 4th order hermittian scheme in space + hybrid RK3/Crank-Nicolson scheme in time. The projection method is based on the Goda's formulation by considering Poisson's Operator with constant coefficients (Knikker, ijnmf 2008, 2009).
      This numerical scheme is used for incompressible or low Mach number flows with or without heat transfer. Not for the release SUNFLUIDH_EDU .
    • “CN-SchemeO2-SpecialLowMachFlow”: Crank-Nicolson semi-implicit scheme (as the option 2) with a predictor-corrector procedure for solving species mass fractions and temperature. This numerical scheme is used for low Mach number flows. Not for the release SUNFLUIDH_EDU .

MomentumConvection_Scheme

(equivalent to “Convective_Flux_Discretization_Type” in the previous release, see Numerical_Methods (old version) )

  • Type : character string
  • Selection of the 2nd order spatial discretization for the convection flux in the momentum equations. The options are :
    • “Centered-O2-Conservative” : 2nd order centered scheme in the conservative formulation.
    • “Centered-O2-Convective” : 2nd order centered scheme in the advective formulation.
    • “Centered-O2-Skewsymmetric”: 2nd order centered scheme in the skew-symemetric formulation (developer's test).
    • “Upwind-O1-Conservative” : not commented (developer's test)
    • “Quick-O2-Conservative” : QUICK scheme in the conservative formulation. Not for the release SUNFLUIDH_EDU .
    • “Upwind-O2-Conservative” : 2nd order Upwind scheme in the conservative formulation. Not for the release SUNFLUIDH_EDU .
    • “Eno-O2-Conservative” : 2nd order ENO scheme in the conservative formulation (in progress). Not for the release SUNFLUIDH_EDU .

TemperatureAdvection_Scheme

(equivalent to “Temperature_Advective_Flux_Discretization_Type” in the previous release)

  • Type : character string
  • Selection of the 2nd order spatial discretization for the advection flux in the temperature/enthalpy equation. The options are the same as previously.

SpeciesAdvection_Scheme

(equivalent to “Species_Advective_Flux_Discretization_Type” in the previous release)

  • Type : character string. Not for the release SUNFLUIDH_EDU .
  • Selection of the 2nd order spatial discretization for the advection flux in the species equations. The options are the same as previously.

Explicit_Solving_of_Density

  • Type : integer value. Not for the release SUNFLUIDH_EDU .
  • Selection of numerical schemes based on flux limiters with TVD properties for solving the density. Some of proposed methods are “experimental” and they must be used with caution. The options are :
    • 0 : The mass equation is not solved. For low Mach number flows, the density is deduced from the equation of state. This supposes that species mass fractions or/and temperature are calculated from their conservation equations if it is required.
      • 1, 2, 4, 5 : Obsolete methods
      • 3 : Solving the density from the differential equation of state. This option is automatically selected when the numerical scheme of Njam et al. is used (Numerical_Scheme=5)
      • 6 : The mass equation is solved with the Lax-Wendroff + Superbee TVD scheme (test).
      • 7 : The mass equation is solved with the Lax-Wendroff + SuperC TVD scheme (test).
      • 8 : The mass equation is solved with the Lax-Wendroff + HyperC TVD scheme (test).
      • 9 : The mass equation is solved with the Lax-Wendroff + Van Leer TVD scheme (test).
      • 10 : The mass equation is solved with the Lax-Wendroff + a TVD scheme defined by the user (test).
      • 11 : The mass equation is solved with a WENO5 scheme (test).

Solving the Poisson's equation


Poisson_NumericalMethod

(equivalent to “Numerical_Method_Poisson_Equation ” in the previous release, see Numerical_Methods (old version) )

  • Type : Character string
  • Selection of the numerical method for solving the Poisson equation in accordance to the projection method. The solution is the pressure time increment ($\Phi= P^{n+1}-P^{n}$, Goda's method) used to update the velocity field according to the principle of the projection method (When the numerical method of Njam et al. is used to solve the Navier-Stokes equations, the pressure is solved in place of its time increment (Chorin's method). The options are :
    • “Home-SORMultigrid-ConstantMatrixCoef” : Successive Over-Relaxed method (SOR) coupled with a nV-cycle multigrid method in order to accelerate the convergence. The matrix elements depend on the cell size only (constant elements). This method is directly implemented in the code (“homemade” development). No external library is required to use it. The associated parameters are set in the namelist HomeData_PoissonSolver .
    • “Home-HelmholtzApproximation” : Poisson's operator (constant matrix elements) is approximated by a Helmholtz's operator (experimental method proposed by J.L. Guermond) - For incompressible flow only. This method is directly implemented in the code (“homemade” development). No external library is required to use it. No parameter setting is needed.
    • “Home-PartialDiagonalization” : Partial diagonalisation of the Laplacian operator (constant elements). BEWARE : the problem must be separable. This method is directly implemented in the code (“homemade” development). External library Lapack and Blas is required to use it. The link must be specified in the makefile. No parameter setting is needed.
    • “Home-SORMultigrid-VariableMatrixCoef” : SOR iterative method coupled with a multigrid method in order to accelerate the convergence. The matrix elements depend on the cell size and the density, the source term is defined from the divergence of the velocity. This method is directly implemented in the code (“homemade” development). No external library is required to use it. The associated parameters are set in the namelist HomeData_PoissonSolver .
    • “Hypre-ConstantMatrixCoef” : Poisson's equation is solved by the HYPRE library tools. The matrix elements are constants. The parameters of the HYPRE library are set in the namelist HypreData_PoissonSolver .
    • “Hypre-VariableMatrixCoef”: Poisson's equation is solved by the HYPRE library tools. The matrix elements are non-constants. The parameters of the HYPRE library are set in the namelist HypreData_PoissonSolver .
Traductions de cette page:
  • fr
sunfluidh/new_numerical_methods_setup_namelist.txt · Dernière modification : 2018/05/29 15:06 de witko

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki