- 05 Jun, 2020 1 commit
-
-
- 02 Jun, 2020 1 commit
-
-
Mark Olesen authored
- previously introduced `getOrDefault` as a dictionary _get_ method, now complete the transition and use it everywhere instead of `lookupOrDefault`. This avoids mixed usage of the two methods that are identical in behaviour, makes for shorter names, and promotes the distinction between "lookup" access (ie, return a token stream, locate and return an entry) and "get" access (ie, the above with conversion to concrete types such as scalar, label etc).
-
- 11 Mar, 2020 1 commit
-
-
Mark Olesen authored
- support postOperation for volFieldValue as well
-
- 31 Oct, 2019 1 commit
-
-
OpenFOAM bot authored
-
- 09 Sep, 2019 1 commit
-
-
- 19 Jun, 2019 1 commit
-
-
Andrew Heather authored
-
- 16 Apr, 2019 2 commits
-
-
Mark Olesen authored
-
Mark Olesen authored
-
- 22 Feb, 2019 1 commit
-
-
Mark Olesen authored
- removes a layer of opacity and may help with future restructuring
-
- 12 Feb, 2019 1 commit
-
-
Mark Olesen authored
- fits better into the general sampling framework, improves flexibilty and allows code reduction. ENH: include surface fields on sampledSurfaces that support it
-
- 07 Feb, 2019 1 commit
-
-
Mark Olesen authored
- The writers have changed from being a generic state-less set of routines to more properly conforming to the normal notion of a writer. These changes allow us to combine output fields (eg, in a single VTK/vtp file for each timestep). Parallel data reduction and any associated bookkeeping is now part of the surface writers. This improves their re-usability and avoids unnecessary and premature data reduction at the sampling stage. It is now possible to have different output formats on a per-surface basis. - A new feature of the surface sampling is the ability to "store" the sampled surfaces and fields onto a registry for reuse by other function objects. Additionally, the "store" can be triggered at the execution phase as well
-
- 22 May, 2019 1 commit
-
-
Andrew Heather authored
-
- 12 Feb, 2019 1 commit
-
-
Mark Olesen authored
- complete any pending initialisation on write(). Allows lazier evaluation until when the surfaces are actually needed.
-
- 11 Feb, 2019 1 commit
-
-
Mark Olesen authored
-
- 06 Feb, 2019 1 commit
-
-
OpenFOAM bot authored
-
- 18 Oct, 2018 1 commit
-
-
Mark Olesen authored
- more dictionary-like methods, enforce keyType::LITERAL for all lookups to avoid any spurious keyword matching. - new readEntry, readIfPresent methods - The get() method replaces the now deprecate lookup() method. - Deprecate lookupOrFailsafe() Failsafe behaviour is now an optional parameter for lookupOrDefault, which makes it easier to tailor behaviour at runtime. - output of the names is now always flatted without line-breaks. Thus, os << flatOutput(someEnumNames.names()) << nl; os << someEnumNames << nl; both generate the same output. - Constructor now uses C-string (const char*) directly instead of Foam::word in its initializer_list. - Remove special enum + initializer_list constructor form since it can create unbounded lookup indices. - Removd old hasEnum, hasName forms that were provided during initial transition from NamedEnum. - Added static_assert on Enum contents to restrict to enum or integral values. Should not likely be using this class to enumerate other things since it internally uses an 'int' for its values. Changed volumeType accordingly to enumerate on its type (enum), not the class itself.
-
- 03 Aug, 2018 1 commit
-
-
Mark Olesen authored
Style changes: - use lookupObjectRef instead of using const_cast - use tmp::New factory
-
- 22 Mar, 2018 1 commit
-
-
Mark Olesen authored
-
- 11 Sep, 2017 1 commit
-
-
Mark Olesen authored
- affects surfaceFieldValue, volFieldValue. Use 'none' (if desired) to explicitly suppress the weightField, but generally better to use a different operation.
-
- 11 Aug, 2017 1 commit
-
-
Mark Olesen authored
- can be useful either for flow-rate weighting where backflow is to be ignored in the average, or for flow-rate weighting on surfaces with inconsistent orientation. Reworked to code to make better use of Enum (the NamedEnum replacement). Enum doesn't require contiguous enumeration values, which lets us use bitmasking of similar operations to reduce duplicate code.
-
- 03 Jul, 2017 1 commit
-
-
Mark Olesen authored
-
- 29 May, 2017 1 commit
-
-
Mark Olesen authored
- Remove the unused enums() method since it delivers wholly unreliable results. It is not guaranteed to cover the full enumeration range, but only the listed names. - Remove the unused strings() method. Duplicated functionality of the words(), but was never used. - Change access of words() method from static to object. Better code isolation. Permits the constructor to take over as the single point of failure for bad input. - Add values() method - do not expose internal (HashTable) lookup since it makes it more difficult to enforce constness and the implementation detail should not be exposed. However leave toc() and sortedToc() for the interface. STYLE: relocated NamedEnum under primitives (was containers) - internal typedef as 'value_type' for some consistency with STL conventions
-
- 22 Jun, 2017 1 commit
-
-
"pos" now returns 1 if the argument is greater than 0, otherwise it returns 0. This is consistent with the common mathematical definition of the "pos" function: https://en.wikipedia.org/wiki/Sign_(mathematics) However the previous implementation in which 1 was also returned for a 0 argument is useful in many situations so the "pos0" has been added which returns 1 if the argument is greater or equal to 0. Additionally the "neg0" has been added which returns 1 if if the argument is less than or equal to 0.
-
- 24 Apr, 2017 1 commit
-
-
Andrew Heather authored
-
- 27 Mar, 2017 1 commit
-
-
Andrew Heather authored
-
- 24 Mar, 2017 1 commit
-
-
Andrew Heather authored
-
- 02 Mar, 2017 1 commit
-
-
Mark Olesen authored
- this makes it possible to perform additional operations on surface values that have been previously sampled. - support vectorField for weighting operations. - reduce overhead by avoiding creation of weight fields, Sf fields and combined surface geometries unless they are actually required. - extend some similar concepts and operations to volFieldValue
-
- 21 Mar, 2017 1 commit
-
-
Andrew Heather authored
-
- 06 Feb, 2017 1 commit
-
-
Henry Weller authored
Patch contributed by Timo Niemi, VTT. Resolves patch request https://bugs.openfoam.org/view.php?id=2452
-
- 15 Dec, 2016 1 commit
-
-
Mark Olesen authored
- currently only 'none' or 'sqrt', which can be useful in combination with integrate or averaging functions.
-
- 08 Dec, 2016 1 commit
-
-
Mark Olesen authored
-
- 28 Nov, 2016 1 commit
-
-
Henry Weller authored
See http://bugs.openfoam.org/view.php?id=2356
-
- 03 Nov, 2016 1 commit
-
-
Andrew Heather authored
-
- 23 Sep, 2016 1 commit
-
-
Andrew Heather authored
-
- 24 Aug, 2016 1 commit
-
-
Henry Weller authored
Patch contributed by Bruno Santos Resolves bug-report http://bugs.openfoam.org/view.php?id=2216
-
- 11 Aug, 2016 1 commit
-
-
Henry Weller authored
Renamed the original volRegion -> volFieldValue to clarify the purpose of this class to process vol fields on a volRegion.
-
- 10 Aug, 2016 1 commit
-
-
Henry Weller authored
functionObjects: Further simplification and rationalization using the fvMeshFunctionObject base-class
-
- 05 Aug, 2016 1 commit
-
-
Henry Weller authored
Requires gcc version 4.7 or higher
-
- 30 Jun, 2016 1 commit
-
-
Henry Weller authored
functionObjects::surfaceRegion: Write the surface geometry for formats in which the data is in separate files
-
- 13 Jun, 2016 1 commit
-
-
Henry Weller authored
-