40 Pair<word>(name1, name2),
49 const phasePairKey& a,
56 (a.ordered() ==
b.ordered())
57 && (a.ordered() ? (cmp == 1) : cmp)
64 const phasePairKey& a,
76 const FixedList<word, 3> toks(is);
78 key.first() = toks[0];
79 key.second() = toks[2];
80 const word& order = toks[1];
86 else if (order ==
"and")
93 <<
"Phase pair type is not recognised. " << toks
94 <<
"Use (phaseDispersed in phaseContinuous) for an ordered pair," 95 " or (phase1 and phase2) for an unordered pair.\n" 107 os << token::BEGIN_LIST
110 << (
key.ordered() ?
"in" :
"and")
errorManipArg< error, int > exit(error &err, const int errNo=1)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
static int compare(const Pair< word > &a, const Pair< word > &b)
Compare Pairs.
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
Istream & operator>>(Istream &, directionInfo &)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
auto key(const Type &t) -> typename std::enable_if< std::is_enum< Type >::value, typename std::underlying_type< Type >::type >::type
phasePairKey()=default
Default construct.