Go to the documentation of this file.
45 const scalar blockFraction,
46 const scalar nDivFraction,
47 const scalar expansionRatio
50 blockFraction_(blockFraction),
51 nDivFraction_(nDivFraction),
52 expansionRatio_(expansionRatio)
54 if (expansionRatio_ < 0)
56 expansionRatio_ = 1.0/(-expansionRatio_);
63 const scalar expansionRatio
68 expansionRatio_(expansionRatio)
70 if (expansionRatio_ < 0)
72 expansionRatio_ = 1.0/(-expansionRatio_);
101 equal(blockFraction_, gd.blockFraction_)
102 &&
equal(nDivFraction_, gd.nDivFraction_)
103 &&
equal(expansionRatio_, gd.expansionRatio_);
122 gd.blockFraction_ = 1.0;
123 gd.nDivFraction_ = 1.0;
124 gd.expansionRatio_ = t.
number();
128 is >> gd.blockFraction_ >> gd.nDivFraction_ >> gd.expansionRatio_;
129 is.
readEnd(
"gradingDescriptor");
139 if (
equal(gd.blockFraction_, 1))
141 os << gd.expansionRatio_;
148 << gd.expansionRatio_
gradingDescriptor inv() const
Return the inverse gradingDescriptor with 1/expansionRatio.
bool isNumber() const
Token is LABEL, FLOAT or DOUBLE.
Istream & operator>>(Istream &, directionInfo &)
A token holds an item read from Istream.
bool readEnd(const char *funcName)
End read of data chunk, ends with ')'.
punctuationToken pToken() const
Return punctuation character.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
scalar number() const
Return label, float or double value.
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
bool operator!=(const gradingDescriptor &) const
virtual bool check(const char *operation) const
Check IOstream status for given operation.
gradingDescriptor()
Default constructor.
Handles the specification for grading within a section of a block.
bool operator==(const gradingDescriptor &) const
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
bool isPunctuation() const
Token is PUNCTUATION.
Begin list [isseparator].
bool equal(const T &s1, const T &s2)
Compare two values for equality.