Legacy VTK file format writer. More...
Go to the source code of this file.
Functions | |
template<class GeoField > | |
void | print (const char *msg, Ostream &os, const PtrList< GeoField > &flds) |
void | print (Ostream &os, const wordList &flds) |
labelList | getSelectedPatches (const polyBoundaryMesh &patches, const List< wordRe > &excludePatches) |
int | main (int argc, char *argv[]) |
Legacy VTK file format writer.
Original source file foamToVTK.C
- handles volScalar, volVector, pointScalar, pointVector, surfaceScalar fields.
-ascii | Write VTK data in ASCII format instead of binary. |
-mesh | <name> Use a different mesh name (instead of -region) |
-fields | <fields> Convert selected fields only. For example, -fields "( p T U )"The quoting is required to avoid shell expansions and to pass the information as a single argument. |
-surfaceFields | Write surfaceScalarFields (e.g., phi) |
-cellSet | <name> |
-faceSet | <name> |
-pointSet | <name> Restrict conversion to the cellSet, faceSet or pointSet. |
-nearCellValue | Output cell value on patches instead of patch value itself |
-noInternal | Do not generate file for mesh, only for patches |
-noPointValues | No pointFields |
-noFaceZones | No faceZones |
-noLinks | (in parallel) do not link processor files to master |
poly | write polyhedral cells without tet/pyramid decomposition |
-allPatches | Combine all patches into a single file |
-excludePatches | <patchNames> Specify patches (wildcards) to exclude. For example, -excludePatches '( inlet_1 inlet_2 "proc.*")'The quoting is required to avoid shell expansions and to pass the information as a single argument. The double quotes denote a regular expression. |
-useTimeName | use the time index in the VTK file name instead of the time index |
<?xml version="1.0"?> <VTKFile type="Collection" version="0.1" byte_order="LittleEndian" compressor="vtkZLibDataCompressor"> <Collection> <DataSet timestep="50" file="pitzDaily_2.vtu"/> <DataSet timestep="100" file="pitzDaily_3.vtu"/> <DataSet timestep="150" file="pitzDaily_4.vtu"/> <DataSet timestep="200" file="pitzDaily_5.vtu"/> <DataSet timestep="250" file="pitzDaily_6.vtu"/> <DataSet timestep="300" file="pitzDaily_7.vtu"/> <DataSet timestep="350" file="pitzDaily_8.vtu"/> <DataSet timestep="400" file="pitzDaily_9.vtu"/> <DataSet timestep="450" file="pitzDaily_10.vtu"/> <DataSet timestep="500" file="pitzDaily_11.vtu"/> </Collection> </VTKFile>
Definition in file foamToVTK.C.
Definition at line 164 of file foamToVTK.C.
References Foam::endl(), forAll, and PtrList::size().
Referenced by main(), dynamicIndexedOctree::print(), indexedOctree< Foam::treeDataFace >::print(), sampledPlane::update(), sampledTriSurfaceMesh::update(), and sampledPatch::update().
Definition at line 178 of file foamToVTK.C.
References Foam::endl(), and forAll.
labelList getSelectedPatches | ( | const polyBoundaryMesh & | patches, |
const List< wordRe > & | excludePatches | ||
) |
Definition at line 189 of file foamToVTK.C.
References DynamicList::append(), Foam::endl(), Foam::findStrings(), forAll, Foam::Info, patchIdentifier::name(), patches, and DynamicList::shrink().
int main | ( | int | argc, |
char * | argv[] | ||
) |
——————————————————————–
Definition at line 228 of file foamToVTK.C.
References args, vtkMesh::baseMesh(), HashTable< nil, word, string::hash >::empty(), Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::fixed(), forAll, Foam::Info, HashSet< Key, Hash >::insert(), Foam::isDir(), IOobjectList::lookup(), mesh, vtkMesh::mesh(), Foam::mkDir(), Foam::name(), IOobject::name(), Foam::compressible::New(), vtkMesh::nFieldCells(), vtkMesh::nFieldPoints(), Foam::nl, argList::optionFound(), argList::optionLookup(), argList::optionReadIfPresent(), print(), Foam::readDir(), readFields(), vtkMesh::readUpdate(), regionName, Foam::rmDir(), PtrList::size(), HashTable< nil, word, string::hash >::size(), timeDirs, WarningInFunction, writer< Type >::write(), Foam::writeFaceSet(), and Foam::writePointSet().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.