Afivo  0.3
Data Types | Functions/Subroutines
m_gaussians Module Reference

This module can be used to construct solutions consisting of one or more Gaussians. 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...
 
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...
 

Detailed Description

This module can be used to construct solutions consisting of one or more Gaussians.

Function/Subroutine Documentation

§ gauss_init()

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.

Parameters
[in,out]gsType storing the gaussians
[in]amplitudesTheir amplitudes
[in]sigmasTheir widths
[in]locationsTheir locations

Definition at line 31 of file m_gaussians.f90.

§ gauss_value()

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 55 of file m_gaussians.f90.

§ gauss_gradient()

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 77 of file m_gaussians.f90.

§ gauss_laplacian()

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 93 of file m_gaussians.f90.

§ gauss_laplacian_cyl()

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 108 of file m_gaussians.f90.

§ gauss_4th()

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 124 of file m_gaussians.f90.