ORB5  4.00
Loading...
Searching...
No Matches
fields.F90 File Reference
#include "precomp.h"
Include dependency graph for fields.F90:

Data Types

type  fields_mod::field_type
 Field data structure. More...
interface  fields_mod::part_grid

Modules

module  fields_mod

Functions/Subroutines

subroutine, public fields_mod::init_module
subroutine, public fields_mod::init_field (field)
 Allocate derived type members and set default values.
subroutine, public fields_mod::copyin_field_gpu (field)
 Copy field boolean arrays to GPU.
subroutine, public fields_mod::add_field_attributes (field, isp, natts)
 Add marker attributes to store potential fields and their gradients.
subroutine, public fields_mod::setrho (i_att)
 Compute RHS of Poisson/Ampere equations.
subroutine, public fields_mod::create_rhs (no_species_flag, filter_flag, rho_bspl_loc, rhs_f_loc, sig2noi, transform_)
 Interface for the create_rhs_* routines.
subroutine fields_mod::create_rhs_pptransp (no_species_flag, filter_flag, rho_bspl_loc, rhs_f_loc, sig2noi, transform_)
 Create RHS using the pptransp algorithm.
subroutine fields_mod::init_mode_distribution (filter, mbounds, width_m)
subroutine fields_mod::create_rhs_local_dft (no_species_flag, filter_flag, rho_bspl_loc, rhs_f_loc, transform_)
 Create RHS using the local DFT algorithm.
subroutine fields_mod::create_rhs_passing (rho_passing)
 Creates the rhs contribution of the passing electrons for the hybrid electron model (Idomura2016).
subroutine, public fields_mod::create_field_bspl (field_bspl_loc, rhs_f_loc, computephibar, transform_)
 Interface routine for create_field_bspl* routines.
subroutine fields_mod::create_field_bspl_pptransp (field_bspl_loc, rhs_f_loc, computephibar, transform_)
 Convert RHS in Fourier to field in real space.
subroutine fields_mod::create_field_bspl_local_dft (field_bspl_loc, rhs_f_loc, computephibar, transform_)
 Convert RHS in Fourier to field in real space.
subroutine, public fields_mod::pde_solver (nsel_solve, create_flag)
 Solve Poisson or Ampere equation.
subroutine, public fields_mod::solve_mass_matrix (adin)
 Solve identity (only used when building islands).
subroutine, public fields_mod::output_back_pot (fresid, time)
 Write the background potential to hdf5.
subroutine, public fields_mod::fdiag_energy (isp, step)
subroutine, public fields_mod::fdiag_fields (step)
subroutine, public fields_mod::get_phi0 (sigma, chi, lnaveg, chit, sigmat, chi_sigma_gradients, emf, potential)
 Evaluate gyroaverage of n=0 component of electrostatic potential and its gradients.
subroutine fields_mod::add_to_1d (fieldin, diag_index, indexes, ithread, to_add_list)
subroutine fields_mod::polarisation_terms_p0q0 (isp, sigma, chi, sigmat, chit, ithread, lnaveg, diag_weight, ephi)
subroutine, public fields_mod::init_filter
integer function, dimension(0:fields%nphi-1, islw:isup, 0:fields%nchip-1) fields_mod::get_filter (iact, mshift)
 3D filter function
subroutine, public fields_mod::get_pot_disp (st, chit, phit, pot, field_select, isp)
real(kind=r8) function, public fields_mod::getpot (st, chit, zphit, field_bspl, ephi_q)
subroutine, public fields_mod::profrz (s, c, potsc, potsp, rsc, zsc, field_select)
subroutine fields_mod::spectrum2 (ispec, mdim, ndim, spec, spec_loc, isp)
subroutine, public fields_mod::sphibar (st, phi0, phib, phit)
 Compute flux surface average of phi.
subroutine fields_mod::initgrids
 Initialize grids.
subroutine fields_mod::backsolve (nsel_backsolve)
 Perform backsolve.
