30Foam::fileName Foam::coordSetWriters::ensightWriter::writeUncollated
32 const bool writeTracks
42 const word& fieldName,
44 elemOutputType elemOutput
70 if (useTimeDir() && !
timeName().empty())
77 outputDir = outputPath_.
path();
80 const fileName baseDir = outputDir / varName;
82 const scalar timeValue = currTime_.value();
84 const fileName outputFile = baseDir / baseName +
".case";
88 Info<<
"Writing case file to " << outputFile <<
endl;
103 osCase.
setf(ios_base::left);
104 osCase.
setf(ios_base::scientific, ios_base::floatfield);
111 baseName +
".00000000.mesh",
117 baseName +
".00000000." + varName,
123 <<
"type: ensight gold" <<
nl
136 <<
setw(15) << varName <<
' '
137 << baseName.c_str() <<
".********." << varName <<
nl;
144 osCase <<
"# end" <<
nl;
150 writeTrackField<Type>(osField, fieldPtrs);
Generic templated field type.
ios_base::fmtflags setf(const ios_base::fmtflags f)
Set flags of stream.
Output to file stream, using an OSstream.
virtual const fileName & name() const
Read/write access to the name of the stream.
virtual int precision() const
Get precision of output field.
A list of pointers to objects of type <T>, without allocation/deallocation management of the pointers...
static void printTimeset(OSstream &os, const label ts, const scalar timeValue)
Print time-set for ensight case file with a single time.
Ensight output with specialized write() for strings, integers and floats. Correctly handles binary wr...
Specialized Ensight output with extra geometry file header.
Specification of a valid Ensight file-name.
Specification of a valid Ensight variable-name.
A class for handling file names.
static const fileName null
An empty fileName.
static std::string path(const std::string &str)
Return directory path name (part before last /)
static std::string name(const std::string &str)
Return basename (part beyond last /), including its extension.
A class for handling words, derived from Foam::string.
bool mkDir(const fileName &pathName, mode_t mode=0777)
Make a directory and return an error if it could not be created.
messageStream Info
Information stream (stdout output on master, null elsewhere)
Omanip< int > setw(const int i)
Ostream & endl(Ostream &os)
Add newline and flush stream.
bool isDir(const fileName &name, const bool followLink=true)
Does the name exist as a DIRECTORY in the file system?
constexpr char nl
The newline '\n' character (0x0a)
Ensight names and component order for base types.