5 REAL (kind=8),
PARAMETER,
PUBLIC :: ratio_mu_T27 = 50.0d0
6 REAL (kind=8),
PUBLIC :: b_factor_T27 = (2**6) * (ratio_mu_T27-1.d0)/(ratio_mu_T27+1.d0)
7 INTEGER,
PUBLIC :: mode_mu_T27 = 4
8 REAL (kind=8),
PUBLIC :: omega_T27 = 1.d0
18 REAL(KIND=8),
DIMENSION(ne-nb+1) :: vv
20 REAL(KIND=8),
DIMENSION(2,ne-nb+1),
OPTIONAL :: pts
21 INTEGER,
DIMENSION(ne-nb+1),
OPTIONAL :: pts_ids
22 REAL(KIND=8),
DIMENSION(ne-nb+1) :: r,
z
24 IF( present(pts) .AND. present(pts_ids) )
THEN
41 REAL(KIND=8),
DIMENSION(2) :: pt,vv
42 INTEGER,
DIMENSION(1) :: pt_id
43 REAL(KIND=8),
DIMENSION(1) :: tmp,r,
z
51 IF (tmp(1) .GE. 0.d0 )
THEN
70 REAL(KIND=8),
DIMENSION(:) :: angles
74 REAL(KIND=8),
DIMENSION(nb_angles,ne-nb+1) :: vv
78 vv(ang,:) = 1/(1+
f_test_wtime_t27(h_mesh%rr(1,nb:ne),h_mesh%rr(2,nb:ne),time)*cos(mode_mu_t27*angles(ang)))
84 REAL(KIND=8),
DIMENSION(:),
INTENT(IN) :: r,
z
85 REAL(KIND=8),
DIMENSION(SIZE(r)) :: vv
87 vv = b_factor_t27*(r*(1-r)*(
z**2-1))**3
93 REAL(KIND=8),
DIMENSION(:),
INTENT(IN) :: r,
z
94 REAL(KIND=8),
INTENT(IN) ::
t
95 REAL(KIND=8),
DIMENSION(SIZE(r)) :: vv
97 vv = b_factor_t27*cos(omega_t27*
t)*(r*(1-r)*(
z**2-1))**3
103 REAL(KIND=8),
INTENT(IN):: r,
z
105 vv = 3 * b_factor_t27 * (
z**2-1)**3 * (r*(1-r))**2 * (1-2*r)
111 REAL(KIND=8),
INTENT(IN):: r,
z,
t
113 vv = 3 * b_factor_t27 * cos(omega_t27*
t) * (
z**2-1)**3 * (r*(1-r))**2 * (1-2*r)
119 REAL(KIND=8),
INTENT(IN):: r,
z
121 vv = 3*b_factor_t27*(r*(1-r))**3*(
z**2-1)**2*(2*
z)
127 REAL(KIND=8),
INTENT(IN):: r,
z,
t
129 vv = 3*b_factor_t27*cos(omega_t27*
t) *(r*(1-r))**3*(
z**2-1)**2*(2*
z)
section doc_intro_frame_work_num_app Numerical approximation subsection doc_intro_fram_work_num_app_Fourier_FEM Fourier Finite element representation The SFEMaNS code uses a hybrid Fourier Finite element formulation The Fourier decomposition allows to approximate the problem’s solutions for each Fourier mode modulo nonlinear terms that are made explicit The variables are then approximated on a meridian section of the domain with a finite element method The numerical approximation of a function f $f f is written in the following generic t
real(kind=8) function dfdz_test_wtime_t27(r, z, t)
real(kind=8) function, dimension(size(r)) f_test_t27(r, z)
real(kind=8) function, dimension(2) grad_mu_bar_in_fourier_space_anal_t27(pt, pt_id)
real(kind=8) function, dimension(ne-nb+1) mu_bar_in_fourier_space_anal_t27(H_mesh, nb, ne, pts, pts_ids)
real(kind=8) function dfdr_test_wtime_t27(r, z, t)
real(kind=8) function, dimension(nb_angles, ne-nb+1) mu_in_real_space_anal_t27(H_mesh, angles, nb_angles, nb, ne, time)
real(kind=8) function dfdz_test_t27(r, z)
real(kind=8) function, dimension(size(r)) f_test_wtime_t27(r, z, t)
section doc_intro_frame_work_num_app Numerical approximation subsection doc_intro_fram_work_num_app_Fourier_FEM Fourier Finite element representation The SFEMaNS code uses a hybrid Fourier Finite element formulation The Fourier decomposition allows to approximate the problem’s solutions for each Fourier mode modulo nonlinear terms that are made explicit The variables are then approximated on a meridian section of the domain with a finite element method The numerical approximation of a function f $f f is written in the following generic z
real(kind=8) function dfdr_test_t27(r, z)