Exemplo n.º 1
0
 def test_constructor(self):
   """
   Test constructor.
   """
   output = OutputSolnPoints()
   output.inventory.writer._configure()
   output.inventory.reader.inventory.filename = "data/points.txt"
   output.inventory.reader._configure()
   output._configure()
   return
Exemplo n.º 2
0
 def test_constructor(self):
     """
 Test constructor.
 """
     output = OutputSolnPoints()
     output.inventory.writer._configure()
     output.inventory.reader.inventory.filename = "data/points.txt"
     output.inventory.reader._configure()
     output._configure()
     return
Exemplo n.º 3
0
 def test_preinitialize(self):
   """
   Test preinitialize().
   """
   output = OutputSolnPoints()
   output.inventory.reader.inventory.filename = "data/points.txt"
   output.inventory.reader._configure()
   output._configure()
   output.preinitialize()
   
   self.failIf(output.dataProvider is None)
   return
Exemplo n.º 4
0
    def test_verifyConfiguration(self):
        """
    Test verifyConfiguration().
    """
        output = OutputSolnPoints()
        output.inventory.reader.inventory.filename = "data/points.txt"
        output.inventory.reader._configure()
        output._configure()
        output.preinitialize()

        output.vertexDataFields = ["displacement"]
        output.verifyConfiguration(self.mesh)
        return
Exemplo n.º 5
0
  def test_verifyConfiguration(self):
    """
    Test verifyConfiguration().
    """
    output = OutputSolnPoints()
    output.inventory.reader.inventory.filename = "data/points.txt"
    output.inventory.reader._configure()
    output._configure()
    output.preinitialize()

    output.vertexDataFields = ["displacement"]
    output.verifyConfiguration(self.mesh)
    return
Exemplo n.º 6
0
    def test_initialize(self):
        """
    Test initialize().
    """
        output = OutputSolnPoints()
        output.inventory.reader.inventory.filename = "data/points.txt"
        output.inventory.reader._configure()
        output.inventory.writer.inventory.filename = "test.vtk"
        output.inventory.writer._configure()
        output._configure()

        output.preinitialize()
        output.initialize(self.mesh, self.normalizer)
        return
Exemplo n.º 7
0
  def test_initialize(self):
    """
    Test initialize().
    """
    output = OutputSolnPoints()
    output.inventory.reader.inventory.filename = "data/points.txt"
    output.inventory.reader._configure()
    output.inventory.writer.inventory.filename = "test.vtk"
    output.inventory.writer._configure()
    output._configure()

    output.preinitialize()
    output.initialize(self.mesh, self.normalizer)
    return
Exemplo n.º 8
0
    def test_preinitialize(self):
        """
    Test preinitialize().
    """
        output = OutputSolnPoints()
        output.inventory.reader.inventory.filename = "data/points.txt"
        output.inventory.reader._configure()
        output._configure()
        output.preinitialize()

        self.failIf(output.dataProvider is None)
        return
Exemplo n.º 9
0
  def test_writeData(self):
    """
    Test writeData().
    """
    output = OutputSolnPoints()
    output.inventory.reader.inventory.filename = "data/points.txt"
    output.inventory.reader._configure()
    output.inventory.writer.inventory.filename = "output_sub.vtk"
    output.inventory.writer.inventory.timeFormat = "%3.1f"
    output.inventory.writer._configure()
    output.inventory.vertexDataFields = ["displacement"]
    output._configure()

    output.preinitialize()
    output.initialize(self.mesh, self.normalizer)

    output.open(totalTime=5.0, numTimeSteps=2)
    output.writeData(2.0, self.fields)
    output.close()
    return
Exemplo n.º 10
0
  def test_writeInfo(self):
    """
    Test writeInfo().
    """
    output = OutputSolnPoints()
    output.inventory.reader.inventory.filename = "data/points.txt"
    output.inventory.reader._configure()
    output.inventory.writer.inventory.filename = "output_sub.vtk"
    output.inventory.writer._configure()
    output._configure()

    output.preinitialize()
    output.initialize(self.mesh, self.normalizer)
    
    output.open(totalTime=5.0, numTimeSteps=2)
    output.writeInfo()
    output.close()
    return
Exemplo n.º 11
0
  def test_openclose(self):
    """
    Test open() and close().
    """
    output = OutputSolnPoints()
    output.inventory.reader.inventory.filename = "data/points.txt"
    output.inventory.reader._configure()
    output.inventory.writer.inventory.filename = "test.vtk"
    output.inventory.writer._configure()
    output._configure()

    output.preinitialize()
    output.initialize(self.mesh, self.normalizer)

    from pyre.units.time import s
    output.open(totalTime=5.0*s, numTimeSteps=2)
    output.close()
    return
Exemplo n.º 12
0
    def test_writeData(self):
        """
    Test writeData().
    """
        output = OutputSolnPoints()
        output.inventory.reader.inventory.filename = "data/points.txt"
        output.inventory.reader._configure()
        output.inventory.writer.inventory.filename = "output_sub.vtk"
        output.inventory.writer.inventory.timeFormat = "%3.1f"
        output.inventory.writer._configure()
        output.inventory.vertexDataFields = ["displacement"]
        output._configure()

        output.preinitialize()
        output.initialize(self.mesh, self.normalizer)

        output.open(totalTime=5.0, numTimeSteps=2)
        output.writeData(2.0, self.fields)
        output.close()
        return
Exemplo n.º 13
0
    def test_writeInfo(self):
        """
    Test writeInfo().
    """
        output = OutputSolnPoints()
        output.inventory.reader.inventory.filename = "data/points.txt"
        output.inventory.reader._configure()
        output.inventory.writer.inventory.filename = "output_sub.vtk"
        output.inventory.writer._configure()
        output._configure()

        output.preinitialize()
        output.initialize(self.mesh, self.normalizer)

        output.open(totalTime=5.0, numTimeSteps=2)
        output.writeInfo()
        output.close()
        return
Exemplo n.º 14
0
    def test_openclose(self):
        """
    Test open() and close().
    """
        output = OutputSolnPoints()
        output.inventory.reader.inventory.filename = "data/points.txt"
        output.inventory.reader._configure()
        output.inventory.writer.inventory.filename = "test.vtk"
        output.inventory.writer._configure()
        output._configure()

        output.preinitialize()
        output.initialize(self.mesh, self.normalizer)

        from pyre.units.time import s
        output.open(totalTime=5.0 * s, numTimeSteps=2)
        output.close()
        return