GBS
verification_mod Module Reference

Functions/Subroutines

subroutine, public initialize_verification_param
 Compute some parameters needed for the verification. More...
 
subroutine, public save_errors (fidres, iord3d)
 Save the estimated value of the errors. More...
 
subroutine, public initialize_verification_profiles
 
subroutine, public time_rk4_update
 Define the time for the stepP i=1,...,4 of the RK4 algorithm. More...
 
subroutine, public error_estimation
 
subroutine, public advance_fields
 
subroutine, public advance_strmf
 
subroutine, public advance_vpare
 
subroutine, public poisson_strmf_bc_verification
 Boundary condition for the solver of the poisson equation. More...
 
subroutine, public poisson_vpare_bc_verification
 Boundary condition for the solver of the ampere equation. More...
 
real(dp) function strmf_f (iy, ix, iz)
 
real(dp) function density_f (iy, ix, iz)
 
real(dp) function omega_f (iy, ix, iz)
 
real(dp) function vpare_f (iy, ix, iz)
 
real(dp) function vpari_f (iy, ix, iz)
 
real(dp) function temperature_f (iy, ix, iz)
 
real(dp) function temperaturi_f (iy, ix, iz)
 
real(dp) function psi_f (iy, ix, iz)
 
real(dp) function, public source_strmf (iy, ix, iz)
 
real(dp) function, public source_theta (iy, ix, iz)
 
real(dp) function, public source_omega (iy, ix, iz)
 
real(dp) function, public source_omega_bouss ()
 
real(dp) function, public source_vpare (iy, ix, iz)
 
real(dp) function, public source_vpari (iy, ix, iz)
 
real(dp) function, public source_tempe (iy, ix, iz)
 
real(dp) function, public source_tempi (iy, ix, iz)
 
real(dp) function, public source_psi (iy, ix, iz)
 
subroutine, public bc_theta
 Apply the boundary condition to the density. More...
 
subroutine, public bc_omega
 Apply the boundary condition to the vorticity. More...
 
subroutine, public bc_vpare
 Apply the boundary condition to the electron parallel velocity. More...
 
subroutine, public bc_vpari
 Apply the boundary condition to the ion parallel velocity. More...
 
subroutine, public bc_tempe
 Apply the boundary condition to the electron temperature. More...
 
subroutine, public bc_tempi
 Apply the boundary condition to the ion temperature. More...
 
real(dp) function, public div_poiss_noboussinesq (iy, ix, iz)
 
real(dp) function, public div_vpar_noboussinesq (iy, ix, iz)
 
real(dp) function, public omega_vect_1_ver (iy, ix, iz)
 
real(dp) function, public omega_vect_2_ver (iy, ix, iz)
 
real(dp) function, public poiss_omega_vect_1_ver (iy, ix, iz)
 
real(dp) function, public poiss_omega_vect_2_ver (iy, ix, iz)
 
subroutine allocate_errors_3d
 

Variables

integer ierr
 
real(dp), save a
 
real(dp), save qm
 
real(dp), save t_rk4 =0.0_dp
 the current time for the RK4 algorithm More...
 
real(dp), save error_infinity_strmf =0.0_dp
 
real(dp), save error_l2_strmf =0.0_dp
 estimation of the error of the potential More...
 
real(dp), save error_infinity_n =0.0_dp
 
real(dp), save error_l2_n =0.0_dp
 estimation of the error of the density More...
 
real(dp), save error_infinity_omega =0.0_dp
 
real(dp), save error_l2_omega =0.0_dp
 estimation of the error of omega More...
 
real(dp), save error_infinity_vpare =0.0_dp
 
real(dp), save error_l2_vpare =0.0_dp
 estimation of the error of the electron parallel velocity More...
 
real(dp), save error_infinity_vpari =0.0_dp
 
real(dp), save error_l2_vpari =0.0_dp
 estimation of the error of the ion parallel velocity More...
 
real(dp), save error_infinity_te =0.0_dp
 
real(dp), save error_l2_te =0.0_dp
 estimation of the error of the temperature More...
 
real(dp), save error_infinity_ti =0.0_dp
 
real(dp), save error_l2_ti =0.0_dp
 estimation of the error of the temperaturi More...
 
real(dp), save error_infinity_psi =0.0_dp
 
real(dp), save error_l2_psi =0.0_dp
 estimation of the error of psi More...
 
real(dp), dimension(:,:,:), pointer, private error_3d_strmf
 3D error on the potential More...
 
real(dp), dimension(:,:,:), pointer, private error_3d_n
 3D error on the density More...
 
real(dp), dimension(:,:,:), pointer, private error_3d_omega
 3D error on the omega More...
 
real(dp), dimension(:,:,:), pointer, private error_3d_vpare
 3D error on the electron parallel velocity More...
 
