MakeKspaceMap Namespace Reference

This modules contains routines to set up the K space for the mode coupling problem on a rectangular grid. More...


Classes

struct  KMap

Functions

subroutine KMapAlloc (Kspace)
 Allocates the KMap array given the map dimensions etc. and fills up the KXY array in the correct convention.
subroutine KMapFree (Kspace)
 DeAllocates the KMap.
subroutine KMapCheckAlloc (Kspace)
 Checks whether a KMap is allocated.
subroutine KMapAllocAClone (Kspace, KspaceClone)
 Creates an empty clone of a KMap.
subroutine KMapSwitchConvention (Kspace)
 Switches the convention of a KMap from FFTW to LOGICAL and vice versa.
subroutine KMapSetupDict (Kpower, power)
subroutine KMapFillWithPower (Kpower, power)
 given a power spectrum populates each pix in the KMap with the interpolated value of P_k for the value of K in that pixel.
subroutine KMapMakeGaussRanFromPower (Kpower, power)
 Slow version of GRF generation algorithm.
subroutine KMapMakeGaussRanFast (Kpower, KGRF)
 Faster version of GRF generation algorithm. Made faster by passing in a KMap 'Kpower' filled with power. Since this has to done once, by call KMapFillwithPower a lot of time is saved for iterations, becasue the interpolation for finding the value of pk at k does not have to be repeated.
subroutine KMapTrim (Kspace, KspaceTrimmed, maxK)
subroutine KMapCreateKspaceMask (Kspace, verticalStripeLimit, slantStripe1, slantStripe2)
 Creates a K-space mask to apply before anular binning.
subroutine KMapWrite (Kspace, outname, overwrite)
subroutine KMapRead (Kspace, fname)
real(dp) gettime ()

Variables

integer, parameter fftw_convention = 101
 This convension is the same as returned by FFTW of IDL FFT.
integer, parameter logical_convention = 100
 This convension is the same as what one gets after shifting the 0,0 mode to the center in K space.
logical(LGT) Random_Number_Initialized


Detailed Description

This modules contains routines to set up the K space for the mode coupling problem on a rectangular grid.

Author:
Sudeep Das and Amir Hajian, Princeton University
Version:
Time-stamp: <2010-02-26 18:42:14 sudeep>

Function Documentation

real(dp) MakeKspaceMap::gettime (  ) 

subroutine MakeKspaceMap::KMapAlloc ( type(KMap)  Kspace  ) 

Allocates the KMap array given the map dimensions etc. and fills up the KXY array in the correct convention.

subroutine MakeKspaceMap::KMapAllocAClone ( type(KMap)  Kspace,
type(KMap)  KspaceClone 
)

Creates an empty clone of a KMap.

subroutine MakeKspaceMap::KMapCheckAlloc ( type(KMap)  Kspace  ) 

Checks whether a KMap is allocated.

subroutine MakeKspaceMap::KMapCreateKspaceMask ( type(kMap)  Kspace,
real(dp),intent(in),optional  verticalStripeLimit,
real(dp),intent(in),optional  slantStripe1,
real(dp),intent(in),optional  slantStripe2 
)

Creates a K-space mask to apply before anular binning.

Parameters:
verticalStripeLimit  (optional) creates a vertical stripe (-l,l)
slantStripe1  creates a slant stripe
slantStripe2  creates another slant stripe

subroutine MakeKspaceMap::KMapFillWithPower ( type (KMap)  Kpower,
type (PowSpec)  Power 
)

given a power spectrum populates each pix in the KMap with the interpolated value of P_k for the value of K in that pixel.

subroutine MakeKspaceMap::KMapFree ( type(KMap)  Kspace  ) 

DeAllocates the KMap.

subroutine MakeKspaceMap::KMapMakeGaussRanFast ( type(KMap),intent(in)  Kpower,
type(KMap)  KGRF 
)

Faster version of GRF generation algorithm. Made faster by passing in a KMap 'Kpower' filled with power. Since this has to done once, by call KMapFillwithPower a lot of time is saved for iterations, becasue the interpolation for finding the value of pk at k does not have to be repeated.

subroutine MakeKspaceMap::KMapMakeGaussRanFromPower ( type (KMap)  Kpower,
type (PowSpec)  Power 
)

Slow version of GRF generation algorithm.

subroutine MakeKspaceMap::KMapRead ( type (KMap)  kspace,
character(len=*)  fname 
)

subroutine MakeKspaceMap::KMapSetupDict ( type (KMap)  Kpower,
type (PowSpec)  Power 
)

subroutine MakeKspaceMap::KMapSwitchConvention ( type(KMap)  Kspace  ) 

Switches the convention of a KMap from FFTW to LOGICAL and vice versa.

subroutine MakeKspaceMap::KMapTrim ( type(KMap)  Kspace,
type(KMap)  KspaceTrimmed,
real(dp)  maxK 
)

subroutine MakeKspaceMap::KMapWrite ( type(KMap)  Kspace,
character (len=*)  outname,
logical(LGT),intent(in),optional  overwrite 
)


Variable Documentation

integer,parameter MakeKspaceMap::fftw_convention = 101

This convension is the same as returned by FFTW of IDL FFT.

integer,parameter MakeKspaceMap::logical_convention = 100

This convension is the same as what one gets after shifting the 0,0 mode to the center in K space.

logical(LGT) MakeKspaceMap::Random_Number_Initialized


Generated on Tue Jun 1 15:37:52 2010 for TaperMaster by  doxygen 1.5.4