(plasma, guess=None)
return CenteredGrid(
        phi, bounds=plasma.omega.bounds, extrapolation=plasma.omega.extrapolation,
    )
Fourier Poisson Solve for Phi
Fourier Poisson Solve for Phi
Fourier Poisson Solve for Phi
def get_phi(plasma, guess=None):
    """Fourier Poisson Solve for Phi"""
    centered_omega = plasma.omega  # - math.mean(plasma.omega)
    phi = math.fourier_poisson(centered_omega.values, plasma.dx)
    # phi = math.solve_linear(
    #     math.laplace, plasma.omega.values, guess, math.LinearSolve, callback=None
    # )
    return CenteredGrid(
        phi, bounds=plasma.omega.bounds, extrapolation=plasma.omega.extrapolation,
    )
def get_phi ( plasma , guess = None ) : centered_omega = plasma . omega # - math.mean(plasma.omega) phi = math . fourier_poisson ( centered_omega . values , plasma . dx ) # phi = math.solve_linear( #     math.laplace, plasma.omega.values, guess, math.LinearSolve, callback=None # ) return CenteredGrid ( phi , bounds = plasma . omega . bounds , extrapolation = plasma . omega . extrapolation , )