subroutine fields_mod::backsolve_generic (matnum, rhs_f)
subroutine fields_mod::alloc_fields_array
subroutine fields_mod::def_mass_mat
 Define DFT of the mass matrix and its inverse (1/M).
subroutine fields_mod::alloc_rhs
subroutine, public fields_mod::getrhoav (rhoav)
subroutine fields_mod::def_matrix_filter
 Define array mmin_f, mmax_f for poloidal filter.
subroutine, public fields_mod::correct_current
 Use the enhanced control variates method to split the weights.
subroutine fields_mod::set_apar_ramp (time)
subroutine, public fields_mod::vecmatmul (vec_out, imat, vec_in)
 Compute vec_out = MATS(imat) * vec_in.
subroutine, public fields_mod::solve_fem (time)
 Solve potential equations and compute field vector.
subroutine, public fields_mod::initialize_fem ()
 Initialize.
real(kind=r8) function fields_mod::func_init_potential (ps, chit, phit)
 Generate initial perturbation.
subroutine, public fields_mod::read_write_field_data_disp (iflag, datn)
subroutine fields_mod::read_write_field_data (iflag, field_bspl, field_select, datn)
subroutine, public fields_mod::copy_fields (field_select)
subroutine fields_mod::const_phi (phi)
subroutine, public fields_mod::fieldp2fieldc (matnum, zarrp, zarrc)
 Solve potential equations and compute field vector.
subroutine, public fields_mod::bspl2fft (rho_loc, rhs_f_loc)
subroutine, public fields_mod::fft2bspl (rhs_f_loc, phi_bspl_loc)
subroutine, public fields_mod::matmul_ami (matnum, zarrc, zarrp)

Variables

integer, dimension(4), save, public fields_mod::lb
integer, dimension(4), save, public fields_mod::ub
integer, save, public fields_mod::islw
integer, save, public fields_mod::isup
integer, save fields_mod::islw1
integer, save fields_mod::isup1
integer, save, public fields_mod::jclw
integer, save, public fields_mod::jcup
integer, save fields_mod::jclw1
integer, save fields_mod::jcup1
integer, save, public fields_mod::kplw
integer, save, public fields_mod::kpup
integer, save fields_mod::kplw1
integer, save fields_mod::kpup1
integer, save fields_mod::islw_b
integer, save fields_mod::isup_b
integer, dimension(8), save fields_mod::filter_modes
integer, save, public fields_mod::nblocks_eff
integer, dimension(:,:,:), allocatable, save, public fields_mod::filter
integer, dimension(:,:,:), allocatable, save, public fields_mod::filter2
integer, dimension(:,:), allocatable, save, public fields_mod::mmin_f
integer, dimension(:,:), allocatable, save fields_mod::mmax_f
integer, dimension(:,:), allocatable fields_mod::mmin_f_global
integer, dimension(:,:), allocatable fields_mod::mmax_f_global
integer, dimension(:,:,:), allocatable fields_mod::mbounds
integer, dimension(:), allocatable, save, public fields_mod::blsize
integer, dimension(:), allocatable, save, public fields_mod::iblock
real(kind=r8), dimension(:), allocatable, save, public fields_mod::sgrid
real(kind=r8), dimension(:), allocatable, save, public fields_mod::chigrid
real(kind=r8), dimension(:), allocatable, save, public fields_mod::phigrid
real(kind=r8), dimension(:,:,:), allocatable, save fields_mod::phi1_bspl
real(kind=r8), dimension(:,:,:), allocatable, save fields_mod::phi2_bspl
real(kind=r8), dimension(:,:,:), allocatable, save fields_mod::apar_bspl_old
real(kind=r8), dimension(:,:), allocatable, save fields_mod::phi0
 n=0 component of phi
