gibuu is hosted by Hepforge, IPPP Durham
GiBUU

TABLE OF CONTENTS


/vector [ Modules ]

[ Top ] [ 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

  • If no switch is given or switch=1, then units : [degrees]
  • If switch=2, then units : [radian]


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