(git:71c3ab0)
Loading...
Searching...
No Matches
pw_poisson_methods Module Reference

Data Types

interface  pw_poisson_rebuild
 
interface  pw_poisson_solve
 

Functions/Subroutines

subroutine, public pw_poisson_set (poisson_env, cell_hmat, parameters, pw_pools, use_level, mt_super_ref_pw_grid, dct_pw_grid, force_rebuild)
 sets cell, grids and parameters used by the poisson solver You should call this at least once (and set everything) before using the poisson solver. Smart, doesn't set the thing twice to the same value Keeps track of the need to rebuild the poisson_env
 
subroutine, public pw_func_u_convolution (poisson_env, func, convolution, u)
 computes the convolution f * u using reciprocal-space multiplication
 

Detailed Description

History
09.2005 created [fawzi]
Author
fawzi

Function/Subroutine Documentation

◆ pw_poisson_set()

subroutine, public pw_poisson_methods::pw_poisson_set ( type(pw_poisson_type), intent(inout)  poisson_env,
real(kind=dp), dimension(3, 3), intent(in), optional  cell_hmat,
type(pw_poisson_parameter_type), intent(in), optional  parameters,
type(pw_pool_p_type), dimension(:), optional, pointer  pw_pools,
integer, intent(in), optional  use_level,
type(pw_grid_type), optional, pointer  mt_super_ref_pw_grid,
type(pw_grid_type), optional, pointer  dct_pw_grid,
logical, intent(in), optional  force_rebuild 
)

sets cell, grids and parameters used by the poisson solver You should call this at least once (and set everything) before using the poisson solver. Smart, doesn't set the thing twice to the same value Keeps track of the need to rebuild the poisson_env

Parameters
poisson_env...
cell_hmat...
parameters...
pw_pools...
use_level...
mt_super_ref_pw_grid...
dct_pw_grid...
force_rebuild...
Author
fawzi
Note
Checks everything at the end. This means that after each call to this method the poisson env must be fully ready, so the first time you have to set everything at once. Change this behaviour?

Definition at line 4003 of file pw_poisson_methods.F.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ pw_func_u_convolution()

subroutine, public pw_poisson_methods::pw_func_u_convolution ( type(pw_poisson_type), pointer  poisson_env,
type(pw_r3d_rs_type), intent(in)  func,
type(pw_r3d_rs_type), intent(inout), optional  convolution,
type(pw_r3d_rs_type), intent(in)  u 
)

computes the convolution f * u using reciprocal-space multiplication

Given two real-space functions f and u, this routine evaluates their convolution by transforming both to G space, multiplying their Fourier components, and transforming the product back to real space.
Parameters
poisson_envpoisson environment
funcinput function f in real space
convolutionconvolution result (f * u) in real space
uinput function/kernel u in real space
Author
Ziwei Chai
Date
12.03.2026

Definition at line 4096 of file pw_poisson_methods.F.