org.opensha.sha.earthquake.rupForecastImpl
Class Point2MultVertSS_FaultSource

java.lang.Object
  extended by org.opensha.sha.earthquake.ProbEqkSource
      extended by org.opensha.sha.earthquake.rupForecastImpl.Point2MultVertSS_FaultSource
All Implemented Interfaces:
Serializable, Iterable<ProbEqkRupture>, Named, EqkSource

public class Point2MultVertSS_FaultSource
extends ProbEqkSource
implements Serializable

Title: Point2MultVertSS_FaultSource

Description: This converts a point source (single magnitude and probability) into many vertical strike-slip finite (rake=0) ruptures. This is basically a spinning source, but one where there are multiple rupture possibilities along stike as well (the hypocenter is not constrained to be at the mid point). This is a non-Poissonian source. The fault discretization is hard wired at 1 km.

The rupture length is computed from the supplied magScalingRelation. Note that if this is a magAreaRelationship, the rupture length is computed as the area divivded by the seismogenic thickness (rupLength = area/(lowerSeisDepth-upperSeisDepth). Thus, ruptures will have strange aspect ratios for: large mag and small seismogenic thickness (long line source), or small mag and typical seismogenic thickness (narrow but deep rupture). This class does not check for the resonableness of the ruptures in terms of these issues.

Version:
1.0
Author:
Edward Field
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.opensha.sha.earthquake.ProbEqkSource
isPoissonian, name
 
Constructor Summary
Point2MultVertSS_FaultSource(double lat, double lon, double magnitude, double probability, MagScalingRelationship magScalingRel, double upperSeisDepth, double lowerSeisDepth, double maxRupOffset, double deltaStrike)
          The Constructor
 
Method Summary
 LocationList getAllSourceLocs()
          It returns a list of all the locations which make up the surface for this source.
 double getMinDistance(Site site)
          This returns the shortest horizontal dist to the point source.
 String getName()
          get the name of this class
 int getNumRuptures()
          Get the number of ruptures for this source
 ProbEqkRupture getRupture(int nthRupture)
          This makes and returns the nth probEqkRupture for this source.
 AbstractEvenlyGriddedSurface getSourceSurface()
          This gives the entire surface of the source
static void main(String[] args)
           
 
Methods inherited from class org.opensha.sha.earthquake.ProbEqkSource
computeApproxTotalProbAbove, computeEquivTotalMomentRate, computeTotalEquivMeanAnnualRate, computeTotalProb, computeTotalProbAbove, computeTotalProbAbove, drawRandomEqkRuptureIndices, drawRandomEqkRuptures, drawSingleRandomEqkRuptureIndex, drawSingleRandomEqkRuptureIndex, getInfo, getRuptureClone, getRuptureList, getRupturesIterator, getSourceMetadata, getTectonicRegionType, isPoissonianSource, isSourcePoissonian, iterator, setInfo, setTectonicRegionType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Point2MultVertSS_FaultSource

public Point2MultVertSS_FaultSource(double lat,
                                    double lon,
                                    double magnitude,
                                    double probability,
                                    MagScalingRelationship magScalingRel,
                                    double upperSeisDepth,
                                    double lowerSeisDepth,
                                    double maxRupOffset,
                                    double deltaStrike)
The Constructor

Parameters:
lat - - the latitude of the point source
lon - - the longitude of the point source
magnitude - - the magnitude of the source
probability - - the probability of the source
magScalingRel - - the magScalingRelationship used to compute rupture length
upperSeisDepth - - upper seismogenic depth
lowerSeisDepth - - lower seismogenic depth
rupOffset - - the amount by which possible rupture surfacess are affset along each strike
deltaStrike - - the discretization of the strike
Method Detail

getNumRuptures

public int getNumRuptures()
Description copied from class: ProbEqkSource
Get the number of ruptures for this source

Specified by:
getNumRuptures in interface EqkSource
Specified by:
getNumRuptures in class ProbEqkSource
Returns:
the number of rutures (equals number of mags with non-zero rates)

getRupture

public ProbEqkRupture getRupture(int nthRupture)
This makes and returns the nth probEqkRupture for this source.

Specified by:
getRupture in interface EqkSource
Specified by:
getRupture in class ProbEqkSource

getAllSourceLocs

public LocationList getAllSourceLocs()
It returns a list of all the locations which make up the surface for this source.

Specified by:
getAllSourceLocs in interface EqkSource
Returns:
LocationList - List of all the locations which constitute the surface of this source

getSourceSurface

public AbstractEvenlyGriddedSurface getSourceSurface()
Description copied from interface: EqkSource
This gives the entire surface of the source

Specified by:
getSourceSurface in interface EqkSource
Returns:

getMinDistance

public double getMinDistance(Site site)
This returns the shortest horizontal dist to the point source.

Specified by:
getMinDistance in class ProbEqkSource
Parameters:
site -
Returns:
minimum distance

getName

public String getName()
get the name of this class

Specified by:
getName in interface Named
Overrides:
getName in class ProbEqkSource
Returns:

main

public static void main(String[] args)