Afivo
0.3
|
This module can be used to construct solutions consisting of one or more Gaussians. More...
Data Types | |
type | gauss_t |
A type to store a collection of gaussians in. More... | |
Functions/Subroutines | |
subroutine, public | gauss_init (gs, amplitudes, sigmas, locations) |
Initialize a structure with parameters. More... | |
real(dp) function, public | gauss_value (gs, r) |
Return the value of the sum of gaussians at r. More... | |
real(dp) function | gauss_single (gs, r, ix) |
Return the value of a single gaussian at r. More... | |
subroutine, public | gauss_gradient (gs, r, grad) |
real(dp) function, public | gauss_laplacian (gs, r) |
Summed Laplacian of the gaussians in Cartesian coordinates. More... | |
real(dp) function, public | gauss_laplacian_cyl (gs, r) |
Summed Laplacian of the gaussians in (r,z) coordinates. More... | |
real(dp) function, public | gauss_4th (gs, r) |
Fourth derivative of the gaussians in Cartesian coordinates. More... | |
Variables | |
integer, parameter | dp = kind(0.0d0) |
This module can be used to construct solutions consisting of one or more Gaussians.
subroutine, public m_gaussians::gauss_init | ( | type(gauss_t), intent(inout) | gs, |
real(dp), dimension(:), intent(in) | amplitudes, | ||
real(dp), dimension(:), intent(in) | sigmas, | ||
real(dp), dimension(:,:), intent(in) | locations | ||
) |
Initialize a structure with parameters.
[in,out] | gs | Type storing the gaussians |
[in] | amplitudes | Their amplitudes |
[in] | sigmas | Their widths |
[in] | locations | Their locations |
Definition at line 30 of file m_gaussians.f90.
real(dp) function, public m_gaussians::gauss_value | ( | type(gauss_t), intent(in) | gs, |
real(dp), dimension(gs%n_dim), intent(in) | r | ||
) |
Return the value of the sum of gaussians at r.
Definition at line 54 of file m_gaussians.f90.
|
private |
Return the value of a single gaussian at r.
Definition at line 66 of file m_gaussians.f90.
subroutine, public m_gaussians::gauss_gradient | ( | type(gauss_t), intent(in) | gs, |
real(dp), dimension(gs%n_dim), intent(in) | r, | ||
real(dp), dimension(gs%n_dim), intent(out) | grad | ||
) |
Definition at line 76 of file m_gaussians.f90.
real(dp) function, public m_gaussians::gauss_laplacian | ( | type(gauss_t), intent(in) | gs, |
real(dp), dimension(gs%n_dim), intent(in) | r | ||
) |
Summed Laplacian of the gaussians in Cartesian coordinates.
Definition at line 92 of file m_gaussians.f90.
real(dp) function, public m_gaussians::gauss_laplacian_cyl | ( | type(gauss_t), intent(in) | gs, |
real(dp), dimension(gs%n_dim), intent(in) | r | ||
) |
Summed Laplacian of the gaussians in (r,z) coordinates.
Definition at line 107 of file m_gaussians.f90.
real(dp) function, public m_gaussians::gauss_4th | ( | type(gauss_t), intent(in) | gs, |
real(dp), dimension(gs%n_dim), intent(in) | r | ||
) |
Fourth derivative of the gaussians in Cartesian coordinates.
Definition at line 123 of file m_gaussians.f90.
|
private |
Definition at line 8 of file m_gaussians.f90.