57int main(
int argc,
char *argv[])
61 "Remove faces specified in faceSet by combining cells on both sides"
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);
Field reading functions for post-processing utilities.
List of IOobjects with searching and retrieving facilities. Implemented as a HashTable,...
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
static void noFunctionObjects(bool addWithOption=false)
Remove '-noFunctionObjects' option and ignore any occurrences.
static void addArgument(const string &argName, const string &usage="")
Append a (mandatory) argument to validArgs.
static void addNote(const string ¬e)
Add extra notes for the usage information.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Direct mesh changes based on v1.3 polyTopoChange syntax.
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...
static void removeFiles(const polyMesh &)
Helper: remove all sets files from mesh instance.
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.
List< label > labelList
A List of labels.
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)