コード例 #1
0
ファイル: TestLine2.py プロジェクト: jedbrown/pylith
  def test_elastic_statevars(self):
    """
    Check elastic state variables.
    """
    if not self.checkResults:
      return

    filename = "%s-elastic.h5" % self.outputRoot

    from pylith.tests.StateVariables import check_state_variables
    stateVars = ["total_strain", "stress"]
    check_state_variables(self, filename, self.mesh, stateVars)

    return
コード例 #2
0
    def test_elastic_statevars(self):
        """
    Check elastic state variables.
    """
        if not self.checkResults:
            return

        filename = "%s-elastic.h5" % self.outputRoot

        from pylith.tests.StateVariables import check_state_variables
        stateVars = ["total_strain", "stress", "cauchy_stress"]
        check_state_variables(self, filename, self.mesh, stateVars)

        return
コード例 #3
0
ファイル: TestHex8.py プロジェクト: xiaoxiz/pylith
    def test_elastic_statevars(self):
        """
    Check elastic state variables.
    """
        if not self.checkResults:
            return

        for material in ["elastic", "viscoelastic"]:
            ncells = self.mesh['ncells-%s' % material]
            self.mesh['ncells'] = ncells

            filename = "%s-%s.h5" % (self.outputRoot, material)

            from pylith.tests.StateVariables import check_state_variables
            stateVars = ["total_strain", "stress"]
            check_state_variables(self, filename, self.mesh, stateVars)

        return
コード例 #4
0
ファイル: TestHex8.py プロジェクト: geodynamics/pylith
  def test_elastic_statevars(self):
    """
    Check elastic state variables.
    """
    if not self.checkResults:
      return


    for material in ["elastic", "viscoelastic"]:
      ncells= self.mesh['ncells-%s' % material]
      self.mesh['ncells'] = ncells

      filename = "%s-%s.h5" % (self.outputRoot, material)

      from pylith.tests.StateVariables import check_state_variables
      stateVars = ["total_strain", "stress"]
      check_state_variables(self, filename, self.mesh, stateVars)

    return
コード例 #5
0
ファイル: TestHex8.py プロジェクト: jjle/pylith
  def test_elastic_statevars(self):
    """
    Check elastic state variables.
    """
    if self.reader is None:
      return

    from pylith.tests.StateVariables import check_state_variables
    stateVars = ["total_strain", "stress"]

    filename = "%s-elastic_t0000000.vtk" % self.outputRoot
    self.mesh['ncells'] = self.mesh['ncells_elastic']
    check_state_variables(self, filename, self.mesh, stateVars)

    filename = "%s-viscoelastic_t0000000.vtk" % self.outputRoot
    self.mesh['ncells'] = self.mesh['ncells_viscoelastic']
    check_state_variables(self, filename, self.mesh, stateVars)

    return