33 template<
class StringType>
36 const StringType&
input,
40 StringType result(
input);
67 const bool isPointData
75 output = createDataFile(varName);
80 padded(timeIndex_) / varName
91 nodeVariables_.set(varName);
106 return newData<Type>(
name,
true);
autoPtr< ensightFile > newCloudData(const word &cloudName, const word &varName) const
Open stream for new cloud data file (on master), with current index.
Ensight names and component order for base types.
static StringType expand_mask(const StringType &input, const label index)
Replace the '*' mask chars with zero-padded integer value.
A traits class, which is primarily used for primitives and vector-space.
unsigned int count(const UList< bool > &bools, const bool val=true)
Count number of 'true' entries.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
const word cloudName(propsDict.get< word >("cloud"))
autoPtr< ensightFile > newData(const word &varName, const bool isPointData=false) const
Open stream for new data file (on master), with current index.
A class for handling words, derived from Foam::string.
static Istream & input(Istream &is, IntRange< T > &range)
Specification of a valid Ensight variable-name.
static word padded(const int nwidth, const label index)
Stringified zero-padded integer value of specified width.
static bool master(const label communicator=worldComm)
True if process corresponds to the master rank in the communicator.
static Ostream & output(Ostream &os, const IntRange< T > &range)
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
const word & mask() const
The output '*' mask.
autoPtr< ensightFile > newPointData(const word &varName) const
Open stream for new data file (on master), with current index and marking as containing POINT_DATA...