![]() |
Stellarator-Tools
|
Fourier transform of the unprimed mesh for the source. More...
Functions/Subroutines | |
| subroutine | fouri (grpmn, gsource, amatrix, amatsq, bvec, bvecns, ndim) |
| General Fourier transform of the unprimed mesh for the source. | |
| subroutine | fouri_sym (grpmn, gsource, amatrix, amatsq, bvecns, ndim) |
| Fourier transform for symmetric equilibria. | |
| subroutine | fouri_asym (grpmn, gsource, amatrix, amatsq, bvecns, ndim) |
| Fourier transform for asymmetric equilibria. | |
Fourier transform of the unprimed mesh for the source.
| subroutine fouri_mod::fouri | ( | real(dp), dimension(mnpd2,nuv3), intent(in) | grpmn, |
| real(dp), dimension(nuv), intent(in) | gsource, | ||
| real(dp), dimension(mnpd,mnpd,ndim**2), intent(out) | amatrix, | ||
| real(dp), dimension(mnpd2,mnpd2), intent(out) | amatsq, | ||
| real(dp), dimension(mnpd,ndim), intent(inout) | bvec, | ||
| real(dp), dimension(mnpd,ndim), intent(inout) | bvecns, | ||
| integer, intent(in) | ndim ) |
General Fourier transform of the unprimed mesh for the source.
amatrix(,1) = A(Sin)(Sin') amatrix(,2) = A(Sin)(Cos') amatrix(,3) = A(Cos)(Sin') amatrix(,4) = A(Cos)(Cos')
Argument of the trig function: m'u' - n'v' corresponding to the primed mesh in PKM eq.(2.14), and mu - nv (unprimed mesh) in eq.(2.16)
On entry, grpmn(mn,...) has been Fourier-transformed over the unprimed coordinates (in fourp), so the first index of grpmn corresponds to the first index of Amatrix. Thus, the Fourier transforms or grpmn here are over the primed mesh.
In contrast, the integral of the source term over the primed mesh was already done in scalpot, so here the Fourier transforms are over the unprimed mesh for the source.
| [in] | grpmn | Fourier transform of the prime mesh. |
| [in] | gsource | Source term. |
| [out] | amatrix | A Matrix. |
| [out] | amatrix | Square matrix. |
| [in,out] | bvec | Magnetic field vector. |
| [in,out] | bvecNS | Magnetic field neumann source. |
| [in] | ndim | Number of dimensions. |
| subroutine fouri_mod::fouri_asym | ( | real(dp), dimension(mnpd2,nuv3), intent(in) | grpmn, |
| real(dp), dimension(nuv), intent(in) | gsource, | ||
| real(dp), dimension(mnpd,mnpd,ndim**2), intent(out) | amatrix, | ||
| real(dp), dimension(mnpd2,mnpd2), intent(out) | amatsq, | ||
| real(dp), dimension(mnpd,ndim), intent(inout) | bvecns, | ||
| integer, intent(in) | ndim ) |
Fourier transform for asymmetric equilibria.
| [in] | grpmn | Fourier transform of the prime mesh. |
| [in] | gsource | Source term. |
| [out] | amatrix | A Matrix. |
| [out] | amatrix | Square matrix. |
| [in,out] | bvecNS | Magnetic field neumann source. |
| [in] | ndim | Number of dimensions. |
| subroutine fouri_mod::fouri_sym | ( | real(dp), dimension(mnpd2,nuv3), intent(in) | grpmn, |
| real(dp), dimension(nuv), intent(in) | gsource, | ||
| real(dp), dimension(mnpd,mnpd,ndim**2), intent(out) | amatrix, | ||
| real(dp), dimension(mnpd2,mnpd2), intent(out) | amatsq, | ||
| real(dp), dimension(mnpd,ndim), intent(inout) | bvecns, | ||
| integer, intent(in) | ndim ) |
Fourier transform for symmetric equilibria.
| [in] | grpmn | Fourier transform of the prime mesh. |
| [in] | gsource | Source term. |
| [out] | amatrix | A Matrix. |
| [out] | amatrix | Square matrix. |
| [in,out] | bvecNS | Magnetic field neumann source. |
| [in] | ndim | Number of dimensions. |