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
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
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
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