Stellarator-Tools
Loading...
Searching...
No Matches
fouri_mod Module Reference

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.

Detailed Description

Fourier transform of the unprimed mesh for the source.

Function/Subroutine Documentation

◆ fouri()

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.

Parameters
[in]grpmnFourier transform of the prime mesh.
[in]gsourceSource term.
[out]amatrixA Matrix.
[out]amatrixSquare matrix.
[in,out]bvecMagnetic field vector.
[in,out]bvecNSMagnetic field neumann source.
[in]ndimNumber of dimensions.

◆ fouri_asym()

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.

Parameters
[in]grpmnFourier transform of the prime mesh.
[in]gsourceSource term.
[out]amatrixA Matrix.
[out]amatrixSquare matrix.
[in,out]bvecNSMagnetic field neumann source.
[in]ndimNumber of dimensions.

◆ fouri_sym()

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.

Parameters
[in]grpmnFourier transform of the prime mesh.
[in]gsourceSource term.
[out]amatrixA Matrix.
[out]amatrixSquare matrix.
[in,out]bvecNSMagnetic field neumann source.
[in]ndimNumber of dimensions.