Package edu.sc.seis.TauP
Class ReflTrans
java.lang.Object
edu.sc.seis.TauP.ReflTrans
- Direct Known Subclasses:
ReflTransFluidFluid,ReflTransFluidSolid,ReflTransFreeSurface,ReflTransSolidFluid,ReflTransSolidSolid
Abstract class for reflection and transmission coefficients at a boundary of some kind.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected doubleprotected Complexprotected Complexprotected doubleprotected doubleprotected static final Complexjust to avoid having Complex all over the place.protected booleanprotected doubleprotected doubleprotected doubleprotected doubleprotected doubleprotected doubleprotected doubleprotected doubleprotected Complexprotected Complexprotected doubleprotected double -
Constructor Summary
ConstructorsConstructorDescriptionReflTrans(double topVp, double topVs, double topDensity, double botVp, double botVs, double botDensity) -
Method Summary
Modifier and TypeMethodDescriptiondouble[]calcInVerticalSlownessP(double flatRP) calcInVerticalSlownessS(double flatRP) protected abstract voidcalcTempVars(double rayParam, boolean inIsPWave) calcTransVerticalSlownessP(double flatRP) calcTransVerticalSlownessS(double flatRP) abstract ReflTransflip()Flips the sense of the layers, useful when you have a ray going through the same layer in the opposite direction.doublegetAngleR_p(double flatRP) doublegetAngleR_s(double flatRP) doublegetAngleT_p(double flatRP) doublegetAngleT_s(double flatRP) doubledoublegetBotVp()doublegetBotVs()abstract ComplexgetComplexRpp(double rayParam) abstract ComplexgetComplexRps(double rayParam) abstract ComplexgetComplexRshsh(double rayParam) abstract ComplexgetComplexRsp(double rayParam) abstract ComplexgetComplexRss(double rayParam) abstract ComplexgetComplexTpp(double rayParam) abstract ComplexgetComplexTps(double rayParam) abstract ComplexgetComplexTshsh(double rayParam) abstract ComplexgetComplexTsp(double rayParam) abstract ComplexgetComplexTss(double rayParam) doublegetEnergyFluxFactorRpp(double flatRP) doublegetEnergyFluxFactorRps(double flatRP) doublegetEnergyFluxFactorRshsh(double flatRP) doublegetEnergyFluxFactorRsp(double flatRP) doublegetEnergyFluxFactorRss(double flatRP) doublegetEnergyFluxFactorTpp(double flatRP) doublegetEnergyFluxFactorTps(double flatRP) doublegetEnergyFluxFactorTshsh(double flatRP) doublegetEnergyFluxFactorTsp(double flatRP) doublegetEnergyFluxFactorTss(double flatRP) doublegetEnergyFluxRpp(double flatRP) doublegetEnergyFluxRps(double flatRP) doublegetEnergyFluxRshsh(double flatRP) doublegetEnergyFluxRsp(double flatRP) doublegetEnergyFluxRss(double flatRP) doublegetEnergyFluxTpp(double flatRP) doublegetEnergyFluxTps(double flatRP) doublegetEnergyFluxTshsh(double flatRP) doublegetEnergyFluxTsp(double flatRP) doublegetEnergyFluxTss(double flatRP) static doublestatic doublegetRealCoefficient(Complex coef) Returns abs of input complex, unless it is very close to a negative real, then return negative abs.doublegetRpp(double rayParam) Calculates incident P wave to reflected P wave coefficient.doublegetRppImag(double rayParam) Calculates phase of incident P wave to reflected P wave coefficient.doublegetRppPhase(double rayParam) Calculates phase of incident P wave to reflected P wave coefficient.doublegetRppReal(double rayParam) Calculates real part of incident P wave to reflected P wave coefficient.doublegetRps(double rayParam) Calculates incident P wave to reflected SV wave coefficient.doublegetRpsImag(double rayParam) Calculates incident P wave to reflected SV wave coefficient.doublegetRpsPhase(double rayParam) Calculates incident P wave to reflected SV wave coefficient.doublegetRpsReal(double rayParam) Calculates incident P wave to reflected SV wave coefficient.doublegetRshsh(double rayParam) Calculates incident SH wave to reflected SH wave coefficient.doublegetRshshImag(double rayParam) Calculates incident SH wave to reflected SH wave phase.doublegetRshshPhase(double rayParam) Calculates incident SH wave to reflected SH wave phase.doublegetRshshReal(double rayParam) Calculates incident SH wave to reflected SH wave phase.doublegetRsp(double rayParam) Calculates incident SV wave to reflected P wave coefficient.doublegetRspImag(double rayParam) Calculates incident SV wave to reflected P wave phase.doublegetRspPhase(double rayParam) Calculates incident SV wave to reflected P wave phase.doublegetRspReal(double rayParam) Calculates incident SV wave to reflected P wave phase.doublegetRss(double rayParam) Calculates incident SV wave to reflected SV wave coefficient.doublegetRssImag(double rayParam) Calculates incident SV wave to reflected SV wave phase.doublegetRssPhase(double rayParam) Calculates incident SV wave to reflected SV wave phase.doublegetRssReal(double rayParam) Calculates incident SV wave to reflected SV wave phase.doubledoublegetTopVp()doublegetTopVs()doublegetTpp(double rayParam) Calculates incident P wave to transmitted P wave coefficient.doublegetTppImag(double rayParam) Calculates incident P wave to transmitted P wave coefficient.doublegetTppPhase(double rayParam) Calculates incident P wave to transmitted P wave coefficient.doublegetTppReal(double rayParam) Calculates incident P wave to transmitted P wave coefficient.doublegetTps(double rayParam) Calculates incident P wave to transmitted SV wave coefficient.doublegetTpsImag(double rayParam) Calculates incident P wave to transmitted SV wave coefficient.doublegetTpsPhase(double rayParam) Calculates incident P wave to transmitted SV wave coefficient.doublegetTpsReal(double rayParam) Calculates incident P wave to transmitted SV wave coefficient.doublegetTshsh(double rayParam) Calculates incident SH wave to transmitted SH wave coefficient.doublegetTshshImag(double rayParam) Calculates incident SH wave to transmitted SH wave phase.doublegetTshshPhase(double rayParam) Calculates incident SH wave to transmitted SH wave phase.doublegetTshshReal(double rayParam) Calculates incident SH wave to transmitted SH wave phase.doublegetTsp(double rayParam) Calculates incident SV wave to transmitted P wave coefficient.doublegetTspImag(double rayParam) Calculates incident SV wave to transmitted P wave phase.doublegetTspPhase(double rayParam) Calculates incident SV wave to transmitted P wave phase.doublegetTspReal(double rayParam) Calculates incident SV wave to transmitted P wave phase.doublegetTss(double rayParam) Calculates incident SV wave to transmitted SV wave coefficient.doublegetTssImag(double rayParam) Calculates incident SV wave to transmitted SV wave phase.doublegetTssPhase(double rayParam) Calculates incident SV wave to transmitted SV wave phase.doublegetTssReal(double rayParam) Calculates incident SV wave to transmitted SV wave phase.doubleinboundEnergyP(double flatRP) doubleinboundEnergyS(double flatRP)
-
Field Details
-
topVp
protected double topVp -
topVs
protected double topVs -
topDensity
protected double topDensity -
botVp
protected double botVp -
botVs
protected double botVs -
botDensity
protected double botDensity -
rp
protected double rp -
topVertSlownessP
-
topVertSlownessS
-
botVertSlownessP
-
botVertSlownessS
-
sqBotVs
protected double sqBotVs -
sqTopVs
protected double sqTopVs -
sqBotVp
protected double sqBotVp -
sqTopVp
protected double sqTopVp -
sqRP
protected double sqRP -
lastRayParam
protected double lastRayParam -
lastInIsPWave
protected boolean lastInIsPWave -
CX
just to avoid having Complex all over the place.
-
-
Constructor Details
-
ReflTrans
public ReflTrans(double topVp, double topVs, double topDensity, double botVp, double botVs, double botDensity)
-
-
Method Details
-
getComplexRpp
- Throws:
VelocityModelException
-
getComplexRps
- Throws:
VelocityModelException
-
getComplexTpp
- Throws:
VelocityModelException
-
getComplexTps
- Throws:
VelocityModelException
-
getComplexRsp
- Throws:
VelocityModelException
-
getComplexRss
- Throws:
VelocityModelException
-
getComplexTsp
- Throws:
VelocityModelException
-
getComplexTss
- Throws:
VelocityModelException
-
getComplexRshsh
- Throws:
VelocityModelException
-
getComplexTshsh
- Throws:
VelocityModelException
-
flip
Flips the sense of the layers, useful when you have a ray going through the same layer in the opposite direction.- Throws:
VelocityModelException
-
getRpp
Calculates incident P wave to reflected P wave coefficient.- Throws:
VelocityModelException
-
getRppPhase
Calculates phase of incident P wave to reflected P wave coefficient.- Throws:
VelocityModelException
-
getRppReal
Calculates real part of incident P wave to reflected P wave coefficient.- Throws:
VelocityModelException
-
getRppImag
Calculates phase of incident P wave to reflected P wave coefficient.- Throws:
VelocityModelException
-
getRps
Calculates incident P wave to reflected SV wave coefficient.- Throws:
VelocityModelException
-
getRpsPhase
Calculates incident P wave to reflected SV wave coefficient.- Throws:
VelocityModelException
-
getRpsReal
Calculates incident P wave to reflected SV wave coefficient.- Throws:
VelocityModelException
-
getRpsImag
Calculates incident P wave to reflected SV wave coefficient.- Throws:
VelocityModelException
-
getTpp
Calculates incident P wave to transmitted P wave coefficient.- Throws:
VelocityModelException
-
getTppPhase
Calculates incident P wave to transmitted P wave coefficient.- Throws:
VelocityModelException
-
getTppReal
Calculates incident P wave to transmitted P wave coefficient.- Throws:
VelocityModelException
-
getTppImag
Calculates incident P wave to transmitted P wave coefficient.- Throws:
VelocityModelException
-
getTps
Calculates incident P wave to transmitted SV wave coefficient.- Throws:
VelocityModelException
-
getTpsPhase
Calculates incident P wave to transmitted SV wave coefficient.- Throws:
VelocityModelException
-
getTpsReal
Calculates incident P wave to transmitted SV wave coefficient.- Throws:
VelocityModelException
-
getTpsImag
Calculates incident P wave to transmitted SV wave coefficient.- Throws:
VelocityModelException
-
getRsp
Calculates incident SV wave to reflected P wave coefficient.- Throws:
VelocityModelException
-
getRspPhase
Calculates incident SV wave to reflected P wave phase.- Throws:
VelocityModelException
-
getRspReal
Calculates incident SV wave to reflected P wave phase.- Throws:
VelocityModelException
-
getRspImag
Calculates incident SV wave to reflected P wave phase.- Throws:
VelocityModelException
-
getRss
Calculates incident SV wave to reflected SV wave coefficient.- Throws:
VelocityModelException
-
getRssPhase
Calculates incident SV wave to reflected SV wave phase.- Throws:
VelocityModelException
-
getRssReal
Calculates incident SV wave to reflected SV wave phase.- Throws:
VelocityModelException
-
getRssImag
Calculates incident SV wave to reflected SV wave phase.- Throws:
VelocityModelException
-
getTsp
Calculates incident SV wave to transmitted P wave coefficient.- Throws:
VelocityModelException
-
getTspPhase
Calculates incident SV wave to transmitted P wave phase.- Throws:
VelocityModelException
-
getTspReal
Calculates incident SV wave to transmitted P wave phase.- Throws:
VelocityModelException
-
getTspImag
Calculates incident SV wave to transmitted P wave phase.- Throws:
VelocityModelException
-
getTss
Calculates incident SV wave to transmitted SV wave coefficient.- Throws:
VelocityModelException
-
getTssPhase
Calculates incident SV wave to transmitted SV wave phase.- Throws:
VelocityModelException
-
getTssReal
Calculates incident SV wave to transmitted SV wave phase.- Throws:
VelocityModelException
-
getTssImag
Calculates incident SV wave to transmitted SV wave phase.- Throws:
VelocityModelException
-
getRshsh
Calculates incident SH wave to reflected SH wave coefficient.- Throws:
VelocityModelException
-
getRshshPhase
Calculates incident SH wave to reflected SH wave phase.- Throws:
VelocityModelException
-
getRshshReal
Calculates incident SH wave to reflected SH wave phase.- Throws:
VelocityModelException
-
getRshshImag
Calculates incident SH wave to reflected SH wave phase.- Throws:
VelocityModelException
-
getTshsh
Calculates incident SH wave to transmitted SH wave coefficient.- Throws:
VelocityModelException
-
getTshshPhase
Calculates incident SH wave to transmitted SH wave phase.- Throws:
VelocityModelException
-
getTshshReal
Calculates incident SH wave to transmitted SH wave phase.- Throws:
VelocityModelException
-
getTshshImag
Calculates incident SH wave to transmitted SH wave phase.- Throws:
VelocityModelException
-
getRealCoefficient
Returns abs of input complex, unless it is very close to a negative real, then return negative abs.- Parameters:
coef-- Returns:
-
getPhase
-
calcInVerticalSlownessP
-
calcInVerticalSlownessS
-
calcTransVerticalSlownessP
-
calcTransVerticalSlownessS
-
calcCriticalRayParams
public double[] calcCriticalRayParams() -
getAngleR_p
public double getAngleR_p(double flatRP) -
getAngleR_s
public double getAngleR_s(double flatRP) -
getAngleT_p
public double getAngleT_p(double flatRP) -
getAngleT_s
public double getAngleT_s(double flatRP) -
inboundEnergyP
public double inboundEnergyP(double flatRP) -
inboundEnergyS
public double inboundEnergyS(double flatRP) -
getEnergyFluxRpp
- Throws:
VelocityModelException
-
getEnergyFluxFactorRpp
- Throws:
VelocityModelException
-
getEnergyFluxTpp
- Throws:
VelocityModelException
-
getEnergyFluxFactorTpp
- Throws:
VelocityModelException
-
getEnergyFluxRps
- Throws:
VelocityModelException
-
getEnergyFluxFactorRps
- Throws:
VelocityModelException
-
getEnergyFluxTps
- Throws:
VelocityModelException
-
getEnergyFluxFactorTps
- Throws:
VelocityModelException
-
getEnergyFluxRsp
- Throws:
VelocityModelException
-
getEnergyFluxFactorRsp
- Throws:
VelocityModelException
-
getEnergyFluxTsp
- Throws:
VelocityModelException
-
getEnergyFluxFactorTsp
- Throws:
VelocityModelException
-
getEnergyFluxRss
- Throws:
VelocityModelException
-
getEnergyFluxFactorRss
- Throws:
VelocityModelException
-
getEnergyFluxTss
- Throws:
VelocityModelException
-
getEnergyFluxFactorTss
- Throws:
VelocityModelException
-
getEnergyFluxRshsh
- Throws:
VelocityModelException
-
getEnergyFluxFactorRshsh
- Throws:
VelocityModelException
-
getEnergyFluxTshsh
- Throws:
VelocityModelException
-
getEnergyFluxFactorTshsh
- Throws:
VelocityModelException
-
getTopVp
public double getTopVp() -
getTopVs
public double getTopVs() -
getTopDensity
public double getTopDensity() -
getBotVp
public double getBotVp() -
getBotVs
public double getBotVs() -
getBotDensity
public double getBotDensity() -
calcTempVars
protected abstract void calcTempVars(double rayParam, boolean inIsPWave)
-