57int main(
int argc,
char *argv[])
61 "Remove faces specified in faceSet by combining cells on both sides"
64 argList::addArgument(
"faceSet");
66 argList::noFunctionObjects();
72 const word oldInstance =
mesh.pointsInstance();
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
169 mesh.updateMesh(map());
172 if (map().hasMotionPoints())
174 mesh.movePoints(map().preMotionPoints());
178 faceRemover.updateMesh(map());
186 mesh.setInstance(oldInstance);
192 topoSet::removeFiles(
mesh);
193 processorMeshes::removeFiles(
mesh);
Field reading functions for post-processing utilities.
List of IOobjects with searching and retrieving facilities.
virtual const fileName & name() const
Get the name of the stream.
virtual bool write(const token &tok)=0
Write token to stream or otherwise handle it.
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
bool found(const word &optName) const
Return true if the named option is found.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Direct mesh changes based on v1.3 polyTopoChange syntax.
Given list of faces to remove insert all the topology changes. Contains helper function to get consis...
A class for handling words, derived from Foam::string.
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.
Ostream & endl(Ostream &os)
Add newline and flush stream.
prefixOSstream Pout
OSstream wrapped stdout (std::cout) with parallel prefix.
constexpr char nl
The newline '\n' character (0x0a)
Foam::argList args(argc, argv)