45 const scalar blockFraction,
46 const scalar nDivFraction,
47 const scalar expansionRatio
50 blockFraction_(blockFraction),
51 nDivFraction_(nDivFraction),
52 expansionRatio_(expansionRatio)
60 const scalar expansionRatio
65 expansionRatio_(expansionRatio)
81 if (expansionRatio_ < 0)
83 expansionRatio_ = 1.0/(-expansionRatio_);
90 return gradingDescriptor
104 equal(blockFraction_, gd.blockFraction_)
105 &&
equal(nDivFraction_, gd.nDivFraction_)
106 &&
equal(expansionRatio_, gd.expansionRatio_);
125 gd.blockFraction_ = 1.0;
126 gd.nDivFraction_ = 1.0;
127 gd.expansionRatio_ = t.number();
131 is >> gd.blockFraction_ >> gd.nDivFraction_ >> gd.expansionRatio_;
132 is.readEnd(
"gradingDescriptor");
144 if (
equal(gd.blockFraction_, 1))
146 os << gd.expansionRatio_;
153 << gd.expansionRatio_
void correct()
Adjust expansion ratio.
bool equal(const T &a, const T &b)
Compare two values for equality.
bool operator==(const gradingDescriptor &) const
gradingDescriptor inv() const
Return the inverse gradingDescriptor with 1/expansionRatio.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
Begin list [isseparator].
gradingDescriptor()
Default construct (1, 1, 1)
Istream & operator>>(Istream &, directionInfo &)
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...
Info<< "Predicted p max-min : "<< max(p).value()<< " "<< min(p).value()<< endl;rho==max(psi *p+alphal *rhol0+((alphav *psiv+alphal *psil) - psi) *pSat, rhoMin);# 1 "/home/chef2/andy/OpenFOAM/release/v2306/OpenFOAM-v2306/applications/solvers/multiphase/cavitatingFoam/alphavPsi.H" 1{ alphav=clamp((rho - rholSat)/(rhovSat - rholSat), zero_one{});alphal=1.0 - alphav;Info<< "max-min alphav: "<< max(alphav).value()<< " "<< min(alphav).value()<< endl;psiModel-> correct()
OBJstream os(runTime.globalPath()/outputName)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)