Class GmmInput

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  GmmInput.Builder  
      static class  GmmInput.Constraints
      The constraints associated with each GmmInput field.
      static class  GmmInput.Field
      GmmInput field identifiers.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      double dip
      Rupture dip.
      double Mw
      Moment magnitude.
      double rake
      Rupture rake.
      double rJB
      Joyner-Boore distance (distance to surface projection of rupture).
      double rRup
      Rupture distance (distance to rupture plane).
      double rX
      Distance X (shortest distance to extended strike of rupture).
      double vs30
      Vs30 at site.
      double width
      Rupture width.
      double z1p0
      Depth to 1.0 km/s (in km).
      double z2p5
      Depth to 2.5 km/s (in km).
      double zHyp
      Depth to rupture hypocenter.
      double zSed
      Sediment thickness (in km).
      double zTor
      Depth to top of rupture.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected GmmInput​(GmmInput.Builder builder)
      Create a deterministic rupture and site property container with all properties common to the supported set of ground motion models (GMMs).
    • Field Detail

      • Mw

        public final double Mw
        Moment magnitude.
      • rJB

        public final double rJB
        Joyner-Boore distance (distance to surface projection of rupture).
      • rRup

        public final double rRup
        Rupture distance (distance to rupture plane).
      • rX

        public final double rX
        Distance X (shortest distance to extended strike of rupture).
      • dip

        public final double dip
        Rupture dip.
      • width

        public final double width
        Rupture width.
      • zTor

        public final double zTor
        Depth to top of rupture.
      • zHyp

        public final double zHyp
        Depth to rupture hypocenter.
      • rake

        public final double rake
        Rupture rake.
      • vs30

        public final double vs30
        Vs30 at site.
      • z1p0

        public final double z1p0
        Depth to 1.0 km/s (in km).
      • z2p5

        public final double z2p5
        Depth to 2.5 km/s (in km).
      • zSed

        public final double zSed
        Sediment thickness (in km).
    • Constructor Detail

      • GmmInput

        protected GmmInput​(GmmInput.Builder builder)
        Create a deterministic rupture and site property container with all properties common to the supported set of ground motion models (GMMs).

        It is generally preferred to use a GmmInput.Builder to assemble the components of a GmmInput.

        Params in builder:

        • Mw moment magnitude of rupture
        • rJB Joyner-Boore distance to rupture (in km)
        • rRup 3D distance to rupture plane (in km)
        • rX distance X (in km)
        • dip of rupture (in degrees)
        • width down-dip rupture width (in km)
        • zTor depth to the top of the rupture (in km)
        • zHyp hypocentral depth (in km)
        • rake of rupture
        • vs30 average shear wave velocity in top 30 m (in m/sec)
        • z1p0 depth to Vs=1.0 km/sec (in km)
        • z2p5 depth to Vs=2.5 km/sec (in km)
        • zSed sediment thickness (in km)
        Parameters:
        builder - The GmmInput builder
    • Method Detail

      • builder

        public static GmmInput.Builder builder()
        Return a GmmInput builder that requires all fields to be explicitely set. This builder is stateful and may be reused (by a single thread) preserving previously set fields. However, repeat calls of builder methods are not permitted until build() has been called.
        See Also:
        GmmInput.Builder
      • toString

        public String toString()
        Some values [mag, rJB, rRup, rX, zHyp] may be truncated to 2 or 3 decimal places for output.
        Overrides:
        toString in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object