42 const scalar blockFraction,
43 const scalar nDivFraction,
44 const scalar expansionRatio
47 blockFraction_(blockFraction),
48 nDivFraction_(nDivFraction),
49 expansionRatio_(expansionRatio)
55 const scalar expansionRatio
60 expansionRatio_(expansionRatio)
94 equal(blockFraction_, gd.blockFraction_)
95 &&
equal(nDivFraction_, gd.nDivFraction_)
96 &&
equal(expansionRatio_, gd.expansionRatio_);
115 gd.blockFraction_ = 1.0;
116 gd.nDivFraction_ = 1.0;
117 gd.expansionRatio_ = t.
number();
121 is >> gd.blockFraction_ >> gd.nDivFraction_ >> gd.expansionRatio_;
122 is.
readEnd(
"gradingDescriptor");
126 is.
check(
"operator>>(Istream&, gradingDescriptor&)");
134 if (
equal(gd.blockFraction_, 1))
136 os << gd.expansionRatio_;
143 << gd.expansionRatio_
virtual bool check(const char *operation) const
Check IOstream status for given operation.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Istream & readEnd(const char *funcName)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Handles the specification for grading within a section of a block.
~gradingDescriptor()
Destructor.
bool operator==(const gradingDescriptor &) const
bool operator!=(const gradingDescriptor &) const
gradingDescriptor()
Default constructor.
gradingDescriptor inv() const
Return the inverse gradingDescriptor with 1/expansionRatio.
A token holds items read from Istream.
bool isPunctuation() const
punctuationToken pToken() const
bool equal(const T &s1, const T &s2)
tmp< fvMatrix< Type > > operator==(const fvMatrix< Type > &, const fvMatrix< Type > &)
Istream & operator>>(Istream &, pistonPointEdgeData &)
Ostream & operator<<(Ostream &os, const fvConstraints &constraints)