コード例 #1
0
  def setUp(self):
    """
    Setup for test.
    """
    TestQuad4.setUp(self)
    self.mesh['nvertices'] = 81+18
    self.nverticesO = 81
    self.fault1Mesh = {'nvertices': 9,
                       'spaceDim': 3,
                       'ncells': 8,
                       'ncorners': 2}
    self.fault2Mesh = {'nvertices': 9,
                       'spaceDim': 3,
                       'ncells': 8,
                       'ncorners': 2}

    run_pylith()
    self.outputRoot = "dislocation2"
    if has_vtk():
      self.reader = VTKDataReader()
      self.soln = AnalyticalSoln()
    else:
      self.reader = None

    return
コード例 #2
0
ファイル: TestShearRotate.py プロジェクト: geodynamics/pylith
 def setUp(self):
   """
   Setup for test.
   """
   TestQuad4.setUp(self)
   run_pylith(RotateApp, GenerateDB)
   self.outputRoot = "shearrotate"
   self.soln = AnalyticalSoln()
   return
コード例 #3
0
ファイル: TestLgDeformRigidBody.py プロジェクト: jjle/pylith
 def setUp(self):
   """
   Setup for test.
   """
   TestQuad4.setUp(self)
   run_pylith()
   self.outputRoot = "lgdeformrigidbody"
   self.soln = AnalyticalSoln()
   return
コード例 #4
0
ファイル: TestShearDisp.py プロジェクト: panzhengyang/pylith
 def setUp(self):
   """
   Setup for test.
   """
   TestQuad4.setUp(self)
   run_pylith()
   self.outputRoot = "sheardisp"
   self.soln = AnalyticalSoln()
   return
コード例 #5
0
 def setUp(self):
   """
   Setup for test.
   """
   TestQuad4.setUp(self)
   run_pylith()
   self.outputRoot = "compressrotate"
   self.soln = AnalyticalSoln()
   return
コード例 #6
0
 def setUp(self):
     """
 Setup for test.
 """
     TestQuad4.setUp(self)
     run_pylith(AxialApp, GenerateDB)
     self.outputRoot = "axialdisp"
     self.soln = AnalyticalSoln()
     return
コード例 #7
0
 def setUp(self):
     """
 Setup for test.
 """
     TestQuad4.setUp(self)
     run_pylith(RotateApp, GenerateDB)
     self.outputRoot = "rigidrotate"
     self.soln = AnalyticalSoln()
     return
コード例 #8
0
ファイル: TestAxialDisp.py プロジェクト: geodynamics/pylith
 def setUp(self):
   """
   Setup for test.
   """
   TestQuad4.setUp(self)
   run_pylith(AxialApp, GenerateDB)
   self.outputRoot = "axialdisp"
   self.soln = AnalyticalSoln()
   return
コード例 #9
0
 def setUp(self):
     """
 Setup for test.
 """
     TestQuad4.setUp(self)
     run_pylith(RigidBodyApp, GenerateDB)
     self.outputRoot = "lgdeformrigidbody"
     self.soln = AnalyticalSoln()
     return
コード例 #10
0
 def setUp(self):
   """
   Setup for test.
   """
   TestQuad4.setUp(self)
   run_pylith(TractionApp)
   self.outputRoot = "lgdeformtraction"
   self.soln = AnalyticalSoln()
   return
コード例 #11
0
ファイル: TestAxialDisp.py プロジェクト: jjle/pylith
 def setUp(self):
   """
   Setup for test.
   """
   TestQuad4.setUp(self)
   run_pylith()
   self.outputRoot = "axialdisp"
   if has_vtk():
     self.reader = VTKDataReader()
     self.soln = AnalyticalSoln()
   else:
     self.reader = None
   return
コード例 #12
0
  def setUp(self):
    """
    Setup for test.
    """
    TestQuad4.setUp(self)
    self.mesh['nvertices'] = 81+9
    self.nverticesO = 81
    self.faultMesh = {'nvertices': 9,
                      'spaceDim': 2,
                      'ncells': 8,
                      'ncorners': 2}

    run_pylith(ShearStickApp)
    self.outputRoot = "friction_shear_stick"
    self.soln = AnalyticalSoln()
    return
コード例 #13
0
  def setUp(self):
    """
    Setup for test.
    """
    TestQuad4.setUp(self)
    self.mesh['nvertices'] = 81+9
    self.nverticesO = 81
    self.faultMesh = {'nvertices': 9,
                      'spaceDim': 2,
                      'ncells': 8,
                      'ncorners': 2}

    run_pylith(SWShearStickApp)
    self.outputRoot = "slipweakening_shear_stick"
    self.soln = AnalyticalSoln()
    return
コード例 #14
0
  def setUp(self):
    """
    Setup for test.
    """
    TestQuad4.setUp(self)
    self.mesh['nvertices'] = 81+9
    self.nverticesO = 81
    self.faultMesh = {'nvertices': 9,
                      'spaceDim': 2,
                      'ncells': 8,
                      'ncorners': 2}

    run_pylith()
    self.outputRoot = "slipweakening_opening"
    self.soln = AnalyticalSoln()
    return
コード例 #15
0
ファイル: TestDislocation.py プロジェクト: geodynamics/pylith
  def setUp(self):
    """
    Setup for test.
    """
    TestQuad4.setUp(self)
    self.mesh['nvertices'] = 81+9
    self.nverticesO = 81
    self.faultMesh = {'nvertices': 9,
                      'spaceDim': 2,
                      'ncells': 8,
                      'ncorners': 2}

    run_pylith(LocalApp2, nprocs=2)
    self.outputRoot = "dislocation_np2"
    self.soln = AnalyticalSoln()

    return
コード例 #16
0
    def setUp(self):
        """
    Setup for test.
    """
        TestQuad4.setUp(self)
        self.mesh['nvertices'] = 81 + 9
        self.nverticesO = 81
        self.faultMesh = {
            'nvertices': 9,
            'spaceDim': 2,
            'ncells': 8,
            'ncorners': 2
        }

        run_pylith(CompressionApp)
        self.outputRoot = "friction_compression"
        self.soln = AnalyticalSoln()
        return
コード例 #17
0
    def setUp(self):
        """
    Setup for test.
    """
        TestQuad4.setUp(self)
        self.mesh['nvertices'] = 81 + 9
        self.nverticesO = 81
        self.faultMesh = {
            'nvertices': 9,
            'spaceDim': 2,
            'ncells': 8,
            'ncorners': 2
        }

        run_pylith(LocalApp2, nprocs=2)
        self.outputRoot = "dislocation_np2"
        self.soln = AnalyticalSoln()

        return