# PhasicFlow: pFlow::TSFtoVTK Namespace Reference

pFlow::TSFtoVTK Namespace Reference

## Functions

bool | regexCheck (word TYPENAME, word fieldType)
template<typename Type >
bool | checkFieldType (word objectType)
template<typename Type >
bool | triDataToVTK (iOstream &os, const Type &dataEntity)
template<>
bool | triDataToVTK (iOstream &os, const triSurface &surface)
template<>
bool | triDataToVTK (iOstream &os, const multiTriSurface &surface)
bool | addRealx3TriSurfaceField (iOstream &os, word fieldName, int32 size, realx3 *field)
bool | convertRealx3TypetriSurfaceField (iOstream &os, const IOfileHeader &header, const multiTriSurface &tSurface)
bool | convertTimeFolderTriSurfaceFields (fileSystem timeFolder, real time, fileSystem destPath, word bName)

## Function Documentation

## regexCheck()

bool pFlow::TSFtoVTK::regexCheck | ( | word | TYPENAME,
|  | word | fieldType
| ) |  |

Definition at line 36 of file triSurfaceFieldToVTK.hpp.

Referenced by checkFieldType().

Here is the caller graph for this function:

## checkFieldType()

bool pFlow::TSFtoVTK::checkFieldType | ( | word | objectType | ) |

Definition at line 48 of file triSurfaceFieldToVTK.hpp.

References regexCheck().

Here is the call graph for this function:

## triDataToVTK() [1/3]

bool pFlow::TSFtoVTK::triDataToVTK | ( | iOstream & | os,
|  | const Type & | dataEntity
| ) |  |

Definition at line 58 of file triSurfaceFieldToVTK.hpp.

References fatalErrorInFunction, and fatalExit.

Referenced by convertTimeFolderTriSurfaceFields().

Here is the caller graph for this function:

## triDataToVTK() [2/3]

bool pFlow::TSFtoVTK::triDataToVTK | ( | iOstream & | os,
|  | const triSurface & | surface
| ) |  |

Definition at line 67 of file triSurfaceFieldToVTK.hpp.

References pFlow::endl(), VectorSingle< T, MemorySpace >::hostVector(), triSurface::numPoints(), triSurface::numTriangles(), triSurface::points(), and triSurface::vertices().

Here is the call graph for this function:

## triDataToVTK() [3/3]

bool pFlow::TSFtoVTK::triDataToVTK | ( | iOstream & | os,
|  | const multiTriSurface & | surface
| ) |  |

Definition at line 95 of file triSurfaceFieldToVTK.hpp.

References pFlow::endl(), VectorSingle< T, MemorySpace >::hostVector(), triSurface::numPoints(), triSurface::numTriangles(), triSurface::points(), and triSurface::vertices().

Here is the call graph for this function:

## addRealx3TriSurfaceField()

bool pFlow::TSFtoVTK::addRealx3TriSurfaceField | ( | iOstream & | os,
|  | word | fieldName,
|  | int32 | size,
|  | realx3 * | field
| ) |  |

Definition at line 132 of file triSurfaceFieldToVTK.hpp.

References triple< T >::x(), triple< T >::y(), and triple< T >::z().

Referenced by convertRealx3TypetriSurfaceField().

Here is the call graph for this function:
Here is the caller graph for this function:

## convertRealx3TypetriSurfaceField()

bool pFlow::TSFtoVTK::convertRealx3TypetriSurfaceField | ( | iOstream & | os,
|  | const IOfileHeader & | header,
|  | const multiTriSurface & | tSurface
| ) |  |

Definition at line 151 of file triSurfaceFieldToVTK.hpp.

References addRealx3TriSurfaceField(), defaultColor, endREPORT, greenColor, IOfileHeader::objectName(), IOfileHeader::objectType(), REPORT, and triSurface::size().

Referenced by convertTimeFolderTriSurfaceFields().

Here is the call graph for this function:
Here is the caller graph for this function:

## convertTimeFolderTriSurfaceFields()

bool pFlow::TSFtoVTK::convertTimeFolderTriSurfaceFields | ( | fileSystem | timeFolder,
|  | real | time,
|  | fileSystem | destPath,
|  | word | bName
| ) |  |

Definition at line 180 of file triSurfaceFieldToVTK.hpp.

References pFlow::containingFiles(), convertRealx3TypetriSurfaceField(), pFlow::endl(), endREPORT, fatalErrorInFunction, vtkFile::fileName(), IOfileHeader::headerOk(), pFlow::nl, pFlow::output, objectFile::READ_ALWAYS, REPORT, triDataToVTK(), pFlow::triSurfaceFile__, objectFile::WRITE_ALWAYS, and yellowText.

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function: