MPI-AMRVAC  2.1
The MPI - Adaptive Mesh Refinement - Versatile Advection Code
Functions/Subroutines
mod_geometry Module Reference

Module with geometry-related routines (e.g., divergence, curl) More...

Functions/Subroutines

subroutine set_coordinate_system (geom)
 Set the coordinate system to be used. More...
 
subroutine set_pole
 
subroutine putgridgeo (igrid)
 Deallocate geometry-related variables. More...
 
subroutine fillgeo (igrid, ixGL)
 
subroutine gradient (q, ixIL, ixOL, idir, gradq)
 Calculate gradient of a scalar q within ixL in direction idir. More...
 
subroutine gradients (q, ixIL, ixOL, idir, gradq)
 Calculate gradient of a scalar q within ixL in direction idir first use limiter to go from cell center to edge. More...
 
subroutine divvector (qvec, ixIL, ixOL, divq, fourthorder)
 Calculate divergence of a vector qvec within ixL. More...
 
subroutine divvectors (qvec, ixIL, ixOL, divq)
 Calculate divergence of a vector qvec within ixL using limited extrapolation to cell edges. More...
 
subroutine curlvector (qvec, ixIL, ixOL, curlvec, idirmin, idirmin0, ndir0)
 Calculate curl of a vector qvec within ixL Options to employ standard second order CD evaluations use Gauss theorem for non-Cartesian grids use Stokes theorem for non-Cartesian grids. More...
 

Detailed Description

Module with geometry-related routines (e.g., divergence, curl)

Function/Subroutine Documentation

◆ curlvector()

subroutine mod_geometry::curlvector ( double precision, dimension(ixi^s,1:ndir0), intent(in)  qvec,
integer, intent(in)  ixI,
integer, intent(in)  L,
integer, intent(in)  ixO,
  L,
double precision, dimension(ixi^s,idirmin0:3), intent(inout)  curlvec,
integer, intent(inout)  idirmin,
integer, intent(in)  idirmin0,
integer, intent(in)  ndir0 
)

Calculate curl of a vector qvec within ixL Options to employ standard second order CD evaluations use Gauss theorem for non-Cartesian grids use Stokes theorem for non-Cartesian grids.

Todo:
allow for 4th order CD evaluation here as well

Definition at line 488 of file mod_geometry.t.

Here is the call graph for this function:

◆ divvector()

subroutine mod_geometry::divvector ( double precision, dimension(ixi^s,1:ndir), intent(in)  qvec,
integer, intent(in)  ixI,
integer, intent(in)  L,
integer, intent(in)  ixO,
  L,
double precision, dimension(ixi^s), intent(inout)  divq,
logical, intent(in), optional  fourthorder 
)

Calculate divergence of a vector qvec within ixL.

Parameters
[in]fourthorderDefault: false

Definition at line 362 of file mod_geometry.t.

Here is the call graph for this function:

◆ divvectors()

subroutine mod_geometry::divvectors ( double precision, dimension(ixi^s,1:ndir), intent(in)  qvec,
integer, intent(in)  ixI,
integer, intent(in)  L,
integer, intent(in)  ixO,
  L,
double precision, dimension(ixi^s), intent(inout)  divq 
)

Calculate divergence of a vector qvec within ixL using limited extrapolation to cell edges.

Definition at line 433 of file mod_geometry.t.

Here is the call graph for this function:

◆ fillgeo()

subroutine mod_geometry::fillgeo ( integer, intent(in)  igrid,
integer, intent(in)  ixG,
integer, intent(in)  L 
)

Definition at line 141 of file mod_geometry.t.

Here is the call graph for this function:

◆ gradient()

subroutine mod_geometry::gradient ( double precision, dimension(ixi^s), intent(in)  q,
integer, intent(in)  ixI,
integer, intent(in)  L,
integer, intent(in)  ixO,
  L,
integer, intent(in)  idir,
double precision, dimension(ixi^s), intent(inout)  gradq 
)

Calculate gradient of a scalar q within ixL in direction idir.

Definition at line 258 of file mod_geometry.t.

Here is the call graph for this function:

◆ gradients()

subroutine mod_geometry::gradients ( double precision, dimension(ixi^s), intent(in)  q,
integer, intent(in)  ixI,
integer, intent(in)  L,
integer, intent(in)  ixO,
  L,
integer, intent(in)  idir,
double precision, dimension(ixi^s), intent(inout)  gradq 
)

Calculate gradient of a scalar q within ixL in direction idir first use limiter to go from cell center to edge.

Definition at line 305 of file mod_geometry.t.

Here is the call graph for this function:

◆ putgridgeo()

subroutine mod_geometry::putgridgeo ( integer, intent(in)  igrid)

Deallocate geometry-related variables.

Definition at line 132 of file mod_geometry.t.

◆ set_coordinate_system()

subroutine mod_geometry::set_coordinate_system ( character(len=*), intent(in)  geom)

Set the coordinate system to be used.

Parameters
[in]geomName of the coordinate system

Definition at line 10 of file mod_geometry.t.

Here is the call graph for this function:

◆ set_pole()

subroutine mod_geometry::set_pole ( )

Definition at line 84 of file mod_geometry.t.

Here is the call graph for this function: