afivo-streamer 1.1
1D/2D/3D streamer simulations with AMR
Loading...
Searching...
No Matches
Functions/Subroutines
m_geometry Module Reference

Module that provides routines for geometric operations and calculations. Methods and types have a prefix GM_, short for 'geometry'. More...

Functions/Subroutines

pure subroutine, public gm_dist_vec_line (r, r0, r1, n_dim, dist_vec, frac)
 Compute distance vector between point and its projection onto a line between r0 and r1.
 
real(dp) function, public gm_dist_line (r, r0, r1, n_dim)
 
real(dp) function, public gm_density_line (r, r0, r1, n_0, n_1, n_dim, width, falloff_t)
 
real(dp) function, public gm_sigmoid (dist, width)
 
real(dp) function, public gm_gaussian (dist, width)
 
real(dp) function, public gm_smoothstep (dist, width)
 

Detailed Description

Module that provides routines for geometric operations and calculations. Methods and types have a prefix GM_, short for 'geometry'.

Function/Subroutine Documentation

◆ gm_density_line()

real(dp) function, public m_geometry::gm_density_line ( real(dp), dimension(n_dim), intent(in) r,
real(dp), dimension(n_dim), intent(in) r0,
real(dp), dimension(n_dim), intent(in) r1,
real(dp), intent(in) n_0,
real(dp), intent(in) n_1,
integer, intent(in) n_dim,
real(dp), intent(in) width,
character(len=*), intent(in) falloff_t )

Definition at line 53 of file m_geometry.f90.

Here is the call graph for this function:

◆ gm_dist_line()

real(dp) function, public m_geometry::gm_dist_line ( real(dp), dimension(n_dim), intent(in) r,
real(dp), dimension(n_dim), intent(in) r0,
real(dp), dimension(n_dim), intent(in) r1,
integer, intent(in) n_dim )

Definition at line 45 of file m_geometry.f90.

Here is the call graph for this function:

◆ gm_dist_vec_line()

pure subroutine, public m_geometry::gm_dist_vec_line ( real(dp), dimension(n_dim), intent(in) r,
real(dp), dimension(n_dim), intent(in) r0,
real(dp), dimension(n_dim), intent(in) r1,
integer, intent(in) n_dim,
real(dp), dimension(n_dim), intent(out) dist_vec,
real(dp), intent(out) frac )

Compute distance vector between point and its projection onto a line between r0 and r1.

Parameters
[out]fracFraction [0,1] along line

Definition at line 23 of file m_geometry.f90.

◆ gm_gaussian()

real(dp) function, public m_geometry::gm_gaussian ( real(dp), intent(in) dist,
real(dp), intent(in) width )

Definition at line 96 of file m_geometry.f90.

◆ gm_sigmoid()

real(dp) function, public m_geometry::gm_sigmoid ( real(dp), intent(in) dist,
real(dp), intent(in) width )

Definition at line 84 of file m_geometry.f90.

◆ gm_smoothstep()

real(dp) function, public m_geometry::gm_smoothstep ( real(dp), intent(in) dist,
real(dp), intent(in) width )

Definition at line 102 of file m_geometry.f90.