Module for applying external charge and current density perturbations, or electrostatic and magnetic potentials.
More...
|
| subroutine, public | init_module |
| | Initialize module.
|
| subroutine, public | init_field |
| | Initialize antenna's potential.
|
| subroutine, public | update_field (t) |
| | Update antenna's potential to a given time.
|
|
| type(field_type), public | phi |
| | Antenna's electrostatic potential.
|
| real(kind=r8), dimension(:,:,:), allocatable | field_t0_bspl |
| | Antenna's field at \(t=0\).
|
| real(kind=r8), dimension(:,:,:), allocatable | field_tquarter_bspl |
| | Antenna's field at \(t=\pi/(2\omega_\mathrm{ant})\).
|
Module for applying external charge and current density perturbations, or electrostatic and magnetic potentials.
- Author
- N. Ohana
- Date
- 07.2018
◆ init_field()
| subroutine, public antenna_mod::init_field |
Initialize antenna's potential.
- Allocate temporary field
- Select solver matrix
- Read profile if necessary
- Prepare diagnostics
- Loop over times when field must be built
- Build right-hand-side in Fourier space
- Change basis and impose boundary conditions
- Backsolve
- Go back to original basis
- Diagnose
- Broadcast to clones
- Fourier transform solution to real space
◆ init_module()
| subroutine, public antenna_mod::init_module |
Initialize module.
- Initialize data structure
- Set which field should be evaluated at marker positions
- Set number of modes
- Allocate fields
◆ update_field()
| subroutine, public antenna_mod::update_field |
( |
real(kind=r8), intent(in) | t | ) |
|
Update antenna's potential to a given time.
- See also
- Time separation
- Parameters
-
◆ field_t0_bspl
| real(kind=r8), dimension(:,:,:), allocatable antenna_mod::field_t0_bspl |
|
private |
Antenna's field at \(t=0\).
◆ field_tquarter_bspl
| real(kind=r8), dimension(:,:,:), allocatable antenna_mod::field_tquarter_bspl |
|
private |
Antenna's field at \(t=\pi/(2\omega_\mathrm{ant})\).
◆ phi
Antenna's electrostatic potential.