Handles the specification for grading within a section of a block. More...
Public Member Functions | |
gradingDescriptor () | |
Default constructor. More... | |
gradingDescriptor (const scalar blockFraction, const scalar nDivFraction, const scalar expansionRatio) | |
Construct from components. More... | |
gradingDescriptor (const scalar expansionRatio) | |
Construct from expansionRatio. More... | |
gradingDescriptor (Istream &) | |
Construct from Istream. More... | |
~gradingDescriptor () | |
Destructor. More... | |
scalar | blockFraction () const |
scalar | nDivFraction () const |
scalar | expansionRatio () const |
gradingDescriptor | inv () const |
Return the inverse gradingDescriptor with 1/expansionRatio. More... | |
bool | operator== (const gradingDescriptor &) const |
bool | operator!= (const gradingDescriptor &) const |
Friends | |
class | gradingDescriptors |
Istream & | operator>> (Istream &, gradingDescriptor &) |
Ostream & | operator<< (Ostream &, const gradingDescriptor &) |
Istream & | operator>> (Istream &, gradingDescriptors &) |
Handles the specification for grading within a section of a block.
blockFraction: the fraction of the block the section occupies
nDivFraction: the fraction of the divisions of the block allocated to the section
expansionRatio: the expansions ratio for the grading with the section of block defined as the ratio of the size of the division at either and of the section.
Definition at line 66 of file gradingDescriptor.H.
Default constructor.
Definition at line 32 of file gradingDescriptor.C.
Referenced by gradingDescriptor::gradingDescriptor(), and gradingDescriptor::inv().
gradingDescriptor | ( | const scalar | blockFraction, |
const scalar | nDivFraction, | ||
const scalar | expansionRatio | ||
) |
Construct from components.
Definition at line 41 of file gradingDescriptor.C.
References gradingDescriptor::gradingDescriptor().
gradingDescriptor | ( | const scalar | expansionRatio | ) |
Construct from expansionRatio.
Definition at line 54 of file gradingDescriptor.C.
gradingDescriptor | ( | Istream & | is | ) |
Construct from Istream.
Definition at line 64 of file gradingDescriptor.C.
~gradingDescriptor | ( | ) |
Destructor.
Definition at line 72 of file gradingDescriptor.C.
|
inline |
Definition at line 111 of file gradingDescriptor.H.
|
inline |
Definition at line 116 of file gradingDescriptor.H.
|
inline |
Definition at line 121 of file gradingDescriptor.H.
References gradingDescriptor::inv(), gradingDescriptor::operator!=(), gradingDescriptor::operator<<, gradingDescriptor::operator==(), and gradingDescriptor::operator>>.
Foam::gradingDescriptor inv | ( | ) | const |
Return the inverse gradingDescriptor with 1/expansionRatio.
Definition at line 78 of file gradingDescriptor.C.
References gradingDescriptor::gradingDescriptor().
Referenced by gradingDescriptor::expansionRatio().
bool operator== | ( | const gradingDescriptor & | gd | ) | const |
Definition at line 91 of file gradingDescriptor.C.
References Foam::equal().
Referenced by gradingDescriptor::expansionRatio(), and gradingDescriptor::operator!=().
bool operator!= | ( | const gradingDescriptor & | gd | ) | const |
Definition at line 100 of file gradingDescriptor.C.
References gradingDescriptor::operator==().
Referenced by gradingDescriptor::expansionRatio().
|
friend |
Definition at line 77 of file gradingDescriptor.H.
|
friend |
Referenced by gradingDescriptor::expansionRatio().
|
friend |
Referenced by gradingDescriptor::expansionRatio().
|
friend |