V3FIT
|
This file contains subroutines for updating half-grid magnetic fields. More...
Functions/Subroutines | |
subroutine | update_bfield (l_add_res) |
Update contravariant componets of the magnetic field. More... | |
subroutine | faraday (djbsupsmnh, djbsupumnh, djbsupvmnh, |
Use Faraday's law dB = -curl(E) to compute magnitic field perturbation. More... | |
This file contains subroutines for updating half-grid magnetic fields.
subroutine siesta_bfield::faraday | ( | djbsupsmnh, | |
djbsupumnh, | |||
djbsupvmnh | |||
) |
Use Faraday's law dB = -curl(E) to compute magnitic field perturbation.
The arrays must be passed in as ALLOCATABLE to preserve the array bounds.
[in,out] | djbsupsmnh | Contravariant displacement in the s direction. |
[in,out] | djbsupsmnh | Contravariant displacement in the u direction. |
[in,out] | djbsupsmnh | Contravariant displacement in the v direction. |
[in] | esubsijf | Covariant real space electric field in the s direction. |
[in] | esubuijf | Covariant real space electric field in the s direction. |
[in] | esubvijf | Covariant real space electric field in the s direction. |
[in] | parity | Fourier parity control flag. |
[in] | nsmin | Minimum radial index. |
[in] | nsmax | Maximum radial index. |
Definition at line 186 of file siesta_bfield.f90.
subroutine siesta_bfield::update_bfield | ( | logical, intent(in) | l_add_res | ) |
Update contravariant componets of the magnetic field.
Advances half-mesh magnetic field components in nm space from time t to t + dt. Used to update values of bsup*mnh and bsupijh stored in the quantities module. Discretized version of Faraday's law
dB/dt = -Curl(E) (1)
[in] | l_add_res | Control flag to add resonant field. |
Definition at line 37 of file siesta_bfield.f90.