51 int main(
int argc,
char *argv[])
59 "remove cells from input cellSet to keep to 2:1 ratio"
60 " (default is to extend set)"
65 "do not update fields"
76 const word oldInstance = mesh.pointsInstance();
80 Info<<
"Reading cells to refine from cellSet " << cellSetName
83 cellSet cellsToRefine(mesh, cellSetName);
86 <<
" cells to refine from cellSet " << cellSetName <<
nl
108 <<
" cells:" << mesh.globalData().nTotalCells() <<
nl
109 <<
" faces:" << mesh.globalData().nTotalFaces() <<
nl
110 <<
" points:" << mesh.globalData().nTotalPoints() <<
nl
145 mesh.topoChange(map);
151 <<
" to " << mesh.globalData().nTotalCells() <<
" cells." <<
nl <<
endl;
155 mesh.setInstance(oldInstance);
158 Info<<
"Writing mesh to " << runTime.name() <<
endl;
Field reading functions for post-processing utilities.
List of IOobjects with searching and retrieving facilities.
virtual Ostream & write(const char)=0
Write character.
static void addBoolOption(const word &opt, const string &usage="")
Add to a bool option to validOptions with usage information.
bool optionFound(const word &opt) const
Return true if the named option is found.
const stringList & args() const
Return arguments.
static SLList< string > validArgs
A list of valid (mandatory) arguments.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A collection of cell labels.
Refinement of (split) hexes using polyTopoChange.
void topoChange(const polyTopoChangeMap &)
Force recalculation of locally stored data on topological change.
void setRefinement(const cellCuts &cuts, polyTopoChange &meshMod)
Do actual cutting with cut description. Inserts mesh changes.
Direct mesh changes based on v1.3 polyTopoChange syntax.
A class for handling words, derived from string.
int main(int argc, char *argv[])
Info<< "Calculating turbulent flame speed field St\n"<< endl;volScalarField St(IOobject("St", runTime.name(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), flameWrinkling->Xi() *Su);multivariateSurfaceInterpolationScheme< scalar >::fieldTable fields
Ostream & endl(Ostream &os)
Add newline and flush stream.
T returnReduce(const T &Value, const BinaryOp &bop, const int tag=Pstream::msgType(), const label comm=UPstream::worldComm)
Type gMin(const FieldField< Field, Type > &f)
Type gMax(const FieldField< Field, Type > &f)
Foam::argList args(argc, argv)