Go to the documentation of this file.
54 int main(
int argc,
char *argv[])
62 "remove cells from input cellSet to keep to 2:1 ratio"
63 " (default is to extend set)"
68 runTime.functionObjects().off();
77 Info<<
"Reading cells to refine from cellSet " << cellSetName
83 <<
" cells to refine from cellSet " << cellSetName <<
nl
180 if (map().hasMotionPoints())
193 Info<<
"Writing mesh to " << runTime.timeName() <<
endl;
static SLList< string > validArgs
A list of valid (mandatory) arguments.
A class for handling words, derived from string.
const stringList & args() const
Return arguments.
T returnReduce(const T &Value, const BinaryOp &bop, const int tag=Pstream::msgType(), const label comm=UPstream::worldComm)
wordList ReadFields(const typename GeoMesh::Mesh &mesh, const IOobjectList &objects, PtrList< GeometricField< Type, PatchField, GeoMesh > > &fields, const bool syncPar=true, const bool readOldTime=false)
Helper routine to read Geometric fields.
label nTotalPoints() const
Return total number of points in decomposed mesh. Not.
Direct mesh changes based on v1.3 polyTopoChange syntax.
label nTotalCells() const
Return total number of cells in decomposed mesh.
static void addBoolOption(const word &opt, const string &usage="")
Add to a bool option to validOptions with usage information.
virtual tmp< scalarField > movePoints(const pointField &)
Move points, returns volumes swept by faces in motion.
Ostream & endl(Ostream &os)
Add newline and flush stream.
label nTotalFaces() const
Return total number of faces in decomposed mesh. Not.
void updateMesh(const mapPolyMesh &)
Force recalculation of locally stored data on topological change.
static const pointMesh & New(const polyMesh &mesh)
virtual bool write() const
Write mesh using IO settings from time.
const fileName & pointsInstance() const
Return the current instance directory for points.
virtual void updateMesh(const mapPolyMesh &mpm)
Update mesh corresponding to the given map.
int main(int argc, char *argv[])
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
A collection of cell labels.
List of IOobjects with searching and retrieving facilities.
void setInstance(const fileName &)
Set the instance for mesh files.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Helper routine to read fields.
Refinement of (split) hexes using polyTopoChange.
void setRefinement(const cellCuts &cuts, polyTopoChange &meshMod)
Do actual cutting with cut description. Inserts mesh changes.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
bool optionFound(const word &opt) const
Return true if the named option is found.
Type gMin(const FieldField< Field, Type > &f)
const globalMeshData & globalData() const
Return parallel info.
Foam::argList args(argc, argv)
Type gMax(const FieldField< Field, Type > &f)