V3FIT
Functions/Subroutines
siesta_bfield Module Reference

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...
 

Detailed Description

This file contains subroutines for updating half-grid magnetic fields.

Function/Subroutine Documentation

◆ faraday()

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.

Parameters
[in,out]djbsupsmnhContravariant displacement in the s direction.
[in,out]djbsupsmnhContravariant displacement in the u direction.
[in,out]djbsupsmnhContravariant displacement in the v direction.
[in]esubsijfCovariant real space electric field in the s direction.
[in]esubuijfCovariant real space electric field in the s direction.
[in]esubvijfCovariant real space electric field in the s direction.
[in]parityFourier parity control flag.
[in]nsminMinimum radial index.
[in]nsmaxMaximum radial index.

Definition at line 186 of file siesta_bfield.f90.

◆ update_bfield()

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)

Parameters
[in]l_add_resControl flag to add resonant field.

Definition at line 37 of file siesta_bfield.f90.