Go to the documentation of this file.
60 int main(
int argc,
char *argv[])
64 "Refine a hex mesh by 2x2x2 cell splitting for the specified cellSet"
72 "Remove cells from input cellSet to keep to 2:1 ratio"
73 " (default is to extend set)"
85 const bool overwrite =
args.
found(
"overwrite");
89 Info<<
"Reading cells to refine from cellSet " << cellSetName
95 <<
" cells to refine from cellSet " << cellSetName <<
nl
192 if (map().hasMotionPoints())
A class for handling words, derived from Foam::string.
virtual bool write(const bool valid=true) const
Write mesh using IO settings from time.
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)
Read Geometric fields of templated type.
label nTotalPoints() const
Return total number of points in decomposed mesh. Not.
static const pointMesh & New(const polyMesh &mesh, Args &&... args)
Get existing or create a new MeshObject.
static word timeName(const scalar t, const int precision=precision_)
Direct mesh changes based on v1.3 polyTopoChange syntax.
label nTotalCells() const
Return total number of cells in decomposed mesh.
static void addNote(const string ¬e)
Add extra notes for the 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 void addArgument(const string &argName, const string &usage="")
Append a (mandatory) argument to validArgs.
const fileName & pointsInstance() const
Return the current instance directory for points.
static void noFunctionObjects(bool addWithOption=false)
Remove '-noFunctionObjects' option and ignore any occurrences.
messageStream Info
Information stream (uses stdout - output is on the master only)
virtual void updateMesh(const mapPolyMesh &mpm)
Update mesh corresponding to the given map.
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
A collection of cell labels.
List of IOobjects with searching and retrieving facilities.
static void addBoolOption(const word &optName, const string &usage="", bool advanced=false)
Add a bool option to validOptions with usage information.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Field reading functions for post-processing utilities.
Input/output from file streams.
Refinement of (split) hexes using polyTopoChange.
void setRefinement(const cellCuts &cuts, polyTopoChange &meshMod)
Do actual cutting with cut description. Inserts mesh changes.
static void removeFiles(const polyMesh &mesh)
Helper: remove all procAddressing files from mesh instance.
Type gMin(const FieldField< Field, Type > &f)
const globalMeshData & globalData() const
Return parallel info.
Foam::argList args(argc, argv)
static void removeFiles(const polyMesh &)
Helper: remove all sets files from mesh instance.
Type gMax(const FieldField< Field, Type > &f)
void setInstance(const fileName &instance, const IOobject::writeOption wOpt=IOobject::AUTO_WRITE)
Set the instance for mesh files.
bool found(const word &optName) const
Return true if the named option is found.