Class VelocityLayer

java.lang.Object
edu.sc.seis.TauP.VelocityLayer
All Implemented Interfaces:
Serializable, Cloneable

public class VelocityLayer extends Object implements Cloneable, Serializable
The VelocityModelLayer class stores and manipulates a singly layer. An entire velocity model is implemented as an Vector of layers.
See Also:
  • Field Details

    • DEFAULT_DENSITY

      public static double DEFAULT_DENSITY
    • DEFAULT_QP

      public static double DEFAULT_QP
    • DEFAULT_QS

      public static double DEFAULT_QS
  • Constructor Details

    • VelocityLayer

      public VelocityLayer(int myLayerNumber, double topDepth, double botDepth, double topPVelocity, double botPVelocity, double topSVelocity, double botSVelocity)
    • VelocityLayer

      public VelocityLayer(int myLayerNumber, double topDepth, double botDepth, double topPVelocity, double botPVelocity, double topSVelocity, double botSVelocity, double topDensity, double bottomDensity)
    • VelocityLayer

      public VelocityLayer(int myLayerNumber, double topDepth, double botDepth, double topPVelocity, double botPVelocity, double topSVelocity, double botSVelocity, double topDensity, double botDensity, double topQp, double botQp, double topQs, double botQs)
  • Method Details

    • clone

      public Object clone()
      Overrides:
      clone in class Object
    • cloneRenumber

      public VelocityLayer cloneRenumber(int layerNum)
    • evaluateAtBottom

      public double evaluateAtBottom(VelocityModelMaterial materialProperty)
    • evaluateAtTop

      public double evaluateAtTop(VelocityModelMaterial materialProperty)
    • evaluateAt

      public double evaluateAt(double depth, VelocityModelMaterial materialProperty)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getLayerNum

      public int getLayerNum()
    • setTopDepth

      public void setTopDepth(double topDepth)
    • getTopDepth

      public double getTopDepth()
    • setBotDepth

      public void setBotDepth(double botDepth)
    • getBotDepth

      public double getBotDepth()
    • setTopPVelocity

      public void setTopPVelocity(double topPVelocity)
    • getTopPVelocity

      public double getTopPVelocity()
    • setBotPVelocity

      public void setBotPVelocity(double botPVelocity)
    • getBotPVelocity

      public double getBotPVelocity()
    • setTopSVelocity

      public void setTopSVelocity(double topSVelocity)
    • getTopSVelocity

      public double getTopSVelocity()
    • isFluid

      public boolean isFluid()
    • setBotSVelocity

      public void setBotSVelocity(double botSVelocity)
    • getBotSVelocity

      public double getBotSVelocity()
    • setTopDensity

      public void setTopDensity(double topDensity)
    • getTopDensity

      public double getTopDensity()
    • setBotDensity

      public void setBotDensity(double botDensity)
    • getBotDensity

      public double getBotDensity()
    • densityIsDefault

      public boolean densityIsDefault()
    • setTopQp

      public void setTopQp(double topQp)
    • getTopQp

      public double getTopQp()
    • setBotQp

      public void setBotQp(double botQp)
    • getBotQp

      public double getBotQp()
    • QpIsDefault

      public boolean QpIsDefault()
    • QIsDefault

      public boolean QIsDefault()
    • setTopQs

      public void setTopQs(double topQs)
    • getTopQs

      public double getTopQs()
    • setBotQs

      public void setBotQs(double botQs)
    • getBotQs

      public double getBotQs()
    • QsIsDefault

      public boolean QsIsDefault()
    • getThickness

      public double getThickness()
    • calcVolumeKm

      public double calcVolumeKm(double radiusOfEarth)
      Calculates the volume of the spherical shell for this layer.
      Parameters:
      radiusOfEarth - radius of model in km
      Returns:
      volume in km^3
    • getTopRadius

      public double getTopRadius(double radiusOfEarth)
    • getBotRadius

      public double getBotRadius(double radiusOfEarth)
    • calcMass

      public double calcMass(double radiusOfEarth)
      Calculates the mass of the spherical shell for this layer.
      Parameters:
      radiusOfEarth - radius of model in km
      Returns:
      mass in kg
    • calcMomentOfInertia

      public double calcMomentOfInertia(double radiusOfEarth)
      Calulates the moment of inertia due to this layer. Note this does not include the effect of deeper layers, and so is not the cummulative inertia.
      Parameters:
      radiusOfEarth - radius of model in km
      Returns:
      moment of inertia, Kg m2
    • calcTopQpFromQs

      public double calcTopQpFromQs()
      Calculate Qp from Qs assuming Q_kappa is negligible, at top of layer.
    • calcBotQpFromQs

      public double calcBotQpFromQs()
      Calculate Qp from Qs assuming Q_kappa is negligible, at bottom of layer.
    • calcQpFromQs

      public static double calcQpFromQs(double Qs, double vp, double vs)
      Calculate Qp from Qs assuming Q_kappa is negligible (ie very large). See Montagner and Kennett, 1996, eqn 2.6 and Foundations of Modern Global Seismomolgy, Chap 15, eq 15.12-14
      Parameters:
      Qs - S wave Q factor, aka Q_mu
      vp - P wave velocity
      vs - S wave velocity
      Returns:
      Qp P wave Q factor
    • calcQp

      public static double calcQp(double q_kappa, double q_mu, double vp, double vs)
      Calculate Qp from Q_mu and Q_kappa . and Foundations of Modern Global Seismology, Chap 15, eq 15.12-14
      Parameters:
      q_kappa - compression Q factor
      q_mu - shear Q factor, aka Q_s
      vp - P wave velocity
      vs - S wave velocity
      Returns:
      Qp P wave Q factor