![]() |
Stellarator-Tools
|
Interface to take the curl on a half mesh quantity and return a full mesh using either curl_htof or curl_htof_targ. More...
Public Member Functions | |
| subroutine | curl_htof (bsubsmnh, bsubumnh, bsubvmnh, |
| Compute curl of the half grid quantity a on the full grid. | |
| subroutine | curl_htof_targ (bsubsmnh, bsubumnh, bsubvmnh, |
| Convert allocatable to pointer for use in curl_htof. | |
Interface to take the curl on a half mesh quantity and return a full mesh using either curl_htof or curl_htof_targ.
| subroutine utilities::curl_htof::curl_htof | ( | real (dp), dimension(:,:,:), intent(in), allocatable | bsubsmnh, |
| real (dp), dimension(:,:,:), intent(in), allocatable | bsubumnh, | ||
| real (dp), dimension(:,:,:), intent(in), allocatable | bsubvmnh | ||
| ) |
Compute curl of the half grid quantity a on the full grid.
The contravariant components of jac*Curl A are equal to
sqrt(g)*K^k = dB_j/du^i - dB_i/du^j (j)
for cyclic permutations of i,j,k. This routine does not remove the jacobian factor. The arrays must be passed in as ALLOCATABLE or POINTER to preserve the array bounds.
| [in] | bsubsmnh | Covariant vector in the s direction half grid. |
| [in] | bsubsmnh | Covariant vector in the u direction half grid. |
| [in] | bsubsmnh | Covariant vector in the v direction half grid. |
| [in,out] | jKsubsmnf | Contravariant vector in the s direction with jacobian factor full grid. |
| [in,out] | jKsubsmnf | Contravariant vector in the u direction with jacobian factor full grid. |
| [in,out] | jKsubsmnf | Contravariant vector in the v direction with jacobian factor full grid. |
| [in] | parity | Parity flag. |
| [in] | nsmin | Minimum radial index. |
| [in] | nsmax | Maximum radial index. |
| [in] | nsend | Ending row index. |
| [in,out] | curtor | Current enclosed at the boundary. |
| subroutine utilities::curl_htof::curl_htof_targ | ( | real (dp), dimension(:,:,:), intent(in), allocatable | bsubsmnh, |
| real (dp), dimension(:,:,:), intent(in), allocatable | bsubumnh, | ||
| real (dp), dimension(:,:,:), intent(in), allocatable | bsubvmnh | ||
| ) |
Convert allocatable to pointer for use in curl_htof.
| [in] | Asubsmnh | Covariant vector in the s direction half grid. |
| [in] | Asubsmnh | Covariant vector in the u direction half grid. |
| [in] | Asubsmnh | Covariant vector in the v direction half grid. |
| [in,out] | jBsubsmnf | Contravariant vector in the s direction with jacobian factor full grid. |
| [in,out] | jBsubsmnf | Contravariant vector in the u direction with jacobian factor full grid. |
| [in,out] | jBsubsmnf | Contravariant vector in the v direction with jacobian factor full grid. |
| [in] | parity | Parity flag. |
| [in] | nsmin | Minimum radial index. |
| [in] | nsmax | Maximum radial index. |
| [in] | nsend | Ending row index. |
| [in,out] | curtor | Current enclosed at the boundary. |