From 0281f092ad9ef40763f732a7d6817c38a2c3cfa8 Mon Sep 17 00:00:00 2001 From: Michael Hardman <29800382+mrhardman@users.noreply.github.com> Date: Fri, 6 Sep 2024 15:10:53 +0100 Subject: [PATCH] Improve documentation --- moment_kinetics/src/spatial_poisson.jl | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/moment_kinetics/src/spatial_poisson.jl b/moment_kinetics/src/spatial_poisson.jl index 2f2308baa..6189c539d 100644 --- a/moment_kinetics/src/spatial_poisson.jl +++ b/moment_kinetics/src/spatial_poisson.jl @@ -126,11 +126,23 @@ function init_spatial_poisson(radial::coordinate, polar::coordinate, radial_spec end """ -function to find the solution to +Function to find the solution to + nabla^2 phi = rho in cylindrical polar coordinates +nabla^2 phi = (1/r)d/dr(r dphi/dr) + (1/r^2)d^2 phi/dpolar^2 + +The arguments are + phi(r,polar) = the function solved for rho(r,polar) = the source evaluated at the nodal points poisson_arrays = precomputed arrays + radial = coordinate + polar = coordinate + polar_spectral = fourier_info + +The function uses a 1D Fourier transform to convert the 2D Poisson's +equation into M 1D ODEs, which are solved using 1D elemental weak-form matrices. +The Fourier transform reconstructs the solution. """ # for now just support npolar = 1 # by skipping the FFT