real(kind=r8), dimension(:,:,:,:), allocatable, save, public fields_mod::rho_bspl
real(kind=r8), dimension(:,:,:), allocatable, save, public fields_mod::moment_sp_bspl
real(kind=r8), dimension(:,:), allocatable, save fields_mod::rho_passing_bspl
real(kind=r8), dimension(:,:,:,:), allocatable, save, public fields_mod::curr_bspl
real(kind=r8), dimension(:,:,:,:), allocatable, save fields_mod::curr_temp
real(kind=r8), dimension(:,:,:), allocatable, save fields_mod::rho_mass_bspl
real(kind=r8), dimension(:,:,:), allocatable, save fields_mod::curr_corr_bspl
real(kind=r8), dimension(:,:,:), allocatable, save, public fields_mod::curr_sympl_bspl
real(kind=r8), dimension(:,:,:), allocatable, save, public fields_mod::apar_ham_bspl
real(kind=r8), dimension(:,:,:), allocatable, save, public fields_mod::mom_sp_bspl
complex(kind=r8), dimension(:,:), allocatable, save, public fields_mod::rhs_f
complex(kind=r8), dimension(:,:), allocatable, save, public fields_mod::rhs_f_mass
complex(kind=r8), dimension(:,:), allocatable, save, public fields_mod::rhs_f_amp
complex(kind=r8), dimension(:,:), allocatable, save, public fields_mod::rhs_f_apar_sympl
complex(kind=r8), dimension(:,:), allocatable, save fields_mod::rhs_f_adi_curr
complex(kind=r8), dimension(:,:), allocatable, save, public fields_mod::rhs_f_lapl
complex(kind=r8), dimension(:,:), allocatable, save, public fields_mod::mom_rhs
real(kind=r8), dimension(:,:), allocatable, save fields_mod::rhs_tmp
real(kind=r8), dimension(:,:), allocatable, save fields_mod::rhs_mass
real(kind=r8), dimension(:), allocatable, save, public fields_mod::fftminv
complex(kind=r8), dimension(:), allocatable, save fields_mod::dfftmass
real(kind=r8), save, public fields_mod::dsgrid
real(kind=r8), save, public fields_mod::dchigrid
real(kind=r8), save, public fields_mod::dphigrid
real(kind=r8), save, public fields_mod::dsgrid_inv
real(kind=r8), save, public fields_mod::dchigrid_inv
real(kind=r8), save, public fields_mod::dphigrid_inv
complex(kind=r8), dimension(:,:,:), allocatable, target, public fields_mod::crhs
complex(kind=r8), dimension(:,:,:), allocatable, target, public fields_mod::crhs_fft
complex(kind=r8), dimension(:,:,:), allocatable, target fields_mod::crhs_buffer
complex(kind=r8), dimension(:,:,:), allocatable, target fields_mod::crhs_filtered
real(kind=r8), dimension(:,:), allocatable, save, public fields_mod::density_1d_fluxest
real(kind=r8), dimension(:,:), allocatable, save, public fields_mod::density_1d_marker
real(kind=r8), dimension(:), allocatable, save fields_mod::bnrm2
integer, save, public fields_mod::neq
integer, save, public fields_mod::neq_f
real(kind=r8), dimension(:), allocatable, save fields_mod::phib
real(kind=r8), dimension(:), allocatable, save fields_mod::phib2
real(kind=r8), dimension(:), allocatable, save, public fields_mod::zrhs0
logical, save fields_mod::lbuild =.false.
integer, save fields_mod::dim1
integer, save fields_mod::dim2
integer, save fields_mod::dim3
integer, dimension(:), allocatable fields_mod::local_n_modes
integer, dimension(:), allocatable fields_mod::local_n_start
integer, dimension(:), allocatable fields_mod::local_n_end
integer, dimension(:), allocatable fields_mod::local_n_disp
integer fields_mod::width_m
type(mpi_datatype), save fields_mod::mpi_rtype_c
type(mpi_datatype), save fields_mod::mpi_rtype_r
type(mpi_datatype), save fields_mod::mpi_stype_c
type(mpi_datatype), save fields_mod::mpi_stype_r
type(field_type), public fields_mod::phi
 Electrostatic potential.
type(field_type), public fields_mod::apar
 Electromagnetic potential.
type(field_type), public fields_mod::apar_sympl
 Symplectic electromagnetic potential.