Go to the documentation of this file.
38 int main(
int argc,
char *argv[])
52 label nIterations(50);
54 label nSurfaceIterations(2);
55 scalar qualityThreshold(0.1);
63 Info <<
"Default number of loops is 10" <<
endl;
73 Info <<
"Default number of iterations is 50" <<
endl;
83 Info <<
"Default number of surface iterations is 2" <<
endl;
93 Info <<
"Using default quality threshold 0.1" <<
endl;
96 word constrainedCellSet;
100 constrainedCellSet =
args.
options()[
"constrainedCellsSet"];
104 Info <<
"No constraints applied on the smoothing procedure" <<
endl;
114 if( !constrainedCellSet.empty() )
127 activeCell[selectedCells[i]] =
true;
static SLList< string > validArgs
A list of valid (mandatory) arguments.
void optimizeMeshFV(const label numLaplaceIterations=5, const label maxNumGlobalIterations=10, const label maxNumIterations=50, const label maxNumSurfaceIterations=2)
final optimisation
A class for handling words, derived from string.
#define forAll(list, i)
Loop across all elements in list.
int main(int argc, char *argv[])
Ostream & endl(Ostream &os)
Add newline and flush stream.
void lockCellsInSubset(const word &subsetName)
This is a typedef for LongList<label>
const Foam::HashTable< string > & options() const
Return options.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const cellListPMG & cells() const
access to cells
void clearAddressingData() const
clear addressing data
static HashTable< string > validOptions
A list of valid options.
Input from memory buffer stream.
void untangleMeshFV(const label maxNumGlobalIterations=10, const label maxNumIterations=50, const label maxNumSurfaceIterations=2, const bool relaxedCheck=false)
bool readScalar(const char *buf, doubleScalar &s)
Read whole of buf as a scalar. Return true if succesful.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
label readLabel(Istream &is)
void cellsInSubset(const label, ListType &) const
Foam::argList args(argc, argv)
void optimizeMeshFVBestQuality(const label maxNumIterations=50, const scalar threshold=0.1)
greedy optimisation until the mesh can be improved
label size() const
return the number of used elements
label cellSubsetIndex(const word &) const