altar.models.seismic.cuda.cudaMoment

Module Contents

Classes

class altar.models.seismic.cuda.cudaMoment.cudaMoment(name, locator, **kwds)

Bases: altar.cuda.distributions.cudaUniform.cudaUniform

The probability distribution for displacements (D) conforming to a given Moment magnitude scale Mw = (log M0 - 9.1)/1.5 (Hiroo Kanamori) M0 = Mu A D It serves to initialize samples only, with combined gaussian and dirichlet distributions. It inherits uniform distribution for verification and density calculations.

area_patch_file
doc = input file for area of each patch, in unit of km^2
area
doc = area of each patch in unit of km^2, provide one value if the same for all patches
Mw_mean
doc =  the mean moment magnitude scale
Mw_sigma
doc =  the variance of moment magnitude scale
Mu
doc = the shear modulus for each patch in GPa, provide one value if the same for all patches
Mu_patch_file
Mu_patch_file = input file for the shear modulus of each patch, in Km^2
slip_sign
validators
doc = the sign of slips, all positive or all negative
area_patches
mu_patches
patches
rng
initialize(self, application)

Initialize with the given random number generator

cuInitialize(self, application)

cuda interface of initialization

cuInitSample(self, theta)

Fill my portion of {theta} with initial random values from my distribution.