IPIM
 All Classes Files Functions Variables Pages
Public Member Functions | List of all members
module_cfl Module Reference

Routines for CFL factor. More...

Public Member Functions

subroutine compute_cfl (temps, I1, In, i_tube, pos_tube, ion, i_spc, dt, nboucle)
 Compute CFL factor for ionic species and deduce supplementary timesteps to make. More...
 

Detailed Description

Routines for CFL factor.

Member Function/Subroutine Documentation

subroutine module_cfl::compute_cfl ( type(calendar), intent(in)  temps,
integer, intent(in)  I1,
integer, intent(in)  In,
integer, intent(in)  i_tube,
type(coordonnees), dimension(:,:), intent(in)  pos_tube,
type(espece), dimension(:), intent(in)  ion,
integer, dimension(:), intent(in)  i_spc,
real*8, intent(in)  dt,
integer, intent(out)  nboucle 
)

Compute CFL factor for ionic species and deduce supplementary timesteps to make.

Author
Parameters
[out]nboucleNumber of subdivision (default 1)

Compute CFL condition at this altitude for this specie CFL = k{U.dt}{dz} = k{C_i{U}.to{dt}}{Ro{dz}} = k{C_i{U}.{dt}}{C_{ref}{dz}}

Here: U = U_{ion} + {3}{2}max(Xp_{ion},Xt_{ion}){Tp_{ion}} U = U_{electron}

According to cfl value, compute nboucle nboucle = f(cfl) where: f: x -> 2^{floor({ln(x)}/{ln(2)} + 1)} f([2^i,2^{i+1}[) = 2^{i+1}

Here is the caller graph for this function:


The documentation for this module was generated from the following file: