Package

edu.berkeley.ce

sparkrocks

Permalink

package sparkrocks

Visibility
  1. Public
  2. All

Type Members

  1. case class Block(center: Array[Double], faces: Seq[Face], generation: Int = 0) extends Serializable with Product

    Permalink

    A rock block.

    A rock block.

    center

    Cartesian coordinates for the center of the rock block. The individual components can be accessed as 'centerX', 'centerY', and 'centerZ'.

    faces

    The faces that define the boundaries of the rock block.

    generation

    An integer identifying the joint that caused this rock block to be cut from its parent. The generation is used to avoid unnecessary checks for geometrically redundant faces, but it can be safely left as its default value of 0.

    Annotations
    @SerialVersionUID()
  2. case class BlockVTK(block: Block) extends Serializable with Product

    Permalink

    Simple data structure to contain data that represents a rock block that can be turned into vtk format

    Simple data structure to contain data that represents a rock block that can be turned into vtk format

    Annotations
    @SerialVersionUID()
  3. class ClassRegistrator extends KryoRegistrator

    Permalink

    Kryo serializer registrator for all classes that are to be serialized.

  4. case class Face(normalVec: Array[Double], distance: Double, phi: Double, cohesion: Double) extends Serializable with Product

    Permalink

    A simple data structure to represent the face of a rock block.

    A simple data structure to represent the face of a rock block.

    normalVec

    The normal vector to the face. The individual vector components can be accessed as 'a', 'b', and 'c'. Assumed to be a unit vector.

    distance

    The distance from the face to the center of the rock block. Accessed as 'd'.

    phi

    The friction angle (phi) of the face.

    cohesion

    The cohesion of the face.

    Annotations
    @SerialVersionUID()
  5. case class InputFace(strike: Double, dip: Double, pointInPlane: Array[Double], phi: Double, cohesion: Double) extends Product with Serializable

    Permalink

    Represents bounding face of initial rock volume - allows for pattern matching to easily and clearly extract face fields

    Represents bounding face of initial rock volume - allows for pattern matching to easily and clearly extract face fields

    strike

    Strike of bounding face

    dip

    Dip of bounding face

    pointInPlane

    Point in plane that defines bounding face

    phi

    Friction angle along bounding face

    cohesion

    Cohesion along bounding face

  6. case class Joint(normalVec: Array[Double], localOrigin: Array[Double], center: Array[Double], phi: Double, cohesion: Double, shape: Vector[(Array[Double], Double)], dipAngleParam: Option[Double] = None, dipDirectionParam: Option[Double] = None, boundingSphereParam: Option[(Array[Double], Double)] = null) extends Serializable with Product

    Permalink

    A simple data structure to represent a joint.

    A simple data structure to represent a joint.

    normalVec

    The normal vector to the joint. The individual vector components can be accessed as 'a', 'b', and 'c'. Assumed to be a unit vector.

    localOrigin

    The local origin from which the distance is referenced. The individual components are accessed as 'localX', 'localY', and 'localZ'.

    center

    Cartesian coordinates for the center of the joint. The individual components can be accessed as 'centerX', 'centerY', and 'centerZ'.

    phi

    The joint's friction angle (phi).

    cohesion

    The cohesion along the joint

    shape

    A list of lines specifying the shape of the joint. Each item is a 3-tuple. The first two items specify the line, while the last gives the distance of the line from the joint's center in the local coordinate system.

    dipAngleParam

    An optional parameter that can be used to specify the dip angle for the joint. This avoids recalculation of a known dip angle.

    dipDirectionParam

    An optional parameter that can be used to specify the dip direction for the joint. This avoids recalculation of a known dip direction.

    boundingSphereParam

    An optional parameter that can be used to specify the bounding sphere for the joint, if it is known. This prevents an expensive recalculation of the bounding sphere.

    Annotations
    @SerialVersionUID()
  7. case class JointGenerator(globalOrigin: Array[Double], boundingBox: (Array[Double], Array[Double]), rockVolumeInputs: Seq[InputFace], jointSetData: Seq[JointSet]) extends Product with Serializable

    Permalink

    Provides functionality to generate joint sets for input joint parameters and faces that represent faces of input rock volume.

    Provides functionality to generate joint sets for input joint parameters and faces that represent faces of input rock volume.

    globalOrigin

    Coordinates of the global origin

    boundingBox

    Coordinates specifying the lower left and upper right corners of the box that bounds the domain of interest.

    rockVolumeInputs

    Seq of arrays describing each of the faces that define the boundaries of the rock volume of interest. The inputs in each array are strike, dip and the x, y and z coordinates of a point that lies within the plane containing the face. Strike and dip should be specified in degrees.

    jointSetData

    Seq of arrays containing the input data representing joint sets. The inputs in each array are strike, dip, joint spacing, persistence, phi, cohesion and optional stochastic parameters

  8. case class JointSet(strike: Double, dip: Double, jointSpacing: Double, persistence: Double, phi: Double, cohesion: Double, strikeStDev: Double = 0.0, dipStDev: Double = 0.0, jointSpacingStDev: Double = 0.0, persistenceStDev: Double = 0.0) extends Product with Serializable

    Permalink

    Represents input joint set - allows for pattern matching to easily and clearly extract joint set fields

    Represents input joint set - allows for pattern matching to easily and clearly extract joint set fields

    strike

    Joint set strike (mean if stochastic)

    dip

    Joint set dip (mean if stochastic)

    jointSpacing

    Joint set spacing (mean if stochastic)

    persistence

    Joint set persistence (mean if non-persistent)

    phi

    Joint set friction angle

    cohesion

    Joint set cohesion

    strikeStDev

    Strike standard deviation

    dipStDev

    Dip standard deviation

    jointSpacingStDev

    Joint spacing standard deviation

    persistenceStDev

    Persistence standard deviation

  9. class LinearProgram extends AnyRef

    Permalink

    A linear program.

    A linear program. Maximizes or minimizes the function <c,x> subject to the constraint Ax {<.=,>} b, where b, c, and x are vectors and A is a matrix.

Value Members

  1. object Block extends Serializable

    Permalink
  2. object BlockVTK extends Serializable

    Permalink
  3. object CommandReader

    Permalink

    A simple wrapper for parsing command line inputs

  4. object InputProcessor

    Permalink

    Processes inputs provided in user input file

  5. object Joint extends Serializable

    Permalink
  6. object JointGenerator extends Serializable

    Permalink
  7. object Json

    Permalink

    Defines functions to convert rock block data structures to JSON format

  8. object JsonToVtk

    Permalink

    Defines functions to convert rock block data to JSON format that can easily be converted to VTK format

  9. object LinearProgram

    Permalink
  10. object NumericUtils

    Permalink

    Numerical utilities for implementation and test cases.

  11. object RockSlicer

    Permalink
  12. object SeedJointSelector

    Permalink

    Selects joints from the input joint set that will be used to seed the RDD in order to maintain approximately balanced loads among processors.

Ungrouped