real(dp), dimension(:,:,:), pointer, private error_3d_vpari
 3D error on the ion parallel velocity More...
 
real(dp), dimension(:,:,:), pointer, private error_3d_te
 3D error on the electron temperature More...
 
real(dp), dimension(:,:,:), pointer, private error_3d_ti
 3D error on the ion temperature More...
 
real(dp), dimension(:,:,:), pointer, private error_3d_psi
 3D error on psi More...
 
real(dp), save st1 =3.1_dp
 
real(dp), save st2 =0.8_dp
 
real(dp), save st3 =0.1_dp
 
real(dp), save n1 =1.1_dp
 
real(dp), save n2 =0.4_dp
 
real(dp), save n3 =0.2_dp
 
real(dp), save o1 =0.5_dp
 
real(dp), save o2 =1.1_dp
 
real(dp), save o3 =-0.1_dp
 
real(dp), save ve1 =0.0_dp
 
real(dp), save ve2 =1.0_dp
 
real(dp), save ve3 =0.2_dp
 
real(dp), save vi1 =0.3_dp
 
real(dp), save vi2 =0.9_dp
 
real(dp), save vi3 =-0.2_dp
 
real(dp), save te1 =1.2_dp
 
real(dp), save te2 =0.5_dp
 
real(dp), save te3 =0.1_dp
 
real(dp), save ti1 =1.1_dp
 
real(dp), save ti2 = 0.4_dp
 
real(dp), save ti3 = 0.4_dp
 
real(dp), save psi1 =0._dp
 
real(dp), save psi2 = 0.4_dp
 
real(dp), save psi3 = 0.4_dp
 

Function/Subroutine Documentation

◆ advance_fields()

subroutine, public verification_mod::advance_fields
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ advance_strmf()

subroutine, public verification_mod::advance_strmf
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ advance_vpare()

subroutine, public verification_mod::advance_vpare
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ allocate_errors_3d()

subroutine verification_mod::allocate_errors_3d
private
+ Here is the caller graph for this function:

◆ bc_omega()

subroutine, public verification_mod::bc_omega

Apply the boundary condition to the vorticity.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ bc_tempe()

subroutine, public verification_mod::bc_tempe

Apply the boundary condition to the electron temperature.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ bc_tempi()

subroutine, public verification_mod::bc_tempi

Apply the boundary condition to the ion temperature.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ bc_theta()

subroutine, public verification_mod::bc_theta

Apply the boundary condition to the density.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ bc_vpare()

subroutine, public verification_mod::bc_vpare

Apply the boundary condition to the electron parallel velocity.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ bc_vpari()

subroutine, public verification_mod::bc_vpari

Apply the boundary condition to the ion parallel velocity.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ density_f()

real(dp) function verification_mod::density_f ( integer, intent(in)  iy,
integer, intent(in)  ix,
integer, intent(in)  iz 
)
private
+ Here is the caller graph for this function:

◆ div_poiss_noboussinesq()

real(dp) function, public verification_mod::div_poiss_noboussinesq ( integer, intent(in)  iy,
integer, intent(in)  ix,
integer, intent(in)  iz 
)
+ Here is the caller graph for this function:

◆ div_vpar_noboussinesq()

real(dp) function, public verification_mod::div_vpar_noboussinesq ( integer, intent(in)  iy,
integer, intent(in)  ix,
integer, intent(in)  iz 
)
+ Here is the caller graph for this function:

◆ error_estimation()

subroutine, public verification_mod::error_estimation
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initialize_verification_param()

subroutine, public verification_mod::initialize_verification_param

Compute some parameters needed for the verification.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initialize_verification_profiles()

subroutine, public verification_mod::initialize_verification_profiles
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ omega_f()

real(dp) function verification_mod::omega_f ( integer, intent(in)  iy,
integer, intent(in)  ix,
integer, intent(in)  iz 
)
private
+ Here is the caller graph for this function:

◆ omega_vect_1_ver()

real(dp) function, public verification_mod::omega_vect_1_ver ( integer, intent(in)  iy,
integer, intent(in)  ix,
integer, intent(in)  iz 
)
+ Here is the caller graph for this function:

◆ omega_vect_2_ver()

real(dp) function, public verification_mod::omega_vect_2_ver ( integer, intent(in)  iy,
integer, intent(in)  ix,
integer, intent(in)  iz 
)
+ Here is the caller graph for this function:

◆ poiss_omega_vect_1_ver()

real(dp) function, public verification_mod::poiss_omega_vect_1_ver ( integer, intent(in)  iy,
integer, intent(in)  ix,
integer, intent(in)  iz 
)
+ Here is the caller graph for this function:

◆ poiss_omega_vect_2_ver()

