- Dec 21, 2018
-
-
Mark OLESEN authored
-
Mark OLESEN authored
-
- Dec 20, 2018
-
-
Mark OLESEN authored
- can be used as a more natural test on the iterator. For example, with HashTable<..> table; auto iter = table.find(...); Following are now all equivalent: 1. if (iter != table.end()) ... 2. if (iter.found()) ... 3. if (iter) ...
-
Mark OLESEN authored
- similar to autoPtr and unique_ptr. Returns the pointer value without any checks. This provides a simple way for use to use either an autoPtr or a tmp for local memory management without accidentally stealing the pointer. Eg, volVectorField* ptr; tmp<volVectorField> tempField; if (someField.valid()) { ptr = someField.get(); } else { tempField.reset(new volVectorField(....)); ptr = tmpField.get(); } const volVectorField& withField = *ptr; STYLE: make more tmp methods noexcept
-
Mark OLESEN authored
- in some cases this means you could avoid an isA<> followed by second dynamicCast<>
-
- Dec 11, 2018
-
-
Mark OLESEN authored
- makes the intent clearer and avoids the need for additional constructor casting. Eg, labelList(10, Zero) vs. labelList(10, 0) scalarField(10, Zero) vs. scalarField(10, scalar(0)) vectorField(10, Zero) vs. vectorField(10, vector::zero)
-
- Dec 21, 2018
-
-
Mark OLESEN authored
-
Mark OLESEN authored
-
- Dec 20, 2018
-
-
Mark OLESEN authored
-
Andrew Heather authored
-
Andrew Heather authored
-
- Dec 19, 2018
-
-
Andrew Heather authored
-
- Dec 20, 2018
-
-
Andrew Heather authored
-
Andrew Heather authored
-
mattijs authored
-
mattijs authored
-
Andrew Heather authored
-
- Dec 19, 2018
-
-
mattijs authored
-
mattijs authored
-
mattijs authored
-
Mark OLESEN authored
-
Mark OLESEN authored
- they had an isType<> instead of isA<>() check
-
mattijs authored
-
Andrew Heather authored
-
- Dec 18, 2018
-
-
Andrew Heather authored
-
Andrew Heather authored
Averages columns of cells for layered meshes. For each patch face, calculates the average value of all cells attached in the patch face normal direction, and then pushes the average value back to all cells in the column. Useful for channel-like cases where we want to average fields in the spanwise direction. Example of function object specification: columnAverage1 { type columnAverage; libs ("libfieldFunctionObjects.so"); ... patches (front side); fields (U p); } Where the entries comprise: \table Property | Description | Required | Default value type | type name: fieldMinMax | yes | patches | list of patches to collapse onto | yes | fields | list of fields to process | yes | \endtable
-
- Dec 17, 2018
-
-
Andrew Heather authored
-
- Dec 19, 2018
-
-
Mark OLESEN authored
-
- Dec 18, 2018
-
-
Mark OLESEN authored
-
- Dec 17, 2018
-
-
Mark OLESEN authored
-
sergio authored
-
sergio authored
-
sergio authored
-
Mark OLESEN authored
-
Mark OLESEN authored
-
Mark OLESEN authored
-
Mark OLESEN authored
-
Mark OLESEN authored
- this corresponds to 'never match', which may be useful in combination with -constant selection. Eg, surfaceMeshTriangulate -constant -time none selects only the constant entry and suppresses any automatic time loop STYLE: adjust help for the standard -times option - indicate that times can be comma or space separated, since this is otherwise not apparent. Don't mention semicolon separators in the help since that just adds even more clutter.
-
- Dec 16, 2018
-
-
Mark OLESEN authored
-
Mark OLESEN authored
-