# PhasicFlow: pFlow::PFtoVTK Namespace Reference

pFlow::PFtoVTK Namespace Reference

## Functions

template<typename IncludeMaskType >
bool | addInt64PointField (iOstream &os, word fieldName, int32 numActivePoints, int64 *field, IncludeMaskType includeMask)
template<typename IncludeMaskType >
bool | addRealPointField (iOstream &os, word fieldName, int32 numActivePoints, real *field, IncludeMaskType includeMask)
template<typename IncludeMaskType >
bool | addRealx3PointField (iOstream &os, word fieldName, int32 numActivePoints, realx3 *field, IncludeMaskType includeMask)
bool | regexCheck (word TYPENAME, word fieldType)
template<typename Type >
bool | checkFieldType (word objectType)
bool | convertIntTypesPointField (iOstream &os, const IOfileHeader &header, const pointStructure &pStruct)
bool | convertRealTypePointField (iOstream &os, const IOfileHeader &header, const pointStructure &pStruct)
bool | convertRealx3TypePointField (iOstream &os, const IOfileHeader &header, const pointStructure &pStruct)
template<typename IncludeMaskType >
bool | addUndstrcuturedGridField (iOstream &os, int32 numActivePoints, realx3 *position, IncludeMaskType includeMask)
bool | convertTimeFolderPointFields (fileSystem timeFolder, real time, fileSystem destPath, word bName)
bool | convertTimeFolderPointFieldsSelected (fileSystem timeFolder, real time, fileSystem destPath, word bName, wordVector fieldsName, bool mustExist)

## Function Documentation

## addInt64PointField()

bool addInt64PointField | ( | iOstream & | os,
|  | word | fieldName,
|  | int32 | numActivePoints,
|  | int64 * | field,
|  | IncludeMaskType | includeMask
| ) |  |

Definition at line 223 of file pointFieldToVTK.hpp.

Referenced by convertIntTypesPointField().

Here is the caller graph for this function:

## addRealPointField()

bool addRealPointField | ( | iOstream & | os,
|  | word | fieldName,
|  | int32 | numActivePoints,
|  | real * | field,
|  | IncludeMaskType | includeMask
| ) |  |

Definition at line 246 of file pointFieldToVTK.hpp.

Referenced by convertRealTypePointField().

Here is the caller graph for this function:

## addRealx3PointField()

bool addRealx3PointField | ( | iOstream & | os,
|  | word | fieldName,
|  | int32 | numActivePoints,
|  | realx3 * | field,
|  | IncludeMaskType | includeMask
| ) |  |

Definition at line 268 of file pointFieldToVTK.hpp.

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

Referenced by convertRealx3TypePointField().

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

## regexCheck()

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

Definition at line 58 of file pointFieldToVTK.hpp.

Referenced by checkFieldType().

Here is the caller graph for this function:

## checkFieldType()

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

Definition at line 70 of file pointFieldToVTK.hpp.

References regexCheck().

Here is the call graph for this function:

## convertIntTypesPointField()

bool pFlow::PFtoVTK::convertIntTypesPointField | ( | iOstream & | os,
|  | const IOfileHeader & | header,
|  | const pointStructure & | pStruct
| ) |  |

Definition at line 79 of file pointFieldToVTK.hpp.

References addInt64PointField(), defaultColor, greenColor, IOfileHeader::objectName(), IOfileHeader::objectType(), pStruct, and REPORT.

Referenced by convertTimeFolderPointFields(), and convertTimeFolderPointFieldsSelected().

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

## convertRealTypePointField()

bool pFlow::PFtoVTK::convertRealTypePointField | ( | iOstream & | os,
|  | const IOfileHeader & | header,
|  | const pointStructure & | pStruct
| ) |  |

Definition at line 119 of file pointFieldToVTK.hpp.

References addRealPointField(), defaultColor, endREPORT, greenColor, IOfileHeader::objectName(), IOfileHeader::objectType(), pStruct, and REPORT.

Referenced by convertTimeFolderPointFields(), and convertTimeFolderPointFieldsSelected().

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

## convertRealx3TypePointField()

bool pFlow::PFtoVTK::convertRealx3TypePointField | ( | iOstream & | os,
|  | const IOfileHeader & | header,
|  | const pointStructure & | pStruct
| ) |  |

Definition at line 149 of file pointFieldToVTK.hpp.

References addRealx3PointField(), defaultColor, endREPORT, greenColor, IOfileHeader::objectName(), IOfileHeader::objectType(), pStruct, and REPORT.

Referenced by convertTimeFolderPointFields(), and convertTimeFolderPointFieldsSelected().

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

## addUndstrcuturedGridField()

bool pFlow::PFtoVTK::addUndstrcuturedGridField | ( | iOstream & | os,
|  | int32 | numActivePoints,
|  | realx3 * | position,
|  | IncludeMaskType | includeMask
| ) |  |

Definition at line 181 of file pointFieldToVTK.hpp.

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

Referenced by convertTimeFolderPointFields(), and convertTimeFolderPointFieldsSelected().

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

## convertTimeFolderPointFields()

bool pFlow::PFtoVTK::convertTimeFolderPointFields | ( | fileSystem | timeFolder,
|  | real | time,
|  | fileSystem | destPath,
|  | word | bName
| ) |  |

Definition at line 291 of file pointFieldToVTK.hpp.

References addUndstrcuturedGridField(), pFlow::containingFiles(), convertIntTypesPointField(), convertRealTypePointField(), convertRealx3TypePointField(), defaultColor, endREPORT, IOfileHeader::headerOk(), VectorSingle< T, MemorySpace >::hostVectorAll(), pFlow::nl, pFlow::output, pointStructure::pointPosition(), pFlow::pointStructureFile__, pStruct, objectFile::READ_ALWAYS, REPORT, objectFile::WRITE_ALWAYS, yellowColor, and yellowText.

Referenced by main().

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

## convertTimeFolderPointFieldsSelected()

bool pFlow::PFtoVTK::convertTimeFolderPointFieldsSelected | ( | fileSystem | timeFolder,
|  | real | time,
|  | fileSystem | destPath,
|  | word | bName,
|  | wordVector | fieldsName,
|  | bool | mustExist
| ) |  |

Definition at line 360 of file pointFieldToVTK.hpp.

References addUndstrcuturedGridField(), pFlow::containingFiles(), convertIntTypesPointField(), convertRealTypePointField(), convertRealx3TypePointField(), defaultColor, pFlow::endl(), endREPORT, fatalErrorInFunction, IOfileHeader::headerOk(), VectorSingle< T, MemorySpace >::hostVectorAll(), pFlow::nl, pFlow::output, pointStructure::pointPosition(), pFlow::pointStructureFile__, pStruct, objectFile::READ_ALWAYS, REPORT, fileSystem::wordPath(), objectFile::WRITE_ALWAYS, yellowColor, and yellowText.

Referenced by main().

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