ensightCase::options Class Reference

Configuration options for the ensightCase. More...

Public Member Functions

 options (IOstreamOption::streamFormat fmt=IOstreamOption::BINARY)
 Construct with the specified format (default is binary) More...
 
 options (const word &formatKeyword, const dictionary &dict, IOstreamOption::streamFormat fmt=IOstreamOption::BINARY)
 If present, construct with the format specified in the dictionary or use default (binary) More...
 
IOstreamOption::streamFormat format () const noexcept
 The output file format (ascii/binary) More...
 
IOstreamOption::floatFormat timeFormat () const noexcept
 Time format for case file (general/fixed/scientific) More...
 
int timePrecision () const noexcept
 Time precision for case file. More...
 
const wordmask () const noexcept
 The '*' mask appropriate for sub-directories. More...
 
word padded (const label i) const
 Consistent zero-padded integer value. More...
 
int width () const noexcept
 Return current width of mask and padded. More...
 
bool overwrite () const noexcept
 Remove existing directory and sub-directories on creation. More...
 
bool separateCloud () const noexcept
 Write clouds into their own directory instead in "data" directory. More...
 
void width (const int i)
 Set width of mask and padded. More...
 
void timeFormat (IOstreamOption::floatFormat fmt) noexcept
 Set the time format for case file. More...
 
void timePrecision (int prec) noexcept
 Set the time precision for case file. More...
 
void timeFormat (const word &key, const dictionary &dict)
 Set the time format for case file. More...
 
void timePrecision (const word &key, const dictionary &dict)
 Set the time precision for case file. More...
 
void overwrite (bool on) noexcept
 Remove existing directory and sub-directories on creation. More...
 
void separateCloud (bool on) noexcept
 Write clouds into their own directory instead in "data" directory. More...
 
bool nodeValues () const noexcept
 Forced use of values per node instead of per element. More...
 
void nodeValues (bool on) noexcept
 Force use of values per node instead of per element. More...
 

Detailed Description

Configuration options for the ensightCase.

Definition at line 530 of file ensightCase.H.

Constructor & Destructor Documentation

◆ options() [1/2]

Construct with the specified format (default is binary)

Definition at line 26 of file ensightCaseOptions.C.

References ensightCase::options::width().

Here is the call graph for this function:

◆ options() [2/2]

options ( const word formatKeyword,
const dictionary dict,
IOstreamOption::streamFormat  fmt = IOstreamOption::BINARY 
)

If present, construct with the format specified in the dictionary or use default (binary)

Parameters
formatKeywordThe lookup name for the format, typically 'format' or 'writeFormat' etc.

Definition at line 49 of file ensightCaseOptions.C.

Member Function Documentation

◆ format()

IOstreamOption::streamFormat format ( ) const
inlinenoexcept

The output file format (ascii/binary)

Definition at line 613 of file ensightCase.H.

◆ timeFormat() [1/3]

IOstreamOption::floatFormat timeFormat ( ) const
inlinenoexcept

Time format for case file (general/fixed/scientific)

Definition at line 618 of file ensightCase.H.

Referenced by ensightWriter::ensightWriter(), and ensightCase::setTimeFormat().

Here is the caller graph for this function:

◆ timePrecision() [1/3]

int timePrecision ( ) const
inlinenoexcept

Time precision for case file.

Definition at line 626 of file ensightCase.H.

Referenced by ensightWriter::ensightWriter(), and ensightCase::setTimeFormat().

Here is the caller graph for this function:

◆ mask()

const word& mask ( ) const
inlinenoexcept

The '*' mask appropriate for sub-directories.

Definition at line 631 of file ensightCase.H.

◆ padded()

Foam::word padded ( const label  i) const

Consistent zero-padded integer value.

Definition at line 61 of file ensightCaseOptions.C.

◆ width() [1/2]

int width ( ) const
inlinenoexcept

Return current width of mask and padded.

Definition at line 641 of file ensightCase.H.

Referenced by ensightCase::options::options().

Here is the caller graph for this function:

◆ overwrite() [1/2]

bool overwrite ( ) const
inlinenoexcept

Remove existing directory and sub-directories on creation.

Definition at line 646 of file ensightCase.H.

◆ separateCloud() [1/2]

bool separateCloud ( ) const
inlinenoexcept

Write clouds into their own directory instead in "data" directory.

Definition at line 651 of file ensightCase.H.

◆ width() [2/2]

void width ( const int  i)

Set width of mask and padded.

Default width is 8 digits, max width is 31 digits.

Definition at line 74 of file ensightCaseOptions.C.

References n.

◆ timeFormat() [2/3]

void timeFormat ( IOstreamOption::floatFormat  fmt)
inlinenoexcept

Set the time format for case file.

Definition at line 666 of file ensightCase.H.

◆ timePrecision() [2/3]

void timePrecision ( int  prec)
inlinenoexcept

Set the time precision for case file.

Definition at line 674 of file ensightCase.H.

◆ timeFormat() [3/3]

void timeFormat ( const word key,
const dictionary dict 
)

Set the time format for case file.

Definition at line 91 of file ensightCaseOptions.C.

References dict, IOstreamOption::floatFormatEnum(), and Foam::glTF::key().

Here is the call graph for this function:

◆ timePrecision() [3/3]

void timePrecision ( const word key,
const dictionary dict 
)

Set the time precision for case file.

Definition at line 101 of file ensightCaseOptions.C.

References dict, Foam::glTF::key(), and keyType::LITERAL.

Here is the call graph for this function:

◆ overwrite() [2/2]

void overwrite ( bool  on)
inlinenoexcept

Remove existing directory and sub-directories on creation.

Definition at line 689 of file ensightCase.H.

◆ separateCloud() [2/2]

void separateCloud ( bool  on)
inlinenoexcept

Write clouds into their own directory instead in "data" directory.

Definition at line 694 of file ensightCase.H.

◆ nodeValues() [1/2]

bool nodeValues ( ) const
inlinenoexcept

Forced use of values per node instead of per element.

Definition at line 702 of file ensightCase.H.

◆ nodeValues() [2/2]

void nodeValues ( bool  on)
inlinenoexcept

Force use of values per node instead of per element.

Deprecated(2020-02) - The newData() method with a second parameter is more flexible.

Deprecated:
(2020-02) - newData() with second parameter

Definition at line 711 of file ensightCase.H.


The documentation for this class was generated from the following files: