SPEC 3.20
Stepped Pressure Equilibrium Code
|
Functions/Subroutines | |
subroutine | packab (packorunpack, lvol, NN, solution, ideriv) |
Packs and unpacks Beltrami field solution vector. More... | |
subroutine | packxi (NGdof, position, Mvol, mn, iRbc, iZbs, iRbs, iZbc, packorunpack, LComputeDerivatives, LComputeAxis) |
Packs, and unpacks, geometrical degrees of freedom; and sets coordinate axis. More... | |
subroutine packab | ( | character, intent(in) | packorunpack, |
integer, intent(in) | lvol, | ||
integer, intent(in) | NN, | ||
real, dimension(1:nn) | solution, | ||
integer, intent(in) | ideriv | ||
) |
Packs and unpacks Beltrami field solution vector.
construction of "vector" of independent degrees of freedom
\begin{eqnarray} {\bf x} \equiv \{ {\color{red} A_{\theta,e,i,l}},{\color{blue}A_{\zeta, e,i,l}},{\color{Orange} A_{\theta,o,i,l}},{\color{Cerulean}A_{\zeta ,o,i,l}},a_i,b_i,c_i,d_i,e_i,f_i,g_1,h_1\}. \end{eqnarray}
packorunpack | |
lvol | |
NN | |
solution | |
ideriv |
References allglobal::ate, allglobal::ato, allglobal::aze, allglobal::azo, allglobal::cpus, allglobal::im, allglobal::in, allglobal::lma, allglobal::lmavalue, allglobal::lmb, allglobal::lmbvalue, allglobal::lmc, allglobal::lmcvalue, allglobal::lmd, allglobal::lmdvalue, allglobal::lme, allglobal::lmevalue, allglobal::lmf, allglobal::lmfvalue, allglobal::lmg, allglobal::lmgvalue, allglobal::lmh, allglobal::lmhvalue, inputlist::lrad, allglobal::mn, allglobal::mpi_comm_spec, allglobal::myid, allglobal::ncpu, allglobal::notstellsym, fileunits::ounit, packab(), numerical::small, allglobal::tt, allglobal::yesstellsym, and constants::zero.
Referenced by dforce(), dfp200(), get_perturbed_solution(), ma02aa(), matvec(), mp00ac(), and packab().
subroutine packxi | ( | integer, intent(in) | NGdof, |
real, dimension(0:ngdof) | position, | ||
integer, intent(in) | Mvol, | ||
integer, intent(in) | mn, | ||
real, dimension(1:mn,0:mvol) | iRbc, | ||
real, dimension(1:mn,0:mvol) | iZbs, | ||
real, dimension(1:mn,0:mvol) | iRbs, | ||
real, dimension(1:mn,0:mvol) | iZbc, | ||
character | packorunpack, | ||
logical, intent(in) | LComputeDerivatives, | ||
logical, intent(in) | LComputeAxis | ||
) |
Packs, and unpacks, geometrical degrees of freedom; and sets coordinate axis.
geometrical degrees of freedom
\begin{eqnarray} \boldsymbol{\xi}_k \equiv \frac{R_{j,v}}{\Psi_{j,v}}, \end{eqnarray}
where \(\Psi_{j,v} \equiv\,\)psifactor(j,v)
, which is defined in global.f90 . coordinate axis
\begin{eqnarray} R_0(\zeta) \equiv \frac{\int_{0}^{2\pi} R_1(\theta,\zeta) dl}{L(\zeta)}, \qquad Z_0(\zeta) \equiv \frac{\int_{0}^{2\pi} Z_1(\theta,\zeta) dl}{L(\zeta)}, \end{eqnarray}
where \(L(\zeta)\equiv \int_{0}^{2\pi} dl\) and \(dl \equiv \sqrt{ \partial_\theta R_1(\theta,\zeta)^2 + \partial_\theta Z_1(\theta,\zeta)^2 } \, d\theta\).some numerical comments
ajk(1:mn)
variable is used. [in] | NGdof | |
position | ||
[in] | Mvol | |
[in] | mn | |
iRbc | ||
iZbs | ||
iRbs | ||
iZbc | ||
packorunpack | ||
[in] | LComputeDerivatives | |
[in] | LComputeAxis |
References allglobal::ajk, allglobal::cfmn, allglobal::comn, allglobal::cpus, allglobal::efmn, allglobal::evmn, inputlist::igeometry, allglobal::ijimag, allglobal::ijreal, allglobal::im, allglobal::in, allglobal::irij, allglobal::izij, allglobal::jiimag, allglobal::jireal, inputlist::lfindzero, allglobal::mpi_comm_spec, allglobal::myid, allglobal::ncpu, allglobal::notstellsym, allglobal::nt, inputlist::ntor, allglobal::ntz, inputlist::nvol, allglobal::nz, allglobal::odmn, allglobal::ofmn, fileunits::ounit, packxi(), allglobal::psifactor, allglobal::rscale, rzaxis(), allglobal::sfmn, allglobal::simn, allglobal::trij, allglobal::tzij, allglobal::yesstellsym, and constants::zero.
Referenced by dforce(), fcn1(), fcn2(), hesian(), packxi(), and spec().