TABLE OF CONTENTS
- 1. /vector
- 1.1. vector/sphericalVector
- 1.2. vector/sphericalVector_radian
- 1.3. vector/theta_in
- 1.4. vector/absVec
- 1.5. vector/crossProduct
/vector [ Modules ]
NAME
module vector
PURPOSE
This module defines functions for vector handling
vector/sphericalVector [ Functions ]
[ Top ] [ vector ] [ Functions ]
NAME
function sphericalVector(theta,phi,rabs) result(r)
PURPOSE
Returns cartesian vector with spherical coordinates (theta,phi,rAbs)
INPUTS
OUTPUT
- real, dimension(1:3) :: r
vector/sphericalVector_radian [ Functions ]
[ Top ] [ vector ] [ Functions ]
NAME
function sphericalVector_radian(theta,phi,rabs) result(r)
PURPOSE
Returns cartesian vector with spherical coordinates (theta,phi,rAbs)
INPUTS
OUTPUT
- real, dimension(1:3) :: r
vector/theta_in [ Functions ]
[ Top ] [ vector ] [ Functions ]
NAME
real function theta_in(a,b,switch)
PURPOSE
Calculates angle in between vector a and b.
INPUTS
- real ,dimension (1:3),intent(in) :: a,b
- integer,intent(in), optional :: switch
OUTPUT
- real :: theta_in
NOTES
vector/absVec [ Functions ]
[ Top ] [ vector ] [ Functions ]
NAME
real function absVec(a)
PURPOSE
Calculates the absolute value of a vector a.
INPUTS
- real ,dimension (:),intent(in) :: a
vector/crossProduct [ Functions ]
[ Top ] [ vector ] [ Functions ]
NAME
function crossProduct(a,b)
PURPOSE
Calculates cross product of two 3-vectors: c= a x b = sum_{j,k} \epsilon_{ijk} a_j b_k
INPUTS
real ,dimension (1:3),intent(in) :: a,b
OUTPUT
real ,dimension (1:3) :: crossProduct