Package edu.sc.seis.TauP
Class VelocityLayer
java.lang.Object
edu.sc.seis.TauP.VelocityLayer
- All Implemented Interfaces:
Serializable,Cloneable
The VelocityModelLayer class stores and manipulates a singly layer. An entire
velocity model is implemented as an Vector of layers.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic doublestatic doublestatic double -
Constructor Summary
ConstructorsConstructorDescriptionVelocityLayer(int myLayerNumber, double topDepth, double botDepth, double topPVelocity, double botPVelocity, double topSVelocity, double botSVelocity) VelocityLayer(int myLayerNumber, double topDepth, double botDepth, double topPVelocity, double botPVelocity, double topSVelocity, double botSVelocity, double topDensity, double bottomDensity) 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 Summary
Modifier and TypeMethodDescriptiondoubleCalculate Qp from Qs assuming Q_kappa is negligible, at bottom of layer.static doublecalcQp(double q_kappa, double q_mu, double vp, double vs) Calculate Qp from Q_mu and Q_kappa .static doublecalcQpFromQs(double Qs, double vp, double vs) Calculate Qp from Qs assuming Q_kappa is negligible (ie very large).doubleCalculate Qp from Qs assuming Q_kappa is negligible, at top of layer.clone()cloneRenumber(int layerNum) booleandoubleevaluateAt(double depth, VelocityModelMaterial materialProperty) doubleevaluateAtBottom(VelocityModelMaterial materialProperty) doubleevaluateAtTop(VelocityModelMaterial materialProperty) doubledoubledoubledoublegetBotQp()doublegetBotQs()doubleintdoubledoubledoubledoubledoublegetTopQp()doublegetTopQs()doublebooleanisFluid()booleanbooleanbooleanvoidsetBotDensity(double botDensity) voidsetBotDepth(double botDepth) voidsetBotPVelocity(double botPVelocity) voidsetBotQp(double botQp) voidsetBotQs(double botQs) voidsetBotSVelocity(double botSVelocity) voidsetTopDensity(double topDensity) voidsetTopDepth(double topDepth) voidsetTopPVelocity(double topPVelocity) voidsetTopQp(double topQp) voidsetTopQs(double topQs) voidsetTopSVelocity(double topSVelocity) toString()
-
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
-
cloneRenumber
-
evaluateAtBottom
-
evaluateAtTop
-
evaluateAt
-
toString
-
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() -
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_muvp- P wave velocityvs- 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 factorq_mu- shear Q factor, aka Q_svp- P wave velocityvs- S wave velocity- Returns:
- Qp P wave Q factor
-