Go to the documentation of this file.
30 #ifndef ccmInterfaceDefinitions_H
31 #define ccmInterfaceDefinitions_H
44 class interfaceDefinitions;
46 Ostream&
operator<<(Ostream& os,
const interfaceEntry& entry);
47 Ostream&
operator<<(Ostream& os,
const interfaceDefinitions& defs);
93 const label boundary0,
106 static bool isInPlace(
const std::string& configurationType)
108 return configurationType ==
"IN_PLACE";
115 return bndId ==
bnd0 || bndId ==
bnd1;
144 else if (bndId ==
bnd1)
163 os <<
"(" <<
entry.bnd0 <<
" " <<
entry.bnd1 <<
")";
177 public Map<interfaceEntry>
207 return map().empty();
229 if (iter.val().inInterface(bndId))
245 ifname = iter.val().canonicalName(bndId);
264 os << defs.map() <<
nl;
A keyword and a list of tokens is an 'entry'.
A class for handling words, derived from Foam::string.
interfaceDefinitions()
Null construct.
label id
The internal interface id.
bool isInterface(label bndId)
Scan available interface entries for one matching this boundary id.
word canonicalName0() const
Canonical name for boundary 0.
interfaceEntry()
Construct null.
A HashTable to objects of type <T> with a label key.
Ostream & operator<<(Ostream &os, const interfaceEntry &entry)
label bnd0
The first boundary.
bool valid() const
True if all internal ids are non-negative.
word canonicalName(label bndId) const
Canonical name for boundary.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A STARCCM interface definition is a pair of boundary ids.
word interfaceName(label bndId)
Scan interface entries for one matching this boundary id.
word name(const complex &c)
Return string representation of complex.
interfaceEntry(const label index)
Construct empty interface definition.
word canonicalName1() const
Canonical name for boundary 1.
forAllConstIters(mixture.phases(), phase)
bool add(const interfaceEntry &entry)
Add (valid) interface entry.
static const word null
An empty word.
static bool isInPlace(const std::string &configurationType)
Check for in-place interfaces.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of available interface definitions.
label bnd1
The second boundary.
bool inInterface(label bndId) const
True if the boundary id is in this interface.