Go to the documentation of this file.
56 int main(
int argc,
char *argv[])
60 "Add patches (regions) to a surface with a user-selectable method"
94 for (
const entry& dEntry : surfacesDict)
98 const word& surfName = dEntry.keyword();
105 bool changed =
false;
108 if (surfDict.
found(
"type"))
127 if (surfDict.
found(
"regions"))
131 for (
const entry&
e : regionsDict)
149 if (modifier().modify(regionIDs, surf))
162 Info<<
"Writing repatched surface " <<
name <<
" to "
A keyword and a list of tokens is an 'entry'.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
Defines the attributes of an object for which implicit objectRegistry management is supported,...
A class for handling words, derived from Foam::string.
A class for handling file names.
bool found(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
const word dictName("faMeshDefinition")
static void addNote(const string ¬e)
Ostream & endl(Ostream &os)
T get(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
A class for handling keywords in dictionaries.
virtual bool write(const bool valid=true) const
virtual const wordList & regions() const =0
Base class of (analytical or triangulated) surface. Encapsulates all the search routines....
const dictionary & subDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
labelList findStrings(const regExp &matcher, const UList< StringType > &input, const bool invert=false)
const word & name() const noexcept
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
virtual void rename(const word &newName)
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Container for searchableSurfaces. The collection is specified as a dictionary. For example,...
const dimensionedScalar e
labelList identity(const label len, label start=0)
word name(const expressions::valueTypeCode typeCode)
static autoPtr< searchableSurfaceModifier > New(const word &type, const searchableSurfaces &, const dictionary &dict)
const word & constant() const
T getOrDefault(const word &keyword, const T &deflt, enum keyType::option matchOpt=keyType::REGEX) const
static void addOption(const word &optName, const string ¶m="", const string &usage="", bool advanced=false)
const IOdictionary & meshDict