Stellarator-Tools
|
Subroutines and functions updating MHD forces and Wmhd. More...
Functions/Subroutines | |
subroutine | funct_island |
Compute forces for the perturbed state. | |
real(dp) function | getfsq (nsmin, nsmax) |
Computes the force residul. More... | |
real(dp) function | getwmhd (p) |
Get the perturbed MHD and Kinetic energy. More... | |
subroutine | linesearch (xcmin, fsq_min) |
Perform line search along xc vector for minimum force residul. More... | |
subroutine | init_ptrs (xtarget, s_ptr_sym, u_ptr_sym, v_ptr_sym, |
Initializes pointers for xc (displacement variable) and gc (force) residules. More... | |
Subroutines and functions updating MHD forces and Wmhd.
real (dp) function shared_functions::getfsq | ( | integer, intent(in) | nsmin, |
integer, intent(in) | nsmax | ||
) |
Computes the force residul.
The force residul is found by
|F^2| = Fsub.Fsup = f_s*f^s + f_u*f^u + f_v*f^v (3)
[in] | nsmin | Minimum radial index. |
[in] | nsmax | Maximum radial index. |
real (dp) function shared_functions::getwmhd | ( | real (dp), dimension(:), intent(in) | p | ) |
Get the perturbed MHD and Kinetic energy.
[in] | p | Displacement vector. |
subroutine shared_functions::init_ptrs | ( | xtarget, | |
s_ptr_sym, | |||
u_ptr_sym, | |||
v_ptr_sym | |||
) |
Initializes pointers for xc (displacement variable) and gc (force) residules.
[in] | xtarget | State array to point to. |
[out] | s_ptr_sym | Stellarator symmetric term for the s component. |
[out] | u_ptr_sym | Stellarator symmetric term for the u component. |
[out] | v_ptr_sym | Stellarator symmetric term for the v component. |
[out] | s_ptr_asym | Stellarator asymmetric term for the s component. |
[out] | u_ptr_asym | Stellarator asymmetric term for the u component. |
[out] | v_ptr_asym | Stellarator asymmetric term for the v component. |
subroutine shared_functions::linesearch | ( | real(dp), dimension(neqs), intent(inout) | xcmin, |
real(dp), intent(out) | fsq_min | ||
) |
Perform line search along xc vector for minimum force residul.
[in,out] | xcmin | Scaled displacement vector. |
[out] | fsq_min | Resdule at the minimum. |