Go to the documentation of this file.
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());
A class for handling words, derived from Foam::string.
virtual bool write(const bool valid=true) const
wordList ReadFields(const typename GeoMesh::Mesh &mesh, const IOobjectList &objects, PtrList< GeometricField< Type, PatchField, GeoMesh >> &fields, const bool syncPar=true, const bool readOldTime=false)
static word timeName(const scalar t, const int precision=precision_)
Direct mesh changes based on v1.3 polyTopoChange syntax.
static void addNote(const string ¬e)
virtual tmp< scalarField > movePoints(const pointField &)
Ostream & endl(Ostream &os)
static void addArgument(const string &argName, const string &usage="")
const fileName & pointsInstance() const
static void noFunctionObjects(bool addWithOption=false)
Given list of faces to remove insert all the topology changes. Contains helper function to get consis...
virtual const fileName & name() const
virtual void updateMesh(const mapPolyMesh &mpm)
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
virtual bool write(const token &tok)=0
List of IOobjects with searching and retrieving facilities.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Field reading functions for post-processing utilities.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
static void removeFiles(const polyMesh &mesh)
Foam::argList args(argc, argv)
static void removeFiles(const polyMesh &)
void setInstance(const fileName &instance, const IOobject::writeOption wOpt=IOobject::AUTO_WRITE)
bool found(const word &optName) const