- 07 May, 2018 1 commit
-
-
Mark OLESEN authored
- improvement documentation for surface sampling. - can now specify alternative sampling scheme for obtaining the face values instead of just using the "cell" value. For example, sampleScheme cellPoint; This can be useful for cases when the surface is close to a boundary cell and there are large gradients in the sampled field. - distanceSurface now handles non-closed surfaces more robustly. Unknown regions (not inside or outside) are marked internally and excluded from consideration. This allows use of 'signed' surfaces where not previously possible.
-
- 16 Mar, 2018 1 commit
-
-
Mark OLESEN authored
- when constructing dimensioned fields that are to be zero-initialized, it is preferrable to use a form such as dimensionedScalar(dims, Zero) dimensionedVector(dims, Zero) rather than dimensionedScalar("0", dims, 0) dimensionedVector("zero", dims, vector::zero) This reduces clutter and also avoids any suggestion that the name of the dimensioned quantity has any influence on the field's name. An even shorter version is possible. Eg, dimensionedScalar(dims) but reduces the clarity of meaning. - NB: UniformDimensionedField is an exception to these style changes since it does use the name of the dimensioned type (instead of the regIOobject).
-
- 26 Feb, 2018 1 commit
-
-
Mark OLESEN authored
Improve alignment of its behaviour with std::unique_ptr - element_type typedef - release() method - identical to ptr() method - get() method to get the pointer without checking and without releasing it. - operator*() for dereferencing Method name changes - renamed rawPtr() to get() - renamed rawRef() to ref(), removed unused const version. Removed methods/operators - assignment from a raw pointer was deleted (was rarely used). Can be convenient, but uncontrolled and potentially unsafe. Do allow assignment from a literal nullptr though, since this can never leak (and also corresponds to the unique_ptr API). Additional methods - clone() method: forwards to the clone() method of the underlying data object with argument forwarding. - reset(autoPtr&&) as an alternative to operator=(autoPtr&&) STYLE: avoid implicit conversion from autoPtr to object type in many places - existing implementation has the following: operator const T&() const { return operator*(); } which means that the following code works: autoPtr<mapPolyMesh> map = ...; updateMesh(*map); // OK: explicit dereferencing updateMesh(map()); // OK: explicit dereferencing updateMesh(map); // OK: implicit dereferencing for clarity it may preferable to avoid the implicit dereferencing - prefer operator* to operator() when deferenced a return value so it is clearer that a pointer is involve and not a function call etc Eg, return *meshPtr_; vs. return meshPtr_();
-
- 01 Feb, 2017 1 commit
-
-
Mark Olesen authored
- more stable/predictable to check for a bounding box !empty() rather than comparing to greatBox directly.
-
- 29 Nov, 2016 1 commit
-
-
Mark Olesen authored
- this makes it easier to reuse the code, and sampledSurface expect a face (not a labelledFace), so this also eliminates a translation level and simplifies memory management. - before/after comparison of the sampled iso-surfaces tested with iso-surfaces from interFoam/RAS/angledDuct tutorial (serial and parallel)
-
- 20 Oct, 2016 1 commit
-
-
Mark Olesen authored
- make top-level Sf(), magSf(), Cf() pure virtual since the sub-classes will always be providing the face/point storage, with either triSurface or MeshedSurface in the background
-
- 10 Aug, 2016 1 commit
-
-
Mark Olesen authored
- Allows passing of additional information (per-face zone ids) or possibly other things, while reducing the number of arguments to pass. - In sampledTriSurfaceMesh, preserve the region information that was read in, passing it onwards via the UnsortedMeshSurface content. The Nastran surface writer is currently the only writer making use of this per-face zone information. Passing it through as a PSHELL attribute, which should retain the distinction for parts. (issue #204)
-
- 05 Aug, 2016 1 commit
-
-
Henry Weller authored
Requires gcc version 4.7 or higher
-
- 30 Apr, 2016 2 commits
-
-
Henry Weller authored
GeometricField: Renamed internalField() -> primitiveField() and dimensionedInternalField() -> internalField() These new names are more consistent and logical because: primitiveField(): primitiveFieldRef(): Provides low-level access to the Field<Type> (primitive field) without dimension or mesh-consistency checking. This should only be used in the low-level functions where dimensional consistency is ensured by careful programming and computational efficiency is paramount. internalField(): internalFieldRef(): Provides access to the DimensionedField<Type, GeoMesh> of values on the internal mesh-type for which the GeometricField is defined and supports dimension and checking and mesh-consistency checking.
-
Henry Weller authored
Non-const access to the internal field now obtained from a specifically named access function consistent with the new names for non-canst access to the boundary field boundaryFieldRef() and dimensioned internal field dimensionedInternalFieldRef(). See also commit 22f4ad32
-
- 28 Apr, 2016 1 commit
-
-
Henry Weller authored
When the GeometricBoundaryField template class was originally written it was a separate class in the Foam namespace rather than a sub-class of GeometricField as it is now. Without loss of clarity and simplifying code which access the boundary field of GeometricFields it is better that GeometricBoundaryField be renamed Boundary for consistency with the new naming convention for the type of the dimensioned internal field: Internal, see commit 4a57b9be This is a very simple text substitution change which can be applied to any code which compiles with the OpenFOAM-dev libraries.
-
- 24 Apr, 2016 1 commit
-
-
Henry Weller authored
-
- 29 Feb, 2016 1 commit
-
-
Henry Weller authored
-
- 10 Jan, 2016 1 commit
-
-
Henry Weller authored
-
- 26 Nov, 2015 1 commit
-
-
mattijs authored
- bounds option (see $FOAM_UTILITIES/postProcessing/sampling/sample/sampleDict) - fixes memory error http://www.openfoam.org/mantisbt/view.php?id=1487 - cleans up iso surface normal orientation
-
- 11 Nov, 2015 1 commit
-
-
Henry Weller authored
Avoids the clutter and maintenance effort associated with providing the function signature string.
-
- 14 Feb, 2015 1 commit
-
-
Henry authored
-
- 11 Apr, 2013 2 commits
- 21 Feb, 2013 2 commits
- 29 Feb, 2012 1 commit
-
-
mattijs authored
-
- 14 Aug, 2011 1 commit
-
-
Henry authored
-
- 19 Jan, 2011 1 commit
-
- 14 Jan, 2011 1 commit
-
-
Andrew Heather authored
-
- 07 Jan, 2011 1 commit
-
-
graham authored
-
- 05 Jan, 2011 2 commits
-
-
Andrew Heather authored
This reverts commit b18f6cc1.
-
graham authored
-
- 25 Nov, 2010 1 commit
-
-
mattijs authored
-
- 11 Nov, 2010 1 commit
-
-
Andrew Heather authored
-
- 06 Oct, 2010 2 commits
-
-
graham authored
This is to access the face/edge/point status of the nearest at the same time to ensure a consistent result. Using getVolumeType query in distanceSurface, not simple normal dot-product comparison, fails on edges.
-
graham authored
This is to access the face/edge/point status of the nearest at the same time to ensure a consistent result. Using getVolumeType query in distanceSurface, not simple normal dot-product comparison, fails on edges.
-
- 04 Aug, 2010 1 commit
-
-
Mark Olesen authored
-
- 28 Jul, 2010 1 commit
-
-
graham authored
-
- 12 Apr, 2010 1 commit
-
-
Mark Olesen authored
-
- 29 Mar, 2010 1 commit
-
-
Mark Olesen authored
-
- 09 Mar, 2010 1 commit
-
-
mattijs authored
isoSurfaceCell instead isoSurface.
-
- 04 Mar, 2010 1 commit
-
-
mattijs authored
The optional 'average' switch causes use of the average-of-pointvalues instead of the original volField.
-
- 10 Mar, 2009 1 commit
-
-
mattijs authored
-
- 17 Jan, 2009 1 commit
-
-
mattijs authored
-