real(dp) function, public verification_mod::poiss_omega_vect_2_ver ( integer, intent(in)  iy,
integer, intent(in)  ix,
integer, intent(in)  iz 
)
+ Here is the caller graph for this function:

◆ poisson_strmf_bc_verification()

subroutine, public verification_mod::poisson_strmf_bc_verification

Boundary condition for the solver of the poisson equation.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ poisson_vpare_bc_verification()

subroutine, public verification_mod::poisson_vpare_bc_verification

Boundary condition for the solver of the ampere equation.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ psi_f()

real(dp) function verification_mod::psi_f ( integer, intent(in)  iy,
integer, intent(in)  ix,
integer, intent(in)  iz 
)
private
+ Here is the caller graph for this function:

◆ save_errors()

subroutine, public verification_mod::save_errors ( integer, intent(in)  fidres,
integer, dimension(3), intent(in)  iord3d 
)

Save the estimated value of the errors.

Refactor:
This routine is an output routine. It would be a better fit inside the diagnose_mod module.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ source_omega()

real(dp) function, public verification_mod::source_omega ( integer, intent(in)  iy,
integer, intent(in)  ix,
integer, intent(in)  iz 
)
+ Here is the caller graph for this function:

◆ source_omega_bouss()

real(dp) function, public verification_mod::source_omega_bouss

◆ source_psi()

real(dp) function, public verification_mod::source_psi ( integer, intent(in)  iy,
integer, intent(in)  ix,
integer, intent(in)  iz 
)
+ Here is the caller graph for this function:

◆ source_strmf()

real(dp) function, public verification_mod::source_strmf ( integer, intent(in)  iy,
integer, intent(in)  ix,
integer, intent(in)  iz 
)
+ Here is the caller graph for this function:

◆ source_tempe()

real(dp) function, public verification_mod::source_tempe ( integer, intent(in)  iy,
integer, intent(in)  ix,
integer, intent(in)  iz 
)
+ Here is the caller graph for this function:

◆ source_tempi()

real(dp) function, public verification_mod::source_tempi ( integer, intent(in)  iy,
integer, intent(in)  ix,
integer, intent(in)  iz 
)
+ Here is the caller graph for this function:

◆ source_theta()

real(dp) function, public verification_mod::source_theta ( integer, intent(in)  iy,
integer, intent(in)  ix,
integer, intent(in)  iz 
)
+ Here is the caller graph for this function:

◆ source_vpare()

real(dp) function, public verification_mod::source_vpare ( integer, intent(in)  iy,
integer, intent(in)  ix,
integer, intent(in)  iz 
)
+ Here is the caller graph for this function:

◆ source_vpari()

real(dp) function, public verification_mod::source_vpari ( integer, intent(in)  iy,
integer, intent(in)  ix,
integer, intent(in)  iz 
)
+ Here is the caller graph for this function:

◆ strmf_f()

real(dp) function verification_mod::strmf_f ( integer, intent(in)  iy,
integer, intent(in)  ix,
integer, intent(in)  iz 
)
+ Here is the caller graph for this function:

◆ temperature_f()

real(dp) function verification_mod::temperature_f ( integer, intent(in)  iy,
integer, intent(in)  ix,
integer, intent(in)  iz 
)
private
+ Here is the caller graph for this function:

◆ temperaturi_f()

real(dp) function verification_mod::temperaturi_f ( integer, intent(in)  iy,
integer, intent(in)  ix,
integer, intent(in)  iz 
)
private
+ Here is the caller graph for this function:

◆ time_rk4_update()

subroutine, public verification_mod::time_rk4_update

Define the time for the stepP i=1,...,4 of the RK4 algorithm.

+ Here is the caller graph for this function:

◆ vpare_f()

real(dp) function verification_mod::vpare_f ( integer, intent(in)  iy,
integer, intent(in)  ix,
integer, intent(in)  iz 
)
private
+ Here is the caller graph for this function:

◆ vpari_f()

real(dp) function verification_mod::vpari_f ( integer, intent(in)  iy,
integer, intent(in)  ix,
integer, intent(in)  iz 
)
private
+ Here is the caller graph for this function:

Variable Documentation

◆ a

real(dp), save verification_mod::a
private

◆ error_3d_n

real(dp), dimension(:,:,:), pointer, private verification_mod::error_3d_n
private

3D error on the density

◆ error_3d_omega

real(dp), dimension(:,:,:), pointer, private verification_mod::error_3d_omega
private

3D error on the omega

◆ error_3d_psi

real(dp), dimension(:,:,:), pointer, private verification_mod::error_3d_psi
private

3D error on psi

◆ error_3d_strmf

real(dp), dimension(:,:,:), pointer, private verification_mod::error_3d_strmf
private

