Supports writing of ensight cases as well as providing common factory methods to open new files. More...
Classes | |
class | options |
Public Member Functions | |
ensightCase (const fileName &ensightDir, const word &caseName, const options &opts) | |
ensightCase (const fileName &ensightDir, const word &caseName, const IOstream::streamFormat format=IOstream::BINARY) | |
~ensightCase ()=default | |
const ensightCase::options & | option () const |
IOstream::streamFormat | format () const |
const fileName & | path () const |
const word & | mask () const |
word | padded (const label i) const |
bool | nodeValues () const |
bool | separateCloud () const |
void | nextTime (const scalar t) |
void | nextTime (const instant &t) |
void | setTime (const scalar t, const label index) |
void | setTime (const instant &t, const label index) |
autoPtr< ensightGeoFile > | newGeometry (bool moving=false) const |
autoPtr< ensightFile > | newCloud (const word &cloudName) const |
template<class Type > | |
autoPtr< ensightFile > | newData (const word &varName, const bool isPointData=false) const |
template<class Type > | |
autoPtr< ensightFile > | newPointData (const word &varName) const |
template<class Type > | |
autoPtr< ensightFile > | newCloudData (const word &cloudName, const word &varName) const |
void | rewind () const |
void | write () const |
Ostream & | operator() () const |
Ostream & | printInfo (Ostream &os) const |
template<class Type > | |
Foam::autoPtr< Foam::ensightFile > | newData (const word &name, const bool isPointData) const |
template<class Type > | |
Foam::autoPtr< Foam::ensightFile > | newPointData (const word &name) const |
template<class Type > | |
Foam::autoPtr< Foam::ensightFile > | newCloudData (const word &cloudName, const word &name) const |
Static Public Attributes | |
static const char * | dataDirName = "data" |
static const char * | geometryName = "geometry" |
Supports writing of ensight cases as well as providing common factory methods to open new files.
Definition at line 63 of file ensightCase.H.
ensightCase | ( | const fileName & | ensightDir, |
const word & | caseName, | ||
const options & | opts | ||
) |
Definition at line 373 of file ensightCase.C.
ensightCase | ( | const fileName & | ensightDir, |
const word & | caseName, | ||
const IOstream::streamFormat | format = IOstream::BINARY |
||
) |
Definition at line 398 of file ensightCase.C.
|
default |
|
inline |
Definition at line 23 of file ensightCaseI.H.
|
inline |
Definition at line 29 of file ensightCaseI.H.
|
inline |
Definition at line 35 of file ensightCaseI.H.
|
inline |
Definition at line 41 of file ensightCaseI.H.
|
inline |
Definition at line 47 of file ensightCaseI.H.
|
inline |
Definition at line 53 of file ensightCaseI.H.
Referenced by Foam::writeVolField().
|
inline |
Definition at line 59 of file ensightCaseI.H.
void nextTime | ( | const scalar | t | ) |
Definition at line 424 of file ensightCase.C.
References setTime().
void nextTime | ( | const instant & | t | ) |
Definition at line 431 of file ensightCase.C.
References Instant< T >::value().
void setTime | ( | const scalar | t, |
const label | index | ||
) |
Definition at line 437 of file ensightCase.C.
References UPstream::master(), Foam::mkDir(), fileName::name(), and Foam::nl.
void setTime | ( | const instant & | t, |
const label | index | ||
) |
Definition at line 462 of file ensightCase.C.
References setTime(), and Instant< T >::value().
Foam::autoPtr< Foam::ensightGeoFile > newGeometry | ( | bool | moving = false | ) | const |
Definition at line 662 of file ensightCase.C.
References format(), UPstream::master(), Foam::mkDir(), autoPtr::New(), Foam::output(), and path().
Foam::autoPtr< Foam::ensightFile > newCloud | ( | const word & | cloudName | ) | const |
Definition at line 696 of file ensightCase.C.
References cloudName(), UPstream::master(), Foam::output(), cloud::prefix, and Ostream::write().
autoPtr<ensightFile> newData | ( | const word & | varName, |
const bool | isPointData = false |
||
) | const |
Referenced by Foam::writeAreaField(), Foam::writePointField(), and Foam::writeVolField().
autoPtr<ensightFile> newPointData | ( | const word & | varName | ) | const |
autoPtr<ensightFile> newCloudData | ( | const word & | cloudName, |
const word & | varName | ||
) | const |
void rewind | ( | ) | const |
Definition at line 720 of file ensightCase.C.
void write | ( | ) | const |
Definition at line 468 of file ensightCase.C.
References cloudName(), Foam::flush(), Foam::max(), Foam::name(), Foam::nl, cloud::prefix, word::printf(), Foam::setw(), HashTable::sortedToc(), and Foam::writeHeader().
|
inline |
Definition at line 67 of file ensightCaseI.H.
Foam::Ostream & printInfo | ( | Ostream & | os | ) | const |
Definition at line 729 of file ensightCase.C.
References format(), Foam::nl, and os().
Foam::autoPtr<Foam::ensightFile> newData | ( | const word & | name, |
const bool | isPointData | ||
) | const |
Definition at line 29 of file ensightCaseTemplates.C.
References Foam::name(), Foam::output(), and Ostream::write().
Foam::autoPtr<Foam::ensightFile> newPointData | ( | const word & | name | ) | const |
Definition at line 70 of file ensightCaseTemplates.C.
References Foam::name().
Foam::autoPtr<Foam::ensightFile> newCloudData | ( | const word & | cloudName, |
const word & | name | ||
) | const |
Definition at line 81 of file ensightCaseTemplates.C.
References cloudName(), Foam::name(), Foam::output(), and Ostream::write().
|
static |
Definition at line 68 of file ensightCase.H.
|
static |
Definition at line 76 of file ensightCase.H.
Referenced by ensightWriter::writeCollated().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.