コード例 #1
0
def RequestData(self):
    import os
    from PVGPpy.read import getTimeStepFileIndex, readPVGPGrid
    pdo = self.GetOutput()

    # This finds the index for the FileNames for the requested timestep
    i = getTimeStepFileIndex(self, FileNames, dt=Time_Step)
    path = os.path.dirname(FileNames[i])

    readPVGPGrid(FileNames[i], pdo=pdo, path=path)
コード例 #2
0
def RequestData():
    from PVGPpy.read import madagascar, getTimeStepFileIndex

    # This finds the index for the FileNames for the requested timestep
    i = getTimeStepFileIndex(self, FileNames, dt=Time_Step)
    endi = ['@', '<', '>']
    dtype = ['f', 'd', 'i']

    # Generate Output
    pdo = self.GetOutput()
    madagascar(FileNames[i], dataNm=Data_Name, pdo=pdo, endian=endi[Endianness], dtype=dtype[DataType])
コード例 #3
0
def RequestData():
    from PVGPpy.read import sgemsGrid, getTimeStepFileIndex
    from paraview import util

    # This finds the index for the FileNames for the requested timestep
    i = getTimeStepFileIndex(self, FileNames, dt=Time_Step)

    # Generate Output
    pdo = self.GetOutput()  # vtkTable
    sgemsGrid(FileNames[i],
              deli=Delimiter_Field,
              useTab=Use_tab_delimiter,
              pdo=pdo)
コード例 #4
0
def RequestData():
    from PVGPpy.read import delimitedText, getTimeStepFileIndex

    # This finds the index for the FileNames for the requested timestep
    i = getTimeStepFileIndex(self, FileNames, dt=Time_Step)

    # Generate Output
    pdo = self.GetOutput()
    delimitedText(FileNames[i],
                  deli=Delimiter_Field,
                  useTab=Use_Tab_Delimiter,
                  hasTits=Has_Titles,
                  numIgLns=Number_Ignore_Lines,
                  pdo=pdo)
コード例 #5
0
def RequestData():
    import os
    from PVGPpy.read import gslib, getTimeStepFileIndex

    # This finds the index for the FileNames for the requested timestep
    i = getTimeStepFileIndex(self, FileNames, dt=Time_Step)

    # Generate Output
    pdo = self.GetOutput()  # vtkTable
    tbl, h = gslib(FileNames[i],
                   deli=Delimiter_Field,
                   useTab=Use_Tab_Delimiter,
                   numIgLns=Number_Ignore_Lines,
                   pdo=pdo)
コード例 #6
0
def RequestData(self):
    """Create a VTK output given the list of FileNames and the current timestep.
    This script can access self and FileNames and should return an output of type OutputDataType defined above"""
    from PVGPpy.read import getTimeStepFileIndex

    # This finds the index for the FileNames for the requested timestep
    i = getTimeStepFileIndex(self, FileNames, dt=Time_Step)

    """If you specifically do not want the ability to read time series
    Then delete the above code and access the file name by adding a string
    variable called `FileName` to the Properties dict. """
    # --------------------- #
    # Generate Output Below
    if Print_File_Names:
        print(FileNames[i])