57 int main(
int argc,
char *argv[])
61 "Remove faces specified in faceSet by combining cells on both sides" 75 const bool overwrite =
args.
found(
"overwrite");
80 Pout<<
"Read " << candidateSet.size() <<
" faces to remove" <<
nl 94 faceRemover.compatibleRemoves
103 faceSet compatibleRemoves(
mesh,
"compatibleRemoves", facesToRemove);
105 Pout<<
"Original faces to be removed:" << candidateSet.size() <<
nl 106 <<
"New faces to be removed:" << compatibleRemoves.size() <<
nl 109 Pout<<
"Writing new faces to be removed to faceSet " 110 << compatibleRemoves.instance()
111 /compatibleRemoves.local()
112 /compatibleRemoves.
name()
115 compatibleRemoves.
write();
159 faceRemover.setRefinement
172 if (map().hasMotionPoints())
178 faceRemover.updateMesh(map());
static void noFunctionObjects(bool addWithOption=false)
Remove '-noFunctionObjects' option and ignore any occurrences.
static void addNote(const string ¬e)
Add extra notes for the usage information.
static void removeFiles(const polyMesh &mesh)
Helper: remove all procAddressing files from mesh instance.
Given list of faces to remove insert all the topology changes. Contains helper function to get consis...
wordList ReadFields(const typename GeoMesh::Mesh &mesh, const IOobjectList &objects, PtrList< GeometricField< Type, PatchField, GeoMesh >> &fields, const bool syncPar=true, const bool readOldTime=false)
Read Geometric fields of templated type.
List of IOobjects with searching and retrieving facilities. Implemented as a HashTable, so the various sorted methods should be used if traversing in parallel.
constexpr char nl
The newline '\n' character (0x0a)
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual void movePoints(const pointField &)
Move points, returns volumes swept by faces in motion.
Field reading functions for post-processing utilities.
virtual const fileName & name() const override
Get the name of the output serial stream. (eg, the name of the Fstream file name) ...
static void removeFiles(const polyMesh &)
Helper: remove all sets files from mesh instance.
const fileName & pointsInstance() const
Return the current instance directory for points.
virtual void updateMesh(const mapPolyMesh &mpm)
Update mesh corresponding to the given map.
A class for handling words, derived from Foam::string.
virtual bool write(const token &tok)=0
Write token to stream or otherwise handle it.
virtual bool write(const bool writeOnProc=true) const
Write mesh using IO settings from time.
static word timeName(const scalar t, const int precision=precision_)
Return a time name for the given scalar time value formatted with the given precision.
void setInstance(const fileName &instance, const IOobjectOption::writeOption wOpt=IOobject::AUTO_WRITE)
Set the instance for mesh files.
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers...
Direct mesh changes based on v1.3 polyTopoChange syntax.
static void addArgument(const string &argName, const string &usage="")
Append a (mandatory) argument to validArgs.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
Foam::argList args(argc, argv)
prefixOSstream Pout
OSstream wrapped stdout (std::cout) with parallel prefix.
bool found(const word &optName) const
Return true if the named option is found.