CONTAINS routine to solve for lambda at a specific flux surface (for example for the boudnary condition at the last flux surface)
Solve for lambda on one given flux surface (spos_in), using weak form of J^s=0: d/dzeta(B_theta)-d/dtheta(B_zeta)=0
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=wp), | intent(in) | :: | spos_in |
s position to evaluate lambda |
||
| type(PP_T_HMAP), | intent(in) | :: | hmap_in | |||
| type(PP_T_HMAP_AUXVAR), | intent(in) | :: | hmap_xv(X1_base_in%f%mn_IP) | |||
| class(t_base), | intent(in) | :: | X1_base_in | |||
| class(t_base), | intent(in) | :: | X2_base_in | |||
| type(t_fBase), | intent(in) | :: | LA_fbase_in | |||
| real(kind=wp), | intent(in) | :: | X1_in(1:X1_base_in%s%nBase,1:X1_base_in%f%modes) |
U%X1 variable, is reshaped to 2D at input |
||
| real(kind=wp), | intent(in) | :: | X2_in(1:X2_base_in%s%nBase,1:X2_base_in%f%modes) |
U%X2 variable, is reshaped to 2D at input |
||
| real(kind=wp), | intent(out) | :: | LA_s(1:LA_fbase_in%modes) |
lambda at spos |
||
| real(kind=wp), | intent(in) | :: | phiPrime_s |
toroidal flux derivative phi' at the position s |
||
| real(kind=wp), | intent(in) | :: | chiPrime_s |
poloidal flux derivative chi' at the position s |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(t_fBase), | intent(in) | :: | LA_fbase_in | |||
| real(kind=wp), | intent(in) | :: | phiPrime_s |
toroidal and poloidal flux s derivatives at s_pos |
||
| real(kind=wp), | intent(in) | :: | ChiPrime_s |
toroidal and poloidal flux s derivatives at s_pos |
||
| real(kind=wp), | intent(in), | DIMENSION(1:LA_fbase_in%mn_IP) | :: | gam_tt |
g_tt/J evaluated on IP points |
|
| real(kind=wp), | intent(in), | DIMENSION(1:LA_fbase_in%mn_IP) | :: | gam_tz |
g_tz/J evaluated on IP points |
|
| real(kind=wp), | intent(in), | DIMENSION(1:LA_fbase_in%mn_IP) | :: | gam_zz |
g_zz/J evaluated on IP points |
|
| real(kind=wp), | intent(out) | :: | LA_s(1:LA_fbase_in%modes) |
lambda at spos |