3D error on the potential

◆ error_3d_te

real(dp), dimension(:,:,:), pointer, private verification_mod::error_3d_te
private

3D error on the electron temperature

◆ error_3d_ti

real(dp), dimension(:,:,:), pointer, private verification_mod::error_3d_ti
private

3D error on the ion temperature

◆ error_3d_vpare

real(dp), dimension(:,:,:), pointer, private verification_mod::error_3d_vpare
private

3D error on the electron parallel velocity

◆ error_3d_vpari

real(dp), dimension(:,:,:), pointer, private verification_mod::error_3d_vpari
private

3D error on the ion parallel velocity

◆ error_infinity_n

real(dp), save verification_mod::error_infinity_n =0.0_dp
private

◆ error_infinity_omega

real(dp), save verification_mod::error_infinity_omega =0.0_dp
private

◆ error_infinity_psi

real(dp), save verification_mod::error_infinity_psi =0.0_dp
private

◆ error_infinity_strmf

real(dp), save verification_mod::error_infinity_strmf =0.0_dp
private

◆ error_infinity_te

real(dp), save verification_mod::error_infinity_te =0.0_dp
private

◆ error_infinity_ti

real(dp), save verification_mod::error_infinity_ti =0.0_dp
private

◆ error_infinity_vpare

real(dp), save verification_mod::error_infinity_vpare =0.0_dp
private

◆ error_infinity_vpari

real(dp), save verification_mod::error_infinity_vpari =0.0_dp
private

◆ error_l2_n

real(dp), save verification_mod::error_l2_n =0.0_dp
private

estimation of the error of the density

◆ error_l2_omega

real(dp), save verification_mod::error_l2_omega =0.0_dp
private

estimation of the error of omega

◆ error_l2_psi

real(dp), save verification_mod::error_l2_psi =0.0_dp
private

estimation of the error of psi

◆ error_l2_strmf

real(dp), save verification_mod::error_l2_strmf =0.0_dp
private

estimation of the error of the potential

◆ error_l2_te

real(dp), save verification_mod::error_l2_te =0.0_dp
private

estimation of the error of the temperature

◆ error_l2_ti

real(dp), save verification_mod::error_l2_ti =0.0_dp
private

estimation of the error of the temperaturi

◆ error_l2_vpare

real(dp), save verification_mod::error_l2_vpare =0.0_dp
private

estimation of the error of the electron parallel velocity

◆ error_l2_vpari

real(dp), save verification_mod::error_l2_vpari =0.0_dp
private

estimation of the error of the ion parallel velocity

◆ ierr

integer verification_mod::ierr
private

◆ n1

real(dp), save verification_mod::n1 =1.1_dp
private

◆ n2

real(dp), save verification_mod::n2 =0.4_dp
private

◆ n3

real(dp), save verification_mod::n3 =0.2_dp
private

◆ o1

real(dp), save verification_mod::o1 =0.5_dp
private

◆ o2

real(dp), save verification_mod::o2 =1.1_dp
private

◆ o3

real(dp), save verification_mod::o3 =-0.1_dp
private

◆ psi1

real(dp), save verification_mod::psi1 =0._dp
private

◆ psi2

real(dp), save verification_mod::psi2 = 0.4_dp
private

◆ psi3

real(dp), save verification_mod::psi3 = 0.4_dp
private

◆ qm

real(dp), save verification_mod::qm
private

◆ st1

real(dp), save verification_mod::st1 =3.1_dp
private

◆ st2

real(dp), save verification_mod::st2 =0.8_dp
private

◆ st3

real(dp), save verification_mod::st3 =0.1_dp
private

◆ t_rk4

real(dp), save verification_mod::t_rk4 =0.0_dp
private

the current time for the RK4 algorithm

◆ te1

real(dp), save verification_mod::te1 =1.2_dp
private

◆ te2

real(dp), save verification_mod::te2 =0.5_dp
private

◆ te3

real(dp), save verification_mod::te3 =0.1_dp
private

◆ ti1

real(dp), save verification_mod::ti1 =1.1_dp
private

◆ ti2

real(dp), save verification_mod::ti2 = 0.4_dp
private

◆ ti3

real(dp), save verification_mod::ti3 = 0.4_dp
private

◆ ve1

real(dp), save verification_mod::ve1 =0.0_dp
private

◆ ve2

real(dp), save verification_mod::ve2 =1.0_dp
private

◆ ve3

real(dp), save verification_mod::ve3 =0.2_dp
private

◆ vi1

real(dp), save verification_mod::vi1 =0.3_dp
private

◆ vi2

real(dp), save verification_mod::vi2 =0.9_dp
private

◆ vi3

real(dp), save verification_mod::vi3 =-0.2_dp
private