1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130
|
Usage
vtkFLUENTReader creates an unstructured grid dataset. It
reads .cas and .dat files stored in FLUENT native format.
.SECTION Thanks Thanks to Brian W. Dotson & Terry E.
Jordan (Department of Energy, National Energy Technology
Laboratory) & Douglas McCorkle (Iowa State University)
who developed this class. Please address all comments to
Brian Dotson
(brian.nosp@m..dot.nosp@m.son@n.nosp@m.etl..nosp@m.doe.g.nosp@m.ov)
& Terry Jordan
(terry.nosp@m..jor.nosp@m.dan@s.nosp@m.a.ne.nosp@m.tl.do.nosp@m.e.go.nosp@m.v)
& Doug McCorkle
(mccdo.nosp@m.@ias.nosp@m.tate..nosp@m.edu)
To create an instance of class vtkFLUENTReader, simply
invoke its constructor as follows
obj = vtkFLUENTReader
Methods
The class vtkFLUENTReader has several methods that can be
used. They are listed below. Note that the documentation is
translated automatically from the VTK sources, and may not
be completely intelligible. When in doubt, consult the VTK
website. In the methods listed below, obj is an instance of
the vtkFLUENTReader class.
* string = obj.GetClassName ()
* int = obj.IsA (string name)
* vtkFLUENTReader = obj.NewInstance ()
* vtkFLUENTReader = obj.SafeDownCast (vtkObject o)
* obj.SetFileName (string ) - Specify the file name of the
Fluent case file to read.
* string = obj.GetFileName () - Specify the file name of the
Fluent case file to read.
* int = obj.GetNumberOfCells () - Get the total number of
cells. The number of cells is only valid after a
successful read of the data file is performed. Initial
value is 0.
* int = obj.GetNumberOfCellArrays (void ) - Get the number
of cell arrays available in the input.
* string = obj.GetCellArrayName (int index) - Get the name
of the cell array with the given index in the input.
* int = obj.GetCellArrayStatus (string name) - Get/Set
whether the cell array with the given name is to be read.
* obj.SetCellArrayStatus (string name, int status) - Get/Set
whether the cell array with the given name is to be read.
* obj.DisableAllCellArrays () - Turn on/off all cell arrays.
* obj.EnableAllCellArrays () - Turn on/off all cell arrays.
* obj.SetDataByteOrderToBigEndian () - These methods should
be used instead of the SwapBytes methods. They indicate
the byte ordering of the file you are trying to read in.
These methods will then either swap or not swap the bytes
depending on the byte ordering of the machine it is being
run on. For example, reading in a BigEndian file on a
BigEndian machine will result in no swapping. Trying to
read the same file on a LittleEndian machine will result
in swapping. As a quick note most UNIX machines are
BigEndian while PC's and VAX tend to be LittleEndian. So
if the file you are reading in was generated on a VAX or
PC, SetDataByteOrderToLittleEndian otherwise
SetDataByteOrderToBigEndian. Not used when reading text
files.
* obj.SetDataByteOrderToLittleEndian () - These methods
should be used instead of the SwapBytes methods. They
indicate the byte ordering of the file you are trying to
read in. These methods will then either swap or not swap
the bytes depending on the byte ordering of the machine it
is being run on. For example, reading in a BigEndian file
on a BigEndian machine will result in no swapping. Trying
to read the same file on a LittleEndian machine will
result in swapping. As a quick note most UNIX machines are
BigEndian while PC's and VAX tend to be LittleEndian. So
if the file you are reading in was generated on a VAX or
PC, SetDataByteOrderToLittleEndian otherwise
SetDataByteOrderToBigEndian. Not used when reading text
files.
* int = obj.GetDataByteOrder () - These methods should be
used instead of the SwapBytes methods. They indicate the
byte ordering of the file you are trying to read in. These
methods will then either swap or not swap the bytes
depending on the byte ordering of the machine it is being
run on. For example, reading in a BigEndian file on a
BigEndian machine will result in no swapping. Trying to
read the same file on a LittleEndian machine will result
in swapping. As a quick note most UNIX machines are
BigEndian while PC's and VAX tend to be LittleEndian. So
if the file you are reading in was generated on a VAX or
PC, SetDataByteOrderToLittleEndian otherwise
SetDataByteOrderToBigEndian. Not used when reading text
files.
* obj.SetDataByteOrder (int ) - These methods should be used
instead of the SwapBytes methods. They indicate the byte
ordering of the file you are trying to read in. These
methods will then either swap or not swap the bytes
depending on the byte ordering of the machine it is being
run on. For example, reading in a BigEndian file on a
BigEndian machine will result in no swapping. Trying to
read the same file on a LittleEndian machine will result
in swapping. As a quick note most UNIX machines are
BigEndian while PC's and VAX tend to be LittleEndian. So
if the file you are reading in was generated on a VAX or
PC, SetDataByteOrderToLittleEndian otherwise
SetDataByteOrderToBigEndian. Not used when reading text
files.
* string = obj.GetDataByteOrderAsString () - These methods
should be used instead of the SwapBytes methods. They
indicate the byte ordering of the file you are trying to
read in. These methods will then either swap or not swap
the bytes depending on the byte ordering of the machine it
is being run on. For example, reading in a BigEndian file
on a BigEndian machine will result in no swapping. Trying
to read the same file on a LittleEndian machine will
result in swapping. As a quick note most UNIX machines are
BigEndian while PC's and VAX tend to be LittleEndian. So
if the file you are reading in was generated on a VAX or
PC, SetDataByteOrderToLittleEndian otherwise
SetDataByteOrderToBigEndian. Not used when reading text
files.
* FreeMat_Documentation
* Visualization_Toolkit_IO_Classes
* Generated on Thu Jul 25 2013 17:18:34 for FreeMat by
doxygen_ 1.8.1.1
|