예제 #1
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
예제 #2
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
예제 #3
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
예제 #4
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
예제 #5
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
예제